input
stringlengths
10
828
output
stringlengths
5
107
public string get land reproduction table return string utils mush this land reproduction table
getter for property land reproduction table
public void add object o elements add o if o instanceof object2 dagent object2 dagent o set location this
adds an object to this cell
public void set land reproduction table string table this land reproduction table string utils chop table
setter for property land reproduction table
public void add object o if elements is empty space get matrix put x y this elements add o if o instanceof object2 dagent object2 dagent o set location this
adds an object to this cell
public void remove object o elements remove o if o instanceof object2 dagent object2 dagent o set location null if elements is empty space get matrix remove x y
removes the specified object from this cell
public string get land survival table return string utils mush this land survival table
getter for property land survival table
public int get cell size at int x int y location c this get cell at xnorm x ynorm y if c null return c size return 0
gets the size number of occupants of the cell at
public int get index of int x int y object obj location c this get cell at xnorm x ynorm y if c null return c get list index of obj return 1
gets the index of the specified object at the specified location
public iterator get iterator at int x int y return this get cell at xnorm x ynorm y iterator
gets the iterator for the collection of objects at the specified
public list get objects at int x int y return this get cell at xnorm x ynorm y get list
gets the list of objects at the specified coordinates
public void set land survival table string table this land survival table string utils chop table
setter for property land survival table
public void put object at int x int y object object this get cell at xnorm x ynorm y add object
puts the specified object into the cell at the specified coordinates
public void remove object at int x int y object obj this get cell at xnorm x ynorm y remove obj
removes the specified object from the specified location
public void trim for int i 0 i get size x i for int j 0 j get size y j int count get cell size at i j if count 0 get matrix remove i j get matrix trim
releases any superfluous memory
public location get cell at int x int y location cell location get matrix get xnorm x ynorm y if cell null cell new ordered multi2 dlocation this xnorm x ynorm y return cell
gets the location object at the specified coordinates
public location get cell at int x int y location cell location get matrix get xnorm x ynorm y if cell null cell new multi2 dlocation this xnorm x ynorm y return cell
gets the location object at the specified coordinates
public void put object at int x int y int index object object ordered multi2 dlocation this get cell at xnorm x ynorm y insert index object
puts the specified object into the cell at the specified coordinates
public object get object at int x int y int index return ordered multi2 dlocation this get cell at xnorm x ynorm y get object index
gets the object at the specified location and index
public object remove object at int x int y int index return ordered multi2 dlocation this get cell at xnorm x ynorm y remove index
removes the object at the specified index at the specified location
public int get pair max age return age survival table length
getter for property max age
public void insert int index object o if elements is empty space get matrix put x y this array list elements add index o if o instanceof object2 dagent object2 dagent o set location this
inserts the specified object at the specified index
public object remove int index object o array list elements remove index if o instanceof object2 dagent object2 dagent o set location null if elements is empty space get matrix remove x y return o
removes the object at the specified index
public string get habitat space file return habitat space file
getter for property habitat space
public void set habitat space file string habitat space file this habitat space file habitat space file
setter for property habitat space
public double get iteration survival mean return this iteration survival mean
getter for property iteration survival mean
public void set iteration survival mean double iteration survival mean this iteration survival mean iteration survival mean
setter for property iteration survival mean
public double get iteration survival std return this iteration survival std
getter for property iteration survival std
public void set iteration survival std double iteration survival std this iteration survival std iteration survival std
setter for property iteration survival std
public double get current iteration survival return this current iteration survival
getter for property current iteration survival
public object make object throws java lang exception pair pair new pair model landscape pair set clutch size pair clutch size pair set search time pair search time pair set current age 0 pair set survival generator survival generator pair set reproduction generator rep generator pair set dispersal distance pair mean dispersal distance disp generator pair set dispersal angle generator disp generator return pair
either gets a pair from the pool or creates a new one
public int getvalue at int id version epoque e versions first element while versions elements has more elements if e get version id version return e get value e versions elements next element return 1
methods used to retrieve the value at the specified version
public string to string return compteur de l afficheur name cpt
redefinition of the to string method used for command line
public void set capteur subject integer capteur this capteur capteur
set the referenced capteur
public void set name string string this afficheur set name string
sets the displayers name
private void configure canaux capteur set canaux displayers
calls stream creation
public void stop concrete capteur capteur set tick false
calls set tick on capteur
public void test set strategy this capteur set strategy algo assert true this capteur get strategy null
test method for
public void test tick assert true this capteur get value 0 this capteur tick assert true this capteur get value 1
test method for
public void test get strategy this capteur set strategy algo assert true this capteur get strategy null
test method for
public void test get value assert true this capteur get value 0 this capteur tick assert true this capteur get value 1
test method for
public void test is ticking assert true this capteur is ticking this capteur set tick false assert false this capteur is ticking
test method for
public void test set tick assert true this capteur is ticking this capteur set tick false assert false this capteur is ticking
test method for
public void test get value canal set scheduler new scheduled thread pool executor 10 assert true integer canal get value 0 capteur tick assert true integer canal get value 1
test method for
public void test get afficheur assert true canal get afficheur null
test method for
public void test call test set capteur assert true integer concrete method request get request get call 0 concrete method request get request get get capteur tick assert true integer concrete method request get request get call 1
test method for
public void test set capteur assert true concrete method request get request get get capteur null concrete method request get request get set capteur new concrete capteur assert true concrete method request get request get get capteur null
test method for
public boolean has stereotype eobject object string stereotype throws enode cast exception factory exception search with real stereotype iterator it list efactory e get object stereotype iterator while it has next eobject element eobject it next if stereotype equals efactory e get element name return true return false
verify if an element have a stereotype
public cursor get full schedule for serie string code serie return db raw query select schedule id week laps time track name tracklayout name as layout from schedule tracklayout track where tracklayout code schedule layout and track code tracklayout track and schedule serie new string code serie
retrieve the full schedule for one series
public cursor get full schedule for serie string code serie long week return db raw query select schedule id week laps time track name tracklayout name as layout from schedule tracklayout track where tracklayout code schedule layout and track code tracklayout track and schedule serie and schedule week new string code serie week to string
retrieve the full schedule for one series
public boolean write instance state context c going to save the last selected state of the box in the preferences to select it next time the app is launched shared preferences editor prefs shared preferences edit prefs put boolean box road box road is checked non nls 1 prefs put boolean box oval box oval is checked non nls 1 prefs put boolean box preferred box preferred is checked non nls 1 finally commit the values prefs commit return true
write the applications current state to a properties repository
public boolean read instance state box road set checked shared preferences get boolean box road true box oval set checked shared preferences get boolean box oval true box preferred set checked shared preferences get boolean box preferred false return true
read the previous state of the application from the preferences file
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title xcore edit plugin instance get string ui wizard label set default page image descriptor extended image registry instance get image descriptor xcore edit plugin instance get image full wizban new constraint
this just records the information
protected eobject create initial model eclass e class eclass constraint package get eclassifier initial object creation page get initial object name eobject root object constraint factory create e class return root object
create a new model
protected string get label string type name try return xcore edit plugin instance get string ui type name type catch missing resource exception mre xcore edit plugin instance log mre return type name
returns the label for the specified type name
public adapter create xint var adapter return null
creates a new adapter for an object of class
public adapter create xint var expr adapter return null
creates a new adapter for an object of class
public adapter create xsum adapter return null
creates a new adapter for an object of class
public adapter create xneg adapter return null
creates a new adapter for an object of class
public adapter create xscalar adapter return null
creates a new adapter for an object of class
public adapter create xconstraint adapter return null
creates a new adapter for an object of class
public adapter create xbasic constraint adapter return null
creates a new adapter for an object of class
public adapter create xeqadapter return null
creates a new adapter for an object of class
public adapter create xneqadapter return null
creates a new adapter for an object of class
public adapter create xleqadapter return null
creates a new adapter for an object of class
public adapter create xltadapter return null
creates a new adapter for an object of class
public adapter create xint cst adapter return null
creates a new adapter for an object of class
public adapter create xint var ref adapter return null
creates a new adapter for an object of class
public adapter create xint cst expr adapter return null
creates a new adapter for an object of class
public adapter create xadd adapter return null
creates a new adapter for an object of class
public adapter create xsub adapter return null
creates a new adapter for an object of class
public adapter create xmult adapter return null
creates a new adapter for an object of class
public adapter create xdiv adapter return null
creates a new adapter for an object of class
public adapter create xppcm adapter return null
creates a new adapter for an object of class
public adapter create xint expr adapter return null
creates a new adapter for an object of class
public adapter create xint cst ref adapter return null
creates a new adapter for an object of class
protected void add value property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xint var value feature get string ui property descriptor description ui xint var value feature ui xint var type constraint package literals xint var value true false false item property descriptor integral value image null null
this adds a property descriptor for the value feature
protected void add min property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xint var min feature get string ui property descriptor description ui xint var min feature ui xint var type constraint package literals xint var min true false false item property descriptor integral value image null null
this adds a property descriptor for the min feature
protected void add max property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xint var max feature get string ui property descriptor description ui xint var max feature ui xint var type constraint package literals xint var max true false false item property descriptor integral value image null null
this adds a property descriptor for the max feature
protected void handle activate recompute the read only state if editing domain get resource to read only map null editing domain get resource to read only map clear refresh any actions that may become enabled or disabled set selection get selection if removed resources is empty if handle dirty conflict get site get page close editor constraint editor this false else removed resources clear changed resources clear saved resources clear else if changed resources is empty changed resources remove all saved resources handle changed resources changed resources clear saved resources clear
handles activation of the editor or its associated views
protected void add constant property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xint cst ref constant feature get string ui property descriptor description ui xint cst ref constant feature ui xint cst ref type constraint package literals xint cst ref constant true false true null null null
this adds a property descriptor for the constant feature
protected void add variable property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xint var ref variable feature get string ui property descriptor description ui xint var ref variable feature ui xint var ref type constraint package literals xint var ref variable true false true null null null
this adds a property descriptor for the variable feature
protected void add parameters property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xsub parameters feature get string ui property descriptor description ui xsub parameters feature ui xsub type constraint package literals xsub parameters true false true null null null
this adds a property descriptor for the parameters feature
protected void add parameters property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xdiv parameters feature get string ui property descriptor description ui xdiv parameters feature ui xdiv type constraint package literals xdiv parameters true false true null null null
this adds a property descriptor for the parameters feature
protected void add value property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xint cst value feature get string ui property descriptor description ui xint cst value feature ui xint cst type constraint package literals xint cst value true false false item property descriptor integral value image null null
this adds a property descriptor for the value feature
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xconstraint name feature get string ui property descriptor description ui xconstraint name feature ui xconstraint type constraint package literals xconstraint name true false false item property descriptor generic value image null null
this adds a property descriptor for the name feature
protected void add comment property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui xconstraint comment feature get string ui property descriptor description ui xconstraint comment feature ui xconstraint type constraint package literals xconstraint comment true false false item property descriptor generic value image null null
this adds a property descriptor for the comment feature
public diagnostic analyze resource problems resource resource exception exception if resource get errors is empty resource get warnings is empty basic diagnostic basic diagnostic new basic diagnostic diagnostic error exem 0 get string ui create model error message resource get uri new object exception null object resource exception basic diagnostic merge ecore util compute diagnostic resource true return basic diagnostic else if exception null return new basic diagnostic diagnostic error exem 0 get string ui create model error message resource get uri new object exception else return diagnostic ok instance
returns a diagnostic describing the errors and warnings listed in the resource
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title xcore edit plugin instance get string ui wizard label set default page image descriptor extended image registry instance get image descriptor xcore edit plugin instance get image full wizban new model
this just records the information
public adapter create xclass adapter return null
creates a new adapter for an object of class
public adapter create xreference adapter return null
creates a new adapter for an object of class
public adapter create xelement adapter return null
creates a new adapter for an object of class
public adapter create xattribute adapter return null
creates a new adapter for an object of class
public adapter create xfeature adapter return null
creates a new adapter for an object of class
public adapter create xobject adapter return null
creates a new adapter for an object of class
public adapter create xrelation adapter return null
creates a new adapter for an object of class
public adapter create xref feature adapter return null
creates a new adapter for an object of class
public adapter create xatt feature adapter return null
creates a new adapter for an object of class
public adapter create xvar values adapter return null
creates a new adapter for an object of class
protected void handle activate recompute the read only state if editing domain get resource to read only map null editing domain get resource to read only map clear refresh any actions that may become enabled or disabled set selection get selection if removed resources is empty if handle dirty conflict get site get page close editor model editor this false else removed resources clear changed resources clear saved resources clear else if changed resources is empty changed resources remove all saved resources handle changed resources changed resources clear saved resources clear
handles activation of the editor or its associated views
public adapter create xvar attribute adapter return null
creates a new adapter for an object of class