|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--generator2.WeightManagerForDataGenerator
Class for weighting the edges.
| Constructor Summary | |
WeightManagerForDataGenerator(EdgeClasses edgeClasses,
ObjectClasses objClasses,
ExternalObjects extObjects)
WeightManagerForDataGenerator constructor. |
|
| Method Summary | |
double |
computeWeight(double distance)
Computes the weight for a distance assuming edge class 0. |
double |
computeWeight(double distance,
double speed)
Computes the weight for a given distance and speed. |
EdgeClasses |
getEdgeClasses()
Returns the description of the edge classes. |
ObjectClasses |
getObjectClasses()
Returns the description of the object classes. |
double |
getWeight(Edge edge)
Returns the weight of the edge. |
double |
getWeight(Edge edge,
boolean forwards)
Returns the directed weight of the edge. |
void |
setActualObjectClass(int actObjClass)
Sets the class of the actual moving object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WeightManagerForDataGenerator(EdgeClasses edgeClasses,
ObjectClasses objClasses,
ExternalObjects extObjects)
edgeClasses - description of the edge classesobjClasses - description of the object classesextObjects - container of the external objects (may be null)| Method Detail |
public double computeWeight(double distance)
computeWeight in interface WeightManagerdistance - distance
public double computeWeight(double distance,
double speed)
computeWeight in interface WeightManagerdistance - distancespeed - speed
public EdgeClasses getEdgeClasses()
public ObjectClasses getObjectClasses()
public double getWeight(Edge edge)
getWeight in interface WeightManageredge - the edge
public double getWeight(Edge edge,
boolean forwards)
getWeight in interface WeightManageredge - the edgeforwards - forwards direction?
public void setActualObjectClass(int actObjClass)
actObjClass - actual class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||