|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.algorithms.dp.DrivingPolicy
org.jscience.architecture.traffic.algorithms.dp.ShortestPathDP
public class ShortestPathDP
This extension of gld.DrivingPolicy selects the next lane
by finding one which on the shortest path to road user's destination.
| Field Summary | |
|---|---|
static java.lang.String |
shortXMLName
|
| Fields inherited from class org.jscience.architecture.traffic.algorithms.dp.DrivingPolicy |
|---|
model, tlc |
| Constructor Summary | |
|---|---|
ShortestPathDP(SimModel sim,
TLController _tlc)
The constructor for a shortest driving policy. |
|
| Method Summary | |
|---|---|
Drivelane |
getDirectionLane(Roaduser r,
Drivelane lane_now,
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)
Empty for Drivingpolicy |
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 |
|---|
public static final java.lang.String shortXMLName
| Constructor Detail |
|---|
public ShortestPathDP(SimModel sim,
TLController _tlc)
m - The model which is used| Method Detail |
|---|
public Drivelane getDirectionLane(Roaduser r,
Drivelane lane_now,
Drivelane[] allOutgoing,
Drivelane[] shortest)
getDirectionLane in class DrivingPolicyr - The road user being asked.allOutgoing - All the possible outgoing lanesshortest - All the lanes which are in a shortest path to the car's destinationlane_now - DOCUMENT ME!
public void load(XMLElement myElement,
XMLLoader loader)
throws XMLTreeException,
java.io.IOException,
XMLInvalidInputException
DrivingPolicy
load in interface XMLSerializableload in class DrivingPolicymyElement - DOCUMENT ME!loader - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLInvalidInputException - DOCUMENT ME!
public XMLElement saveSelf()
throws XMLCannotSaveException
XMLSerializable
XMLCannotSaveException - The XMLSerializable can throw this
exception if it cannot save itself or one of its child objects
for whatever reason.public java.lang.String getXMLName()
XMLSerializable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||