input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public double calc price set price get conceptual backup get price get backup size get months between get begin date get end date return cal price | calculates the price |
public void set coupon id string coupon this coupon coupon | sets teh coupon id |
public void set revenue source id string revenue source this revenue source revenue source | sets the revenue source id |
public date get date picked up return date picked up | gets the date picked up |
public void set date picked up date date picked up this date picked up date picked up | sets the date picked up |
public transaction line bo get transaction return ref line | gets the transaction |
public void set transaction transaction line bo ref line this ref line ref line | sets the transaction |
public date get last notice sent return last notice sent | gets the date of the last notice sent |
public void set last notice sent date last notice sent this last notice sent last notice sent | sets the date of the last notice sent |
public boolean get status changed return status changed | this is called from the transaction dao |
public transaction bo get transaction throws data exception return transaction dao get instance read transaction | gets the transaction |
public void set status changed boolean b this status changed b | set status changed if the status has changed |
public void set transaction id string id this transaction id | sets the transaction id |
public double get rsubtotal return subtotal | this gets the subtotal without having to calculat it all over again |
public void set status string status this status status set dirty true | sets the status of the transaction line |
public list read by transaction string transid throws sqlexception data exception connection pool exception list trans lines new linked list connection conn connection pool get instance get trans lines read by transaction transid conn return trans lines | read all of the tlines associated with specific transaction |
public list get transaction list return transaction list | this method gets the transaction list |
public double get price if price 0 try set price sale dao get instance read product price id catch data exception ex ex print stack trace return price | the method gets the price |
public void set transaction list list transaction list this transaction list transaction list set dirty true | this method sets the transaction list |
public void set credit card string credit card this credit card credit card set dirty true | sets the memberss credit card number |
public void set start date date start date this start date start date set dirty true | sets the membership start date |
protected void set id string id this id id set dirty true | sets the customers id |
public void set expire date date expire date this expire date expire date set dirty true | sets the membership ccard experiation date |
public void set customer customer bo customer this customer customer set dirty true | sets the members customer account |
public list get areas of interest return areas of interest | gets the members areas of interest |
public void set areas of interest list areas of interest this areas of interest areas of interest set dirty true | sets the members areas of interest |
public void set area of interest string interest id areas of interest add interest id set interest dirty true | adds a new area of interest to the list |
public void delete area of interest string interest id areas of interest remove interest id set interest dirty true | this method deletes an membership area of interest based |
public boolean is interest dirty return interest dirty | shows if the interest have been changed |
public void set interest dirty boolean interest dirty this interest dirty interest dirty | sets if the intersest have changed |
public void set backup size double backup size this backup size backup size set dirty true | sets the backup size |
public void sign out throws data exception time out new date system current time millis current opts dao get instance save this | this method signes an employee out of the system |
public date get backup notice return backup notice | gets the backup notice |
public void set backup notice date backup notice this backup notice backup notice set dirty true | sets the backup notice |
public void set backup end date date backup end date this backup end date backup end date set dirty true | gets the backup end date |
public string get password system out println password is password return password | this method returns the password |
public void set password string password this password password system out println password is password | this method sets the password |
public void set price per day double price per day this price per day price per day set dirty true | sets the price per day |
public double get replacement price return replacement price | this method gets the replacement price |
public void set replacement price double replacement price this replacement price replacement price set dirty true | this method sets the replacement price |
public void set max times rented int max times rented this max times rented max times rented set dirty true | sets the maximum time rented |
public int get max days overdue return max days overdue | this methods returns the maximum days over due |
public void set max days overdue int max days overdue this max days overdue max days overdue set dirty true | this method sets the max days overdue |
public void set late fee per day double late fee per day this late fee per day late fee per day set dirty true | this methods set the late fee per days |
public conversion service create conv serv string guid int unit price string conversion type throws exception conversion service p new conversion service guid p set unit price unit price p set conversion type conversion type cache get instance put p get id p return p | create print format |
public double read unit price string type throws exception connection conn connection pool get instance get return read unit price type conn | this is the public read statement |
public double calc price return get price | this method calculates the price of the conversion |
public string create description set description get type conversion id get external id number to convert get quantity price get price return get description | the method creates the description of the conversion |
public void populate rental bo rental this rental rental this set visible true this set location relative to null | populates the gui with information needed |
public void select product transaction bo transaction trans transaction adds the items to the gui in a list populate transaction lines | this is used to select a product from a revenu source |
public void populate print order line rs print this print print this set visible true this set title development service this set location relative to null | called from the new order form which also sets visible this form |
public void populate service repair bo service this service service this set visible true | populates the respective information |
public void populate list try emp list employee dao get instance read all for int i 0 i emp list size i employee bo temp emp emp list get i cmb employee add item temp emp get name catch exception ex ex print stack trace joption pane show message dialog null ex to string cannot populate emplyees joption pane error message | populates the list to be displayed |
public void get line customer bo cust line true populate list cust this set visible true | gets the line |
public void get transaction customer bo cust line false populate list cust this set visible true | gets the transaction after passing the customer business objects |
public void reset customer interests for int i 0 i interest pool size i javax swing jcheck box interest pool get i set selected false | methods resets all the interest field |
public void set customer interests list mem li for int i 0 i interest pool size i if mem li contains interest bo li get i get id javax swing jcheck box interest pool get i set selected true else javax swing jcheck box interest pool get i set selected false | this method set the cusotmers areas of interest |
public void load form customer bo cust try creates new transaction and sets defaults trans transaction dao get instance create trans set customer cust trans set type sale trans set date new date system current time millis trans set current opts current opts bo cache get instance get current opts sets the status cmb status set selected item trans get status populate transaction lines this set visible true catch data exception ex joption pane show message dialog null ex to string can t open new transaction joption pane error message | this method oads the form with a new transction |
public void load form transaction bo transaction btn delete set text delete trans transaction system out println testing system out println trans get status cmb status set selected item trans get status adds the items to the gui in a list populate transaction lines | this method is used to view an existing transction |
public void load form customer bo cust transaction bo trans system out println starting return load form load form cust load form trans trans set type return trans set customer cust this set visible true cust trans | this method basically just calls the two other load forms |
public int get packed line return packed line | returns the packed line for this breakpoint |
public boolean is single shot return single shot | returns whether this breakpoint is single shot or not |
public void action performed action event e string cmd tokenize j edit get property basic68 tokenizesrc label if e get action command cmd tokenize tokenizesrc | invoked when an action occurs |
public short get packed line return packed line | returns the line number in the packed program source |
public short get source line return source line | returns the line number in the original source file |
public void set vnum short vnum this vnum vnum | sets the number of this variable |
public void error int line int column string message error source add error error source error edit pane get buffer get path 0 0 0 message | reports an error that will cause tokenization to fail |
public void warning int line int column string message error source add error error source warning edit pane get buffer get path 0 0 0 message | reports a warning that will not cause tokenization to fail |
public irule get last rule return last rule | returns the last rule |
public void set facedir string facedir if facedir equals wop rule east facedir equals wop rule west facedir equals wop rule north facedir equals wop rule south this facedir facedir else throw new illegal argument exception | sets the new direction the bot faces |
public void add one to x x | adds 1 to the current x value |
public void add one to y y | adds 1 to the current y value |
public void sub one from x x | subtracts 1 from the current x value |
public void sub one from y y | subtracts 1 from the current y value |
public void save to file file file string data try try out new file writer file out write data finally out close catch ioexception ex error log log ex | saves the given string in a file |
public void set skin string skinname this skin skinname load images | sets the skin of the application |
public void reset isimulator sim boolean refresh references only this sim sim this map sim get map this bot sim get picobot if refresh references only load images reset marker | updates references in order to use a new simulator map or bot and |
public void set zoom level int value this zoom value | sets the zoomlevel |
public void set effects boolean effects this effects effects | decides if effects are active or not |
public void set autofollow boolean autofollow this autofollow autofollow | decides if the camera follows the bot or not |
public void set editor boolean editor this editor editor if editor bot set initial position 2 2 else sim reset repaint | enables or disables the mapeditor |
public void add marker vector2i marker color color coloredmarker add new colored marker marker color repaint | adds a new marker |
public void update language this set title internationalization get string debug window lbl state set text internationalization get string state lbl surroundings set text internationalization get string surroundings lbl prev rule set text internationalization get string previous rule lbl next rule set text internationalization get string next rule lbl cells visited set text internationalization get string cells visited lbl cells to go set text internationalization get string cells to go lbl position set text internationalization get string position lbl steps set text internationalization get string steps | updates the language in debug window when changed in settings |
private void btn okaction performed java awt event action event evt dispose | quits thread and window |
public void add rule irule rule if state rule get required state throw new illegal state exception rules add rule | adds a new rule to this instance |
public void connect map integer state bubble states for irule rule rules state bubble target states get rule get target state if target null target states put target state target | connects to all state bubbles which match the target states of this |
public int compute height int font height int height font height 10 state title and border height rules size font height this my height height return height | calculates and updates the height of this state bubble after rules |
public int compute width font metrics metrics int max width 0 for irule rule rules int local width metrics string width get rule string rule if local width max width max width local width this my width max width return max width | calculates and updates the width of this state bubble after rules have |
private void btn close action performed java awt event action event evt dispose | quits thread and window |
private void cbx maze action performed java awt event action event evt spn chance set enabled false | disables wall probability when random maze is selected |
private void cbx map action performed java awt event action event evt spn chance set enabled true | enables wall probability when random map is selected |
public int get middle x return pos x my width 2 | calculates and returns the x coordinate of the middle of this bubble |
public int get middle y return pos y my height 2 | calculates and returns the y coordinate of the middle of this bubble |
private void cbx empty map action performed java awt event action event evt spn chance set enabled false | disables wall probability when empty map is selected |
private string get rule string irule rule string rule parts rule to string split return rule parts 1 rule parts 3 rule parts 4 | converts the given rule to a string and removes the required state |
public void draw connectors graphics2 d g int my middle x this get middle x int my middle y this get middle y set map entry integer state bubble entries target states entry set for map entry integer state bubble entry entries state bubble target entry get value g draw line my middle x my middle y target get middle x target get middle y | draws the connection lines of this bubble |
public void draw bubble graphics2 d g int font height g set color color light gray g fill round rect pos x pos y my width my height 10 10 g set color color black int cur y pos y font height g draw string integer to string state pos x cur y y coordinate bottom cur y font height int rule count rules size for int i 0 i rule count i g set color rule colors i g draw string get rule string rules get i pos x cur y cur y font height | draws the bubble itself |
private void action ok java awt event action event evt do something settings set skin string cb skin get selected item settings set effects chb effects is selected settings set lang string cb language get selected item settings set autofollow chb auto follow is selected this dispose save settings to file settings save settings to file | applies the new settings and saves them to file |
private void action cancel java awt event action event evt this dispose | discards changes and closes the window |
public void stop this this stopped true | stops the simulation and kills this thread |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.