|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--generator2.MovingObjects
Container class for all current moving objects.
| Constructor Summary | |
MovingObjects(WeightManagerForDataGenerator wm,
Network net,
ObjectGenerator objGen,
Reporter reporter,
ReRoute reroute)
MovingObjects constructor. |
|
| Method Summary | |
protected void |
add(MovingObject obj)
Adds a moving object to the container. |
Network |
getNetwork()
Returns the network. |
ObjectClasses |
getObjectClasses()
Returns the description of the object classes. |
ReRoute |
getReRoute()
Returns the rerouting decider. |
int |
getTotalDegreeOfTraversedNodes()
Returns the total degree of traversed nodes. |
int |
getTotalNumberOfTraversedNodes()
Returns the total number of traversed nodes. |
int |
getTotalNumOfObjects()
Returns the total number of created moving objects. |
WeightManagerForDataGenerator |
getWeightManager()
Returns the weight manager. |
void |
incTraversedDegreeBy(int value)
Increments the counter for the degree of traversed nodes by a given value. |
void |
incTraversedNodesBy(int value)
Increments the counter for the number of traversed nodes by a given value. |
void |
move(int time)
Moves all objects. |
void |
remove(int index)
Removes the moving object at a given index. |
void |
removeObjects()
The positions during the route of all objects in the container are reported. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MovingObjects(WeightManagerForDataGenerator wm,
Network net,
ObjectGenerator objGen,
Reporter reporter,
ReRoute reroute)
wm - the weight managernet - the networkobjGen - the object generatorreporter - the reporterreroute - reroute decider| Method Detail |
protected void add(MovingObject obj)
obj - moving objectpublic Network getNetwork()
public ObjectClasses getObjectClasses()
public ReRoute getReRoute()
public int getTotalDegreeOfTraversedNodes()
public int getTotalNumberOfTraversedNodes()
public int getTotalNumOfObjects()
public WeightManagerForDataGenerator getWeightManager()
public void incTraversedDegreeBy(int value)
value - the incrementpublic void incTraversedNodesBy(int value)
value - the incrementpublic void move(int time)
time - the current time stamppublic void remove(int index)
index - index of the objectpublic void removeObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||