org.commonreality.sensors.handlers
Class AddRemoveTracker
java.lang.Object
org.commonreality.sensors.handlers.AddRemoveTracker
public class AddRemoveTracker
- extends java.lang.Object
utility class that tracks the time to live for ISimulationObjects,
removing them after they have expired.
- Author:
- harrison
|
Method Summary |
void |
add(ISimulationObject object,
double addTime,
double removeTime)
|
double |
update(double currentTime,
ISensor sensor)
returns the next time that something will expire |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddRemoveTracker
public AddRemoveTracker()
add
public void add(ISimulationObject object,
double addTime,
double removeTime)
update
public double update(double currentTime,
ISensor sensor)
- returns the next time that something will expire
- Parameters:
currentTime - sensor -
- Returns: