org.jscience.architecture.traffic.algorithms.tlc
Class TC1TLCFix.PEntry

java.lang.Object
  extended by org.jscience.architecture.traffic.algorithms.tlc.TC1TLCFix.PEntry
All Implemented Interfaces:
XMLSerializable
Enclosing class:
TC1TLCFix

public class TC1TLCFix.PEntry
extends java.lang.Object
implements XMLSerializable


Constructor Summary
TC1TLCFix.PEntry()
           
 
Method Summary
 void addSameStartSituation()
           
 boolean equals(java.lang.Object other)
           
 double getChance()
           
 int getDes()
           
 boolean getLight()
           
 int getPos()
           
 int getPosNew()
           
 double getSameSituation()
           
 double getSameStartSituation()
           
 int getTl()
           
 int getTlNew()
           
 java.lang.String getXMLName()
          DOCUMENT ME!
 void load(XMLElement myElement, XMLLoader loader)
          Load this XMLSerializable
 boolean sameSituation(TC1TLCFix.CountEntry other)
           
 boolean sameStartSituation(TC1TLCFix.CountEntry other)
           
 void saveChilds(XMLSaver saver)
          This method gives an XMLSerializable the opportunity to save its child objects.
 XMLElement saveSelf()
          DOCUMENT ME!
 void setParentName(java.lang.String parentName)
          Sets a new parent name for this object
 void setSameSituation(long s)
           
 void setSameStartSituation(long s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TC1TLCFix.PEntry

public TC1TLCFix.PEntry()
Method Detail

addSameStartSituation

public void addSameStartSituation()

setSameStartSituation

public void setSameStartSituation(long s)

setSameSituation

public void setSameSituation(long s)

getSameStartSituation

public double getSameStartSituation()

getSameSituation

public double getSameSituation()

getChance

public double getChance()

getPos

public int getPos()

getPosNew

public int getPosNew()

getTl

public int getTl()

getTlNew

public int getTlNew()

getDes

public int getDes()

getLight

public boolean getLight()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

sameSituation

public boolean sameSituation(TC1TLCFix.CountEntry other)

sameStartSituation

public boolean sameStartSituation(TC1TLCFix.CountEntry other)

load

public void load(XMLElement myElement,
                 XMLLoader loader)
          throws XMLTreeException,
                 java.io.IOException,
                 XMLInvalidInputException
Description copied from interface: XMLSerializable
Load this XMLSerializable

Specified by:
load in interface XMLSerializable
Parameters:
myElement - The XMLElement which represents this object in the XML tree. It can contain attributes which hold information about the object.
loader - The XMLLoader which this XMLSerializable can use to load child objects.
Throws:
XMLTreeException - The parser can throw this exception if it is called by the XMLSerializable. The XMLSerializable should NOT throw this exception by itself and preferrably not catch it too.
java.io.IOException - Thrown in case of an read error in the XML file.
XMLInvalidInputException - The XMLSerializable can throw this exception if it cannot load itself or one of its child objects for whatever reason.

saveSelf

public XMLElement saveSelf()
                    throws XMLCannotSaveException
Description copied from interface: XMLSerializable
DOCUMENT ME!

Specified by:
saveSelf in interface XMLSerializable
Returns:
The XMLElement which represents the internal datastate. This function is not meant to save child objects. That is done in void saveChilds()
Throws:
XMLCannotSaveException - The XMLSerializable can throw this exception if it cannot save itself or one of its child objects for whatever reason.

saveChilds

public void saveChilds(XMLSaver saver)
                throws XMLTreeException,
                       java.io.IOException,
                       XMLCannotSaveException
Description copied from interface: XMLSerializable
This method gives an XMLSerializable the opportunity to save its child objects.

Specified by:
saveChilds in interface XMLSerializable
Parameters:
saver - The XMLSaver that the XMLSerializable can use to save its child objects.
Throws:
XMLTreeException - The parser can throw this exception if it is called by the XMLSerializable. The XMLSerializable should NOT throw this exception by itself and preferrably also not catch it too.
java.io.IOException - Thrown in case the parser cannot write to the file
XMLCannotSaveException - The XMLSerializable can throw this exception if it cannot save itself or one of its child objects for whatever reason.

setParentName

public void setParentName(java.lang.String parentName)
Description copied from interface: XMLSerializable
Sets a new parent name for this object

Specified by:
setParentName in interface XMLSerializable
Parameters:
parentName - The new parent name

getXMLName

public java.lang.String getXMLName()
Description copied from interface: XMLSerializable
DOCUMENT ME!

Specified by:
getXMLName in interface XMLSerializable
Returns:
The tagname of the XML element in which information about this object is stored prepended by a dot separated list of the tagnames of the parents of this object. (e.g. "model.infrastructure.node")