input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void add games won int wins
|
adds a feature to the games won attribute of the player stats object
|
public team stats get team stats total return team stats total
|
returns team stats total
|
private void create common common put common talent new player attribute common talent 0 common put common offense new player attribute common offense 0 common put common defense new player attribute common defense 0 common put common leadership new player attribute common leadership 0
|
create the common attributes for player
|
public void add games tied int ties
|
adds a feature to the games tied attribute of the player stats object
|
public void add games lost int losts
|
adds a feature to the games won attribute of the player stats object
|
public team stats get stats league element league element for int i 0 i team stats size i team stats tmp team stats team stats get i if league element equals tmp get owner return tmp return null
|
return stats for given league element
|
protected void process window event window event e super process window event e if e get id window event window closing client controller exit
|
overridden so we can exit when window is closed
|
public void add goals int goals this goals goals
|
adds a feature to the goals attribute of the player stats object
|
private void create via via put via form new player attribute via form 0 via put via energy new player attribute via energy 0 via put via motivation new player attribute via motivation 0
|
create the via attributes for player
|
public void add assists int assists this assists assists
|
adds a feature to the assists attribute of the player stats object
|
public team stats get stats league league for int i 0 i team stats league size i team stats tmp team stats team stats league get i if league equals tmp get owner return tmp return null
|
return stats for given league
|
public default tree model get default tree model ihm debug info node root new ihm debug info node name root debug info root add children 0 return new default tree model root
|
gets the default tree model attribute of the ihm debug info parser object
|
public void set sort criteria int sc sort criteria sc
|
set sort criteria
|
public void set sort order boolean ascending this ascending ascending
|
set sort orderd
|
public void set airline string airline this airline airline
|
sets the airline attribute of the flight object
|
public team stats get stats league element group league element group for int i 0 i team stats group size i team stats tmp team stats team stats group get i if league element group equals tmp get owner return tmp return null
|
return stats for given league element group
|
public int compare to object o ihm custom comparator tmp ihm custom comparator o if ascending if tmp get sort value get sort value return 1 if tmp get sort value get sort value return 1 else if tmp get sort value get sort value return 1 if tmp get sort value get sort value return 1 return 0
|
implementation of comparable
|
public void new season player stats new vector player stats group new vector player stats league new vector
|
reset stats at the begin of a new season
|
public void add player player player this players add player player set team this
|
adds player to the team
|
public void end season try this stats history add player stats total clone catch exception ignored
|
end of the year save stats into history
|
public team info get team info return team info
|
returns team infos
|
public player info get player info return player info
|
returns player info
|
public string get airline return airline
|
gets the airline attribute of the flight object
|
public void set random default attributes int position int overall this position position set random default attributes overall
|
temporary method for tests position
|
public team attributes get team attributes return team attributes
|
returns team attributes
|
public team get team return team return game controller get scenario get team by player this
|
returns team of player
|
public void show short message string title string msg if frame short message null frame short message is visible turn short messages on if frame short message null frame short message display short message title msg
|
show short message
|
public player attribute get common player attribute string key return player attribute common get key
|
gets the common player attribute attribute of the player attributes object
|
public string to string return this team info get team name strength this team attributes get overall
|
description of the method
|
public player stats get player stats total return player stats total
|
return total stats
|
public void set from latitude double from latitude this from latitude math round from latitude 10000 10000 calc distance
|
sets the from latitude attribute of the flight object
|
public training schedule get training schedule return this training schedule
|
gets the training plan attribute of the team object
|
public player stats get stats league element league element for int i 0 i player stats size i player stats tmp player stats player stats get i if league element equals tmp get owner return tmp return null
|
return stats for given league element
|
public player attribute get viaplayer attribute string key return player attribute via get key
|
gets the v iaplayer attribute attribute of the player attributes object
|
public player stats get stats league league for int i 0 i player stats league size i player stats tmp player stats player stats league get i if league equals tmp get owner return tmp return null
|
return stats for given league
|
public boolean is first team known return playoffs finished
|
checks if first team winner is known so we could start the
|
public player stats get stats league element group league element group for int i 0 i player stats group size i player stats tmp player stats player stats group get i if league element group equals tmp get owner return tmp return null
|
return stats for given league element group
|
public double get from latitude calc distance return from latitude
|
gets the from latitude attribute of the flight object
|
public void set random default attributes int overall for enumeration e common elements e has more elements player attribute e next element set value overall math abs r next int 20 for enumeration e via elements e has more elements player attribute e next element set value overall math abs r next int 20
|
sets the random default attributes attribute of the player attributes
|
public string to string return this player info get first name this player info get last name
|
description of the method
|
public int get common player attributes average int count 0 double total 0 for enumeration e common elements e has more elements total player attribute e next element get value count return int total count
|
gets the common player attributes average attribute of the player attributes
|
public void league playouts finished this playouts finished true get std league owner league part finished
|
sets playouts finished flag to true and informes the owner
|
public training schedule get training schedule return training schedule
|
gets the training schedule attribute of the player object if not found and
|
public int compare to object o player attributes tmp player attributes o if sort order if tmp get sort value get sort value return 1 if tmp get sort value get sort value return 1 else if tmp get sort value get sort value return 1 if tmp get sort value get sort value return 1 return 0
|
implementation of the compare to function to sort the leagues
|
public void set to latitude double to latitude this to latitude math round to latitude 10000 10000 calc distance
|
sets the to latitude attribute of the flight object
|
public void league playoffs finished this playoffs finished true get std league owner league part finished
|
sets playoff finished flag to true and informes the owner
|
public void set training schedule training schedule training schedule this training schedule training schedule
|
sets the training schedule attribute of the player object
|
public void add league playoff element league element league element this other league elements add league element playouts group add league element league element
|
add playoffs league playoffs to this league
|
public void impact on game won player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact gamewon form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact gamewon motivation
|
compute impact on player after a game is won
|
public void set sort criteria string key this sort criteria key
|
sets the sort criteria attribute of the player attributes object
|
public double get to latitude calc distance return to latitude
|
gets the to latitude attribute of the flight object
|
public void impact on game tied player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact gametied form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact gametied motivation
|
compute impact on player after a game is tied
|
public void set sort order boolean sort order this sort order sort order
|
sets the sort order attribute of the player attributes object
|
public void impact on game lost player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact gamelost form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact gamelost motivation
|
compute impact on player after a game is lost
|
public vector get league element groups vector result new vector if regular season group get league element count 0 result add regular season group if playoffs group get league element count 0 result add playoffs group if playouts group get league element count 0 result add playouts group return result
|
returns the league element groups of this league
|
public void set from longitude double from longitude this from longitude math round from longitude 10000 10000 calc distance
|
sets the from longitude attribute of the flight object
|
public void impact on goals player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact goal form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact goal motivation
|
compute impact on player after he scored a goal
|
public string to string return player attributes
|
description of the method
|
public void do scheduler game day event scheduler event game day matches event do not start desktop just remove the short message frame turn short messages off now start a match frame frame game day doc new frame game day null event synchronized this desktop add doc desktop get component count center frame doc add a action listener on frame doc add action listener new java awt event action listener public void action performed action event e turn short messages on move on fire action performed new action event this 0 let s play some matches doc set visible true
|
show matches online
|
public void impact on assist player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact assist form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact assist motivation
|
compute impact on player after he scored an assist
|
public double get from longitude calc distance return from longitude
|
gets the from longitude attribute of the flight object
|
public void impact on goals aggainst player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact goalagainst form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact goalagainst motivation
|
compute impact on player after goal against the team
|
public void impact on penalty player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact penalty form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact penalty motivation
|
compute impact on player after a penalty
|
public void set to longitude double to longitude this to longitude math round to longitude 10000 10000 calc distance
|
sets the to longitude attribute of the flight object
|
public void impact on game played player attribute form player attributes get viaplayer attribute player attributes via form form increase game controller get scenario get scenario settings impact gameplayed form player attribute motivation player attributes get viaplayer attribute player attributes via form motivation increase game controller get scenario get scenario settings impact gameplayed motivation
|
compute impact on player after he played a game
|
public void impact on training overall player attribute pa player attribute get player attributes get specific player attributes double dec game controller get scenario get scenario settings training attributes minus pa length 2 for int i 0 i pa length i pa i decrease dec
|
computes all impacts on a player attributes training over all
|
public double get to longitude calc distance return to longitude
|
gets the to longitude attribute of the flight object
|
public void set to id string to id this to id to id
|
sets the to id attribute of the flight object
|
public string get to id return to id
|
gets the to id attribute of the flight object
|
public void set from id string from id this from id from id
|
sets the from id attribute of the flight object
|
public string get from id return from id
|
gets the from id attribute of the flight object
|
public int compare to object o flight tmp flight o return this get id compare to tmp get id
|
implements the comparable interface
|
public void set property id java lang string property id this property id property id
|
setter for property property id
|
public string get message string buffer sb new string buffer super get message if nested exception null sb append n possibly caused by n sb append nested exception get message return sb to string
|
return the message for this exception including information about any
|
public void init list config this config config
|
initialize the template engine with the specified configuration
|
public void generate throws template application exception for int i 0 i template configs size i template config config template config template configs get i try xpath xpath new xpath config get xpath list results xpath select nodes application config document for int j 0 j results size j template engine engine template engine class for name template engine class new instance engine init template config document get root element get children engine config engine apply config results get j catch exception e e print stack trace throw new template application exception error could not apply template to document e
|
generate the template output by applying the templates specified in
|
private int calculate size return key set size
|
calculate the size of this map and return it
|
public string filter string s return s replace
|
return the value of the attribute filtered by replacing all
|
public string get new attribute name return new attribute name
|
get the new name that the filtered attribute should be exposed as in
|
public string get filter method return filter method
|
get the name of the method to be applied to the original attributes
|
public list get attribute filters return attribute filters
|
get the attribute filters that should be used for the template
|
public boolean equals object obj if obj this return true if obj instanceof template config return false template config tc template config obj boolean template equals template null tc template null template equals tc template boolean xpath equals xpath null tc xpath null xpath equals tc xpath boolean output filename equals output filename null tc output filename null output filename equals tc output filename boolean attribute filters equals attribute filters null tc attribute filters null attribute filters equals tc attribute filters return template equals xpath equals output filename equals attribute filters equals
|
indicates whether some other object is equal to this one
|
public string to string string buffer sb new string buffer sb append org codespin silkworm template template config template sb append template sb append xpath sb append xpath sb append output filename sb append output filename sb append sb append attribute filters size sb append attribute filters return sb to string
|
create a string representation of this
|
public boolean contains value object value return values contains value
|
return code true code if this map contains the specified value
|
public int compare to object o template config tc template config o int return val template compare to tc template if return val 0 return return val return val xpath compare to tc xpath if return val 0 return return val return output filename compare to tc output filename
|
compares this object with the specified object for order
|
public object get object key object return val null if key instanceof string return val element get attribute value string key if return val null list children element get children string key list adapter list new array list for int i 0 i children size i adapter list add new element map adapter element children get i if adapter list size 0 return val adapter list return return val
|
returns the value associated with the specified key in this map or
|
public object put object key object value object return val get key element set attribute string key string value return return val
|
add an attribute with name equal to the specified key and value equal
|
public object remove object key throw new unsupported operation exception the remove method is not supported by the org codespin xml element map adapter class
|
unsupported by this implementation of map
|
public void clear throw new unsupported operation exception the clear method is not supported by the org codespin xml element map adapter class
|
unsupported by this implementation of map
|
public set key set set keys new hash set list attributes element get attributes list children element get children for int i 0 i attributes size i keys add attribute attributes get i get name for int i 0 i children size i keys add element children get i get name return keys
|
returns a set view of the keys contained in this map
|
public collection values collection values new array list list attributes element get attributes list children element get children for int i 0 i attributes size i values add attribute attributes get i get value for int i 0 i children size i values add element children get i return values
|
returns a collection view of the values contained in this map
|
public set entry set set return val new hash set set keys key set iterator iterator key set iterator while iterator has next object key iterator next return val add new entry key get key return return val
|
returns a set view of the mappings contained in this map
|
public string to string return element map adapter wrapping element
|
returns a string representation of the object
|
public object set value object value throw new unsupported operation exception the set value method is not supported by the org codespin xml element map adapter entry class
|
the set value method is not supported by this class
|
private void ukaz highscore if jfhighscore null jfhighscore new jframe top20 else jfhighscore set visible true
|
ukaz okno s highscore
|
public void set name final string flow name name flow name
|
sets the name of the code flow code
|
public string get start flow case return start flow case
|
gets the name of the initial flow case
|
public void set start flow case final string flow name start flow case flow name
|
sets the name of the initial flow case
|
public action get action string action name for action action actions if action get name equals action name return action return null
|
get the action by the name
|
public builder bak get builder impl string builder throws builder exception return builder factory get builder builder
|
gets the implementation of the builder as passed as a parameter
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.