|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.algorithms.dp.DPFactory
public class DPFactory
DOCUMENT ME!
| Field Summary | |
|---|---|
static int |
AGGRESSIVE
DOCUMENT ME! |
static int |
COLEARNING
DOCUMENT ME! |
protected static java.lang.String[] |
dpDescs
DOCUMENT ME! |
protected SimModel |
model
DOCUMENT ME! |
static int |
SHORTEST_PATH
DOCUMENT ME! |
static int |
SMARTER_SHORTEST_PATH
DOCUMENT ME! |
protected TLController |
tlc
DOCUMENT ME! |
protected static java.lang.String[] |
xmlNames
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
DPFactory(SimModel model,
TLController tlc)
Makes a new DPFactory for a specific SimModel and TLC |
|
| Method Summary | |
|---|---|
DrivingPolicy |
genDP(int dp)
Returns a new DrivingPolicy of the requested ID |
static java.lang.String |
getDescription(int algoId)
Look up the description of a DP algorithm by its id |
static java.lang.String[] |
getDescriptions()
Returns an array of driving policy descriptions |
static int |
getId(java.lang.String algoDesc)
Looks up the id of a DP algorithm by its description |
DrivingPolicy |
getInstance(int algoId)
Gets a new instance of an algorithm by its number. |
static int |
getNumberByXMLTagName(java.lang.String tagName)
Gets the number of an algorithm from its XML tag name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SHORTEST_PATH
public static final int SMARTER_SHORTEST_PATH
public static final int AGGRESSIVE
public static final int COLEARNING
protected static final java.lang.String[] dpDescs
protected static final java.lang.String[] xmlNames
protected SimModel model
protected TLController tlc
| Constructor Detail |
|---|
public DPFactory(SimModel model,
TLController tlc)
model - The SimModel to create the algorithm fortlc - The traffic light controller to co-operate with| Method Detail |
|---|
public static int getId(java.lang.String algoDesc)
algoDesc - The description of the algorithm
public static java.lang.String[] getDescriptions()
public DrivingPolicy genDP(int dp)
throws java.lang.ClassNotFoundException
dp - DOCUMENT ME!
java.lang.ClassNotFoundException - DOCUMENT ME!public static java.lang.String getDescription(int algoId)
algoId - The id of the algorithm
public static int getNumberByXMLTagName(java.lang.String tagName)
tagName - DOCUMENT ME!
public DrivingPolicy getInstance(int algoId)
throws java.lang.ClassNotFoundException
algoId - DOCUMENT ME!
java.lang.ClassNotFoundException - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||