input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public read only vector3f get contact normal return contact normal from a
|
return the normalized contact normal
|
public simplex get simplex return simplex
|
return the simplex containing the results of the last run to
|
public boolean is intersecting return distance 00001f
|
convenience function to return whether or not this pair represents the
|
public read only vector3f get normal return normal
|
return the contact normal between the two intersecting convex hulls from
|
public void set friction float friction if friction 0f throw new illegal argument exception friction coefficient must be at least 0 not friction this friction friction
|
set the friction coefficient
|
public void set restitution float restitution if restitution 0f throw new illegal argument exception restitution coefficient must be at least 0 not restitution this restitution restitution
|
set the new restitution coefficient
|
public boolean can collide collidable other if other null throw new null pointer exception collidable cannot be null return collision groups intersects other collision mask collision mask intersects other collision groups
|
compares the collision groups and masks of this collidable and
|
public void set weight float w if w 0f throw new illegal argument exception weight must be positive not w weight w
|
assign a new weight to the vertex
|
public boolean is member of group int group return collision groups get group
|
check if this collidable is the member of the given integer group
|
public boolean can collide with group int group return collision mask get group
|
check if this collidable is allowed to collide with specified group
|
public void set member of group int group boolean member collision groups set group member
|
set whether or not this collidable is the member of the provided group
|
public void set collides with group int group boolean collide collision mask set group collide
|
set whether or not this collidable can collide with the provided group
|
public read only matrix4f get transform return world transform
|
return the matrix instance holding this collidables world transform
|
public vertex get vertex int i if i 0 i rank throw new index out of bounds exception invalid index i return vertices i
|
return the vertex at the given index within this simplex
|
public void set shape shape shape if shape null throw new null pointer exception shape cannot be null bounds shape update bounds
|
assign a new shape to use for this collidable
|
public shape get shape return bounds
|
return the current shape of this collidable
|
public void set transform read only matrix4f t if t null throw new null pointer exception transform cannot be null world transform set t update bounds
|
copy tt t tt into this collidables transform updating its location
|
public axis aligned box get world bounds return world aabb
|
return the current world bounds of this collidable
|
public boolean enclose origin minkowski difference shape if shape null throw new null pointer exception minkowski difference cannot be null if enclose origin impl shape orient return true else return false
|
manipulate this simplex so that its vertices will enclose the origin
|
public void get kapr stats kaprekar kapr int n digits system out println working on n digits n digits kserializer serializer new kserializer kstore store kapr get all series n digits serializer write to file store write stats store
|
determines all the kaprekar series for the number
|
protected void find all series int n dig final long min long math pow 10 n dig 1 final long max long math pow 10 n dig 1 for long num min num max num series long ser find series new long num n dig add pattern ser show progress min max num
|
find all the kaprekar series for the
|
private boolean is known series e ser return patterns contains ser
|
check if the series has already been stored
|
private boolean is invalid series series e ser if ser null ser get members null return true if ser size 1 object obj ser get members get 0 if 0 equals obj to string return true return false
|
check if the series supplied is an invalid or degenerate series
|
public void set num digits int num digits n digits num digits
|
specifies the number of digits for which
|
public void set radix int radix this radix radix
|
specifies the radix for which the
|
private void init max iterations 0 max reached iterations 0 max iter number null max reached iter num null for int i 0 i iteration map length i iteration map i 0 for int i 0 i reached iteration map length i reached iteration map i 0
|
initializes the stats
|
public int get radix return radix
|
returns the radix for which the
|
public void track stats number num int num iter int num reached iter if num iter max iterations max iterations num iter max iter number num if num reached iter max reached iterations max reached iterations num reached iter max reached iter num num if num reached iter reached iteration map length reached iteration map num reached iter else system out println uncounted reached iterations num reached iter if num iter iteration map length iteration map num iter 1 else system out println uncounted iterations num iter
|
tracks the maximum iterations and other statistical details
|
public void print stats system out println max iterations max iterations system out println got max iteration for number max iter number system out println max reached iterations max reached iterations system out println got max reached iteration for number max reached iter num system out print iterations map t for int j 0 j max iterations j system out print iteration map j t system out println system out print reached iterations map for int j 0 j max reached iterations j system out print reached iteration map j t system out println
|
prints the stats to stdout
|
protected void find all series int n dig long min max min long math pow 10 n dig 1 max long math pow 10 n dig 1 checked nos new stack long long increment n dig 2 0 9 99 get the smallest n digit number that is divisible by increment min min increment 1 increment for long num min num max num increment series long ser find series new long num n dig add pattern ser show progress min max num
|
find all the kaprekar series for the
|
protected long get diff int digits long min 0 max 0 int n dig digits length for int i 0 i n dig i min min 10 digits i max max 10 digits n dig i 1 return max min
|
get the difference between the largest and
|
protected long get next long num int num digits list integer digits new array list integer int n dig num digits while n dig 0 n dig digits add new integer int num 10 num 10 collections sort digits return get diff digits
|
method to find the next number
|
private void display calculations big integer current num big integer next num append output get number value current num n append output get number value max n append output get number value min n string separator for int i 0 i n digits 3 i separator append output separator n append output get number value next num n append output n
|
print the calculations in a
|
private string get number value big integer num string str num to string if str length n digits return str prepend with 0 s string prefix int str len str length int prefix len 0 while str len prefix len n digits prefix 0 prefix len str prefix str return str
|
function to pretty print the huge number
|
public void demonstrate string number if number null find series number
|
demonstrates all the steps needed to
|
public void display error string message text area set foreground color red text area append message
|
displays the specified error message
|
public void reset output text area set text
|
clears the output message are in the user interface
|
public void append output string message text area append message
|
appends the specified message to the user output
|
public void task started demonstrate button set enabled false generate button set enabled false pause button set enabled true progress bar set string null progress bar set value progress bar get minimum text area set foreground color black text area set text
|
visually notifies the user that the task
|
public void print path svg stack stack print path svg minn maxn stack
|
prints the path taken by a number on applying the kaprekar routine
|
public void task completed progress bar set value progress bar get maximum progress bar set string done demonstrate button set enabled true generate button set enabled true pause button set enabled false
|
visually notifies the user that the task
|
public boolean is paused return false
|
returns true if the user has currently paused the
|
public string serialize hex kstore long store list series long patterns store get patterns if patterns null return string buffer str new string buffer for series long ser patterns str append for long member ser get members str append long to hex string member long value str append append crlf return str to string
|
provides a string representation of the hex series stored
|
public boolean equals series ser if ser null return false if ser size 0 this size 0 return true else two distinct kaprekar series cannot have a member in common if one member is same between two series all its members will be same return members contains ser members get 0
|
check if the given series is identical with this series
|
public boolean equals object obj if obj instanceof series return equals series obj else return false
|
check if the given series is identical with this series
|
public void add last segment jbuffer packet int offset int length int packet offset add segment packet offset length packet offset this ip datagram length start offset length trucate the size of the jbuffer to match that of ip reassebly buffer now that we know that we have received the last fragment and where it ends super set size this ip datagram length set ip4 total length field now that we know what it is header length ip datagram length set ip4 total length field
|
adds a ip fragment to the buffer
|
public void add segment jbuffer packet int offset int length int packet offset keep track of how much data we re copied so far needed to determine if the reassembly process is complete this bytes copied into buffer length do the actual copy of fragment data into this buffer the transfer is done using a native copy call packet transfer to this packet offset length offset start
|
adds a ip fragment to the buffer
|
private void open workbook file file throws file not found exception ioexception invalid format exception file input stream fis null try system out println opening workbook file get name fis new file input stream file open the workbook and then create the formula evaluator and data formatter instances that will be needed to respectively force evaluation of forumlae found in cells and create a formatted string encapsulating the cells contents this workbook workbook factory create fis this evaluator this workbook get creation helper create formula evaluator this formatter new data formatter finally if fis null fis close
|
open an excel workbook ready for conversion
|
public object js function read lines throws ioexception list string list new array list string string s while s js function read line null list add s string lines list to array new string list size scriptable scope scriptable object get top level scope this context cx context get current context return cx new object scope array lines
|
read the remaining lines in the file and return them in an array
|
private jframe get jframe if j frame null j frame new jframe j frame set default close operation jframe exit on close j frame set size 300 200 j frame set content pane get jcontent pane j frame set title application return j frame
|
this method initializes j frame
|
private jpanel get jcontent pane if j content pane null j content pane new jpanel j content pane set layout new border layout map viewer new map viewer j content pane add map viewer return j content pane
|
this method initializes j content pane
|
public void set destructible boolean destructible destructible destructible
|
used to change the destructibility of the object
|
public boolean get destructible return destructible
|
used to get the destructibility of the object
|
public void add list string name string label map string string values string value if lists null lists new tree map string map string string list labels new tree map string string list values new tree map string string lists put name values list labels put name label list values put name value
|
adds combobox to node with name name and label label
|
public void setup bools rate process area cap level process area cap level null process area cap level is empty rate process area satisfaction process area satisfaction null process area satisfaction is empty rate goal satisfaction goal satisfaction null goal satisfaction is empty rate org maturity level org maturity level null org maturity level is empty char practice implementation practice implementation null practice implementation is empty
|
setups transient fields rate process area cap level
|
public string get name return doc param get name
|
returns the name of the parameter
|
public string get description return doc param get description
|
returns the description of the param tag
|
public comment doc get comment return comment doc
|
returns the comment doc object created by the parser
|
public string get name return doc macro get name
|
returns the name of the macro
|
public string get argument int i return arguments i
|
returns the argument name at the specified index
|
public int get argument count if arguments null return 0 return arguments length
|
the number of arguments specified in the macro definition
|
public string get package name if parent name null return parent name package name else return package name
|
returns the fqn of the package
|
public package doc get package return package doc
|
returns the parent package doc object
|
public template doc get template named string name template doc td this get all templates for int i 0 i td length i if td i get name equals name return td i return null
|
returns the template with the specified name
|
public void set content string new content system out println comment doc set content new content new content content new content
|
called by the parser
|
public string get name return arg get name
|
returns the name of the macro argument
|
public string get name return doc tag get tag name
|
returns the name of the tag
|
public string get value return doc tag get value
|
returns the value of the tag
|
public void set content string new content velocidoc debug comment doc set content new content new content content new content
|
called by the parser
|
public note observer get observer return observer
|
gets the observer that is receiving notification when the note is modified
|
public void set observer note observer observer this observer observer
|
sets the observer that will receive notification when this note is
|
public you2 mix video get video return videos
|
returns the notes that were returned by the server
|
public void select surface surface surface if surface selected surface return final surface was selected selected surface selected surface surface note loader reset video loader start notify surface selected surface was selected
|
selects the specified
|
public void update note position final note note int x int y int width int height task queue post new update note position task note x y width height
|
updates the position of a
|
public void set stop word list java lang string stop word list this stop word list stop word list
|
setter for property stop word list
|
public void set approvers library id java lang string approvers library id this approvers library id approvers library id
|
setter for property approvers library id
|
public void set approvers patron id java lang string approvers patron id this approvers patron id approvers patron id
|
setter for property approvers patron id
|
public void set doneby library id java lang string doneby library id this doneby library id doneby library id
|
setter for property doneby library id
|
public void set field ejb bprocess cataloguing field field this field field
|
setter for property field
|
public void set gui editor java lang string gui editor this gui editor gui editor
|
setter for property gui editor
|
public void set owners library id java lang string owners library id this owners library id owners library id
|
setter for property owners library id
|
public void set rejected on java lang string rejected on this rejected on rejected on
|
setter for property rejected on
|
public void set rejected reason java lang string rejected reason this rejected reason rejected reason
|
setter for property rejected reason
|
public void set rejectors library id java lang string rejectors library id this rejectors library id rejectors library id
|
setter for property rejectors library id
|
public void set rejectors patron id java lang string rejectors patron id this rejectors patron id rejectors patron id
|
setter for property rejectors patron id
|
public void set share type java lang string share type this share type share type
|
setter for property share type
|
public void set vaf650 java util vector vaf650 this vaf650 vaf650
|
setter for property vaf650
|
public void set vaf651 java util vector vaf651 this vaf651 vaf651
|
setter for property vaf651
|
public void set vafap611 java util vector vafap611 this vafap611 vafap611
|
setter for property vafap611
|
public void set vafme100 java util vector vafme100 this vafme100 vafme100
|
setter for property vafme100
|
public void set vafme110 java util vector vafme110 this vafme110 vafme110
|
setter for property vafme110
|
public void set vafme111 java util vector vafme111 this vafme111 vafme111
|
setter for property vafme111
|
public void set article java lang string article this article article
|
setter for property article
|
public void set vafae110 java util vector vafae110 this vafae110 vafae110
|
setter for property vafae110
|
public void set vafae111 java util vector vafae111 this vafae111 vafae111
|
setter for property vafae111
|
public void set alattachments java util array list alattachments this alattachments alattachments
|
setter for property alattachments
|
public void set fixedfield java util array list fixedfield this fixedfield fixedfield
|
setter for property fixedfield
|
public void set bibiliographic level id java lang string bibiliographic level id this bibiliographic level id bibiliographic level id
|
setter for property bibiliographic level id
|
public void set holdings java util hashtable holdings this holdings holdings
|
setter for property holdings
|
public void set bound volume holdings java util hashtable bound volume holdings this bound volume holdings bound volume holdings
|
setter for property bound volume holdings
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.