|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxmlgp.Util
public final class Util
This class has the utility methods for XMLGP.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static Experiment |
getExperimentById(Project project,
int id)
Returns experiment for the given id of the experiment. |
static Generation |
getGenerationtById(Trial trial,
int id)
Returns generation for the given id of the generation. |
static Individual |
getIndividualById(Generation generation,
int id)
Returns individual for the given id of the individual. |
int |
getNumberOfChildren(Node node)
Returns the number of children of a node. |
Representation |
getRepresentationById(Individual individual,
int id)
Returns representation for the given id of the representation. |
Representation |
getRepresentationByType(Individual individual,
java.lang.String type)
|
static Treatment |
getTreatmentById(Experiment experiment,
int id)
Returns treatment for the given id of the treatment. |
static Trial |
getTrialtById(Treatment treatment,
int id)
Returns trial for the given id of the trial. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static Experiment getExperimentById(Project project, int id)
project
- the data holder of projectid
- the id of the experiment
public static Treatment getTreatmentById(Experiment experiment, int id)
experiment
- the data holder of experimentid
- the id of the treatment
public static Trial getTrialtById(Treatment treatment, int id)
treatment
- the data holder of treatmentid
- the id of the trial
public static Generation getGenerationtById(Trial trial, int id)
trial
- the data holder of trialid
- the id of the generation
public static Individual getIndividualById(Generation generation, int id)
generation
- the data holder of individualid
- the id of the individual
public Representation getRepresentationById(Individual individual, int id)
individual
- the data holder of individualid
- the id of the representation
public Representation getRepresentationByType(Individual individual, java.lang.String type)
public int getNumberOfChildren(Node node)
node
- the data holder of node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |