|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.algorithms.tlc.ACGJ4.Individual
protected class ACGJ4.Individual
DOCUMENT ME!
| Field Summary | |
|---|---|
protected byte[] |
bytema
DOCUMENT ME! |
protected byte[] |
bytepa
DOCUMENT ME! |
protected float |
fitness
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 |
ACGJ4.Individual()
Constructor for loading |
protected |
ACGJ4.Individual(byte[] ma,
byte[] pa)
Creates a new Individual, providing the reproduction genes from daddy and mummy |
protected |
ACGJ4.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 byte[][] |
getGenes()
Returns the genes of this ACGJ3Individual |
protected int |
getMove()
|
protected byte[] |
getReproGenes(float cross,
float mutate)
Returns some reproduction genes from this ACGJ3Individual. |
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 byte[] bytema
protected byte[] bytepa
protected float[][] me
protected float fitness
protected int wait
protected int move
protected java.lang.String myParentName
| Constructor Detail |
|---|
protected ACGJ4.Individual(Infrastructure infra)
infra - DOCUMENT ME!
protected ACGJ4.Individual(byte[] ma,
byte[] pa)
ma - DOCUMENT ME!pa - DOCUMENT ME!protected ACGJ4.Individual()
| Method Detail |
|---|
protected void createMe()
protected void reset()
protected byte[][] getGenes()
protected byte[] getReproGenes(float cross,
float mutate)
cross - DOCUMENT ME!mutate - DOCUMENT ME!
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 | ||||||||