org.jactr.modules.pm.common.efferent
Class AbstractEfferentTimedEvent<E extends org.commonreality.efferent.IEfferentCommand>

java.lang.Object
  extended by org.jactr.core.queue.timedevents.AbstractTimedEvent
      extended by org.jactr.modules.pm.common.efferent.AbstractEfferentTimedEvent<E>
All Implemented Interfaces:
ITimedEvent, IBufferBasedTimedEvent

public abstract class AbstractEfferentTimedEvent<E extends org.commonreality.efferent.IEfferentCommand>
extends AbstractTimedEvent
implements IBufferBasedTimedEvent

timed event meant to deal with efferent commands. since efferent commands might not enjoy the strict timings that act-r expects, these timed events have the ability to drift forward in time until the efferent command's state is appropriate.

Author:
harrison

Constructor Summary
AbstractEfferentTimedEvent(double start, double end, java.util.concurrent.Future<E> commandFuture, IActivationBuffer buffer)
           
 
Method Summary
 void abort()
          called when the event is to be aborted
 void fire(double currentTime)
          called when this event should be fired..
 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.
 void setDriftStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)
           
 
Methods inherited from class org.jactr.core.queue.timedevents.AbstractTimedEvent
getEndTime, getStartTime, hasAborted, hasFired, setTimes, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.queue.ITimedEvent
getEndTime, getStartTime, hasAborted, hasFired
 

Constructor Detail

AbstractEfferentTimedEvent

public AbstractEfferentTimedEvent(double start,
                                  double end,
                                  java.util.concurrent.Future<E> commandFuture,
                                  IActivationBuffer buffer)
Method Detail

getBuffer

public IActivationBuffer getBuffer()
Description copied from interface: IBufferBasedTimedEvent
return the buffer that this timed event will be posting changes to.

Specified by:
getBuffer in interface IBufferBasedTimedEvent
Returns:

getBoundChunk

public IChunk getBoundChunk()
Description copied from interface: IBufferBasedTimedEvent
return the chunk that is (or will be) in the buffer that will be manipulated

Specified by:
getBoundChunk in interface IBufferBasedTimedEvent
Returns:

setDriftStates

public void setDriftStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)

abort

public final void abort()
Description copied from class: AbstractTimedEvent
called when the event is to be aborted

Specified by:
abort in interface ITimedEvent
Overrides:
abort in class AbstractTimedEvent

fire

public final void fire(double currentTime)
Description copied from class: AbstractTimedEvent
called when this event should be fired..

Specified by:
fire in interface ITimedEvent
Overrides:
fire in class AbstractTimedEvent
Parameters:
currentTime - Description of the Parameter