org.commonreality.sensors.handlers
Class AddRemoveTracker

java.lang.Object
  extended by 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

Constructor Summary
AddRemoveTracker()
           
 
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
 

Constructor Detail

AddRemoveTracker

public AddRemoveTracker()
Method Detail

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: