org.jscience.architecture.traffic.algorithms.dp
Class ColearnPolicy

java.lang.Object
  extended by org.jscience.architecture.traffic.algorithms.dp.DrivingPolicy
      extended by org.jscience.architecture.traffic.algorithms.dp.ColearnPolicy
All Implemented Interfaces:
TwoStageLoader, XMLSerializable

public class ColearnPolicy
extends DrivingPolicy

DOCUMENT ME!


Field Summary
static java.lang.String shortXMLName
          DOCUMENT ME!
protected  Colearning tlc
          DOCUMENT ME!
 
Fields inherited from class org.jscience.architecture.traffic.algorithms.dp.DrivingPolicy
model
 
Constructor Summary
ColearnPolicy(SimModel _m, TLController _tlc)
          The constructor for a colearning TC-1 driving policy.
 
Method Summary
 Drivelane getDirectionLane(Roaduser r, Drivelane now_here, Drivelane[] allOutgoing, Drivelane[] shortest)
          The lane to which a car continues his trip.
 java.lang.String getXMLName()
          DOCUMENT ME!
 void load(XMLElement myElement, XMLLoader loader)
          DOCUMENT ME!
 XMLElement saveSelf()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.architecture.traffic.algorithms.dp.DrivingPolicy
getDirection, loadSecondStage, saveChilds, setParentName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shortXMLName

public static final java.lang.String shortXMLName
DOCUMENT ME!

See Also:
Constant Field Values

tlc

protected Colearning tlc
DOCUMENT ME!

Constructor Detail

ColearnPolicy

public ColearnPolicy(SimModel _m,
                     TLController _tlc)
The constructor for a colearning TC-1 driving policy.

Parameters:
_m - The model which is used
_tlc - DOCUMENT ME!
Method Detail

getDirectionLane

public Drivelane getDirectionLane(Roaduser r,
                                  Drivelane now_here,
                                  Drivelane[] allOutgoing,
                                  Drivelane[] shortest)
The lane to which a car continues his trip.

Specified by:
getDirectionLane in class DrivingPolicy
Parameters:
r - The road user being asked.
now_here - DOCUMENT ME!
allOutgoing - All the possible outgoing lanes
shortest - All the lanes which are in a shortest path to the car's destination
Returns:
The chosen lane.

load

public void load(XMLElement myElement,
                 XMLLoader loader)
          throws XMLTreeException,
                 java.io.IOException,
                 XMLInvalidInputException
DOCUMENT ME!

Specified by:
load in interface XMLSerializable
Overrides:
load in class DrivingPolicy
Parameters:
myElement - DOCUMENT ME!
loader - DOCUMENT ME!
Throws:
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLInvalidInputException - DOCUMENT ME!

saveSelf

public XMLElement saveSelf()
                    throws XMLCannotSaveException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
XMLCannotSaveException - DOCUMENT ME!

getXMLName

public java.lang.String getXMLName()
DOCUMENT ME!

Returns:
DOCUMENT ME!