public abstract class AbstractEfferentTimedEvent<E extends IEfferentCommand> extends AbstractTimedEvent implements IBufferBasedTimedEvent
_endTime, _hasAborted, _hasFired, _startTime, _toString
Constructor and Description |
---|
AbstractEfferentTimedEvent(double start,
double end,
java.util.concurrent.Future<E> commandFuture,
IActivationBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
called when the event is to be aborted
|
protected void |
aborted(java.util.concurrent.Future<E> commandFuture) |
protected abstract AbstractEfferentTimedEvent<E> |
clone()
return a deep copy of this event.
|
protected void |
drift(double currentTime,
java.util.concurrent.Future<E> commandFuture) |
protected void |
drifted(AbstractEfferentTimedEvent<E> driftedEvent) |
void |
fire(double currentTime)
called when this event should be fired..
|
protected void |
fired(double currentTime,
java.util.concurrent.Future<E> commandFuture) |
IChunk |
getBoundChunk()
return the chunk that is (or will be) in the buffer that will be
manipulated
|
IActivationBuffer |
getBuffer()
return the buffer that this timed event will be posting changes
to.
|
protected java.util.Set<IEfferentCommand.ActualState> |
getDriftStates() |
protected java.util.concurrent.Future<E> |
getFuture() |
void |
setDriftStates(IEfferentCommand.ActualState... states) |
getEndTime, getStartTime, hasAborted, hasFired, setTimes, shouldWarnOnTimeSlips, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEndTime, getStartTime, hasAborted, hasFired
public AbstractEfferentTimedEvent(double start, double end, java.util.concurrent.Future<E> commandFuture, IActivationBuffer buffer)
protected java.util.concurrent.Future<E> getFuture()
protected java.util.Set<IEfferentCommand.ActualState> getDriftStates()
protected abstract AbstractEfferentTimedEvent<E> clone()
clone
in class java.lang.Object
Object.clone()
public IActivationBuffer getBuffer()
IBufferBasedTimedEvent
getBuffer
in interface IBufferBasedTimedEvent
public IChunk getBoundChunk()
IBufferBasedTimedEvent
getBoundChunk
in interface IBufferBasedTimedEvent
public void setDriftStates(IEfferentCommand.ActualState... states)
public final void abort()
AbstractTimedEvent
abort
in interface ITimedEvent
abort
in class AbstractTimedEvent
public final void fire(double currentTime)
AbstractTimedEvent
fire
in interface ITimedEvent
fire
in class AbstractTimedEvent
currentTime
- Description of the Parameterprotected void aborted(java.util.concurrent.Future<E> commandFuture)
protected void drift(double currentTime, java.util.concurrent.Future<E> commandFuture)
protected void drifted(AbstractEfferentTimedEvent<E> driftedEvent)
protected void fired(double currentTime, java.util.concurrent.Future<E> commandFuture)