|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--generator2.ExternalObjects
Container class for all external objects.
| Constructor Summary | |
ExternalObjects(java.util.Properties properties,
Time time,
ExternalObjectClasses objClasses)
MovingObjects constructor. |
|
| Method Summary | |
protected void |
add(ExternalObject obj)
Adds an external object to the container. |
int |
computeDecrease(Edge edge)
Computes the decrease of speed on the given edge by external objects. |
long |
getNumOfComputedDecreases()
Returns the number of computed decreases. |
long |
getNumOfRealDecreases()
Returns the number of real decreases. |
ExternalObjectClasses |
getObjectClasses()
Returns the description of the external object classes. |
Time |
getTime()
Returns the time object. |
int |
getTotalNumOfObjects()
Returns the total number of created moving objects. |
long |
getUsedTime()
Returns the time used for the management of external objects. |
void |
moveAndResizeAndRemoveObjects(int time,
ExternalObjectGenerator gen,
Reporter reporter)
Updates (moves and resizes) all external objects. |
void |
removeObjects()
All external objects are removed from the tree into the dead object container. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExternalObjects(java.util.Properties properties,
Time time,
ExternalObjectClasses objClasses)
properties - properties of the generatortime - the time objectobjClasses - description of the external object classes| Method Detail |
protected void add(ExternalObject obj)
obj - external objectpublic int computeDecrease(Edge edge)
edge - the edge
public long getNumOfComputedDecreases()
public long getNumOfRealDecreases()
public ExternalObjectClasses getObjectClasses()
public Time getTime()
public int getTotalNumOfObjects()
public long getUsedTime()
public void moveAndResizeAndRemoveObjects(int time,
ExternalObjectGenerator gen,
Reporter reporter)
time - the current time stampgen - the generator of external object classesreporter - the reporterpublic void removeObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||