|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.algorithms.tlc.ACGJ5.Individual
protected class ACGJ5.Individual
DOCUMENT ME!
| Field Summary | |
|---|---|
protected float |
fitness
DOCUMENT ME! |
protected float[] |
genes
DOCUMENT ME! |
protected float[][] |
me
DOCUMENT ME! |
protected int |
move
DOCUMENT ME! |
protected java.lang.String |
myParentName
DOCUMENT ME! |
protected int |
wait
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
protected |
ACGJ5.Individual()
Constructor for loading |
protected |
ACGJ5.Individual(float[] _genes)
Creates a new Individual, providing the reproduction genes from daddy and mummy |
protected |
ACGJ5.Individual(Infrastructure infra)
Creates a new Individual, providing the Infrastructure it should run on |
| Method Summary | |
|---|---|
protected void |
createMe()
DOCUMENT ME! |
protected float |
getFactor(int node,
int tl)
Calculates the gain-factor for the given TrafficLight |
protected float |
getFitness()
|
protected float[] |
getGenes()
Returns the genes of this Individual |
protected int |
getMove()
|
protected int |
getWait()
|
java.lang.String |
getXMLName()
DOCUMENT ME! |
void |
load(XMLElement myElement,
XMLLoader loader)
DOCUMENT ME! |
protected void |
reset()
Resets the buckets and waiting values for this Individual |
void |
saveChilds(XMLSaver saver)
DOCUMENT ME! |
XMLElement |
saveSelf()
DOCUMENT ME! |
protected void |
setFitness(float fit)
|
protected void |
setMove(int _move)
|
void |
setParentName(java.lang.String parentName)
DOCUMENT ME! |
protected void |
setWait(int _wait)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float[] genes
protected float[][] me
protected float fitness
protected int wait
protected int move
protected java.lang.String myParentName
| Constructor Detail |
|---|
protected ACGJ5.Individual(Infrastructure infra)
infra - DOCUMENT ME!protected ACGJ5.Individual(float[] _genes)
_genes - DOCUMENT ME!protected ACGJ5.Individual()
| Method Detail |
|---|
protected void createMe()
protected void reset()
protected float[] getGenes()
protected float getFitness()
protected void setFitness(float fit)
protected void setWait(int _wait)
protected int getWait()
protected void setMove(int _move)
protected int getMove()
protected float getFactor(int node,
int tl)
node - the Id of the Node this TrafficLight belongs totl - The position of the TrafficLight in the TLDecision[][]
public void load(XMLElement myElement,
XMLLoader loader)
throws XMLTreeException,
java.io.IOException,
XMLInvalidInputException
load in interface XMLSerializablemyElement - DOCUMENT ME!loader - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLInvalidInputException - DOCUMENT ME!
public XMLElement saveSelf()
throws XMLCannotSaveException
saveSelf in interface XMLSerializableXMLCannotSaveException - DOCUMENT ME!
public void saveChilds(XMLSaver saver)
throws XMLTreeException,
java.io.IOException,
XMLCannotSaveException
saveChilds in interface XMLSerializablesaver - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLCannotSaveException - DOCUMENT ME!public java.lang.String getXMLName()
getXMLName in interface XMLSerializable
public void setParentName(java.lang.String parentName)
throws XMLTreeException
setParentName in interface XMLSerializableparentName - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||