org.intranet.sim.event
Class TrackingUpdateEvent
java.lang.Object
org.intranet.sim.event.Event
org.intranet.sim.event.IncrementalUpdateEvent
org.intranet.sim.event.TrackingUpdateEvent
- Direct Known Subclasses:
- Door.CloseEvent, Door.OpenEvent, MovableLocation.ArrivalEvent
- public abstract class TrackingUpdateEvent
- extends IncrementalUpdateEvent
Fields inherited from class org.intranet.sim.event.Event |
|
Method Summary |
float |
currentValue(long time)
Gets the current tracking value as a straight interpolation between the
beginValue and endValue. |
private float |
percentDone(long time)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
beginTime
private long beginTime
beginValue
private float beginValue
distance
private float distance
TrackingUpdateEvent
private TrackingUpdateEvent()
TrackingUpdateEvent
public TrackingUpdateEvent(long beginTime,
float begin,
long endTime,
float end)
percentDone
private float percentDone(long time)
currentValue
public final float currentValue(long time)
- Gets the current tracking value as a straight interpolation between the
beginValue and endValue.
- Parameters:
time
- The current time. Do not pass Event.getTime(), use
eventQueue.getCurrentTime().
- Returns:
- The current value being tracked by this event.