|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.algorithms.tlc.ACGJ3FixedValue.ACGJ3FixedValueIndividual
protected class ACGJ3FixedValue.ACGJ3FixedValueIndividual
DOCUMENT ME!
| Field Summary | |
|---|---|
protected float[][][] |
me
The array of float values that describe this ACGJ3Individual. |
protected java.lang.String |
myParentName
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
protected |
ACGJ3FixedValue.ACGJ3FixedValueIndividual(Infrastructure infra)
Creates a new ACGJ3Individual, providing the Infrastructure it should run on |
| Method Summary | |
|---|---|
protected void |
createMe()
DOCUMENT ME! |
protected float |
getQValue(int node,
int tl)
Calculates the current gain of the given TrafficLight |
java.lang.String |
getXMLName()
DOCUMENT ME! |
void |
load(XMLElement myElement,
XMLLoader loader)
DOCUMENT ME! |
protected void |
relaxBucket(int node,
TrafficLight tl)
Empties the 'gain-value' bucket partly, which is being filled when Roadusers are waiting/voting for their TrafficLight to be set to green. |
protected void |
reset()
Resets the buckets and waiting values for this Individual |
void |
saveChilds(XMLSaver saver)
DOCUMENT ME! |
XMLElement |
saveSelf()
DOCUMENT ME! |
void |
setParentName(java.lang.String parentName)
DOCUMENT ME! |
protected void |
siphonToOtherBucket(TrafficLight here,
TrafficLight there)
When a Roaduser may drive according to it's Sign, but cant as the desired Drivelane is full, (some/all) of the current gain-bucket of it's current TrafficLight is siphoned over to the desired Drivelane, making it more probable that that lane will move, making it possible for this Drivelane to move. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float[][][] me
protected java.lang.String myParentName
| Constructor Detail |
|---|
protected ACGJ3FixedValue.ACGJ3FixedValueIndividual(Infrastructure infra)
infra - DOCUMENT ME!| Method Detail |
|---|
protected void createMe()
protected void reset()
protected float getQValue(int node,
int tl)
node - the Id of the Node this TrafficLight belongs totl - The position of the TrafficLight in the TLDecision[][]
protected void relaxBucket(int node,
TrafficLight tl)
node - The Id of the Node of which a bucket has to be emptied a
bittl - The TrafficLight of which a bucket has to be partly
emptied in the TLDecision[][]
protected void siphonToOtherBucket(TrafficLight here,
TrafficLight there)
here - the Id of the Node at which the Roaduser is waitingthere - The TrafficLight the Roaduser is waiting for
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 | ||||||||