org.jactr.modules.pm.motor.managers
Class ManagedMotorTimedEvent

java.lang.Object
  extended by org.jactr.core.queue.timedevents.AbstractTimedEvent
      extended by org.jactr.modules.pm.motor.buffer.event.MotorTimedEvent
          extended by org.jactr.modules.pm.motor.managers.ManagedMotorTimedEvent
All Implemented Interfaces:
ITimedEvent

public class ManagedMotorTimedEvent
extends MotorTimedEvent


Constructor Summary
ManagedMotorTimedEvent(IMovement movement, IMotorModule module, double driftOffset, java.util.Collection<org.commonreality.efferent.IEfferentCommand.ActualState> driftStates, double startTime, double endTime, AbstractManager manager)
           
 
Method Summary
 void abort()
          when abort is called, we still call fire internal..
 void abort(boolean runFinalization)
          used when we want to abort the timed event but not run the finalization, i.e.
 
Methods inherited from class org.jactr.modules.pm.motor.buffer.event.MotorTimedEvent
fire, getDriftedTimedEvent, getDriftOffset, getDriftStates, getMovement
 
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
 

Constructor Detail

ManagedMotorTimedEvent

public ManagedMotorTimedEvent(IMovement movement,
                              IMotorModule module,
                              double driftOffset,
                              java.util.Collection<org.commonreality.efferent.IEfferentCommand.ActualState> driftStates,
                              double startTime,
                              double endTime,
                              AbstractManager manager)
Method Detail

abort

public void abort()
when abort is called, we still call fire internal.. which will be smart enough to know the difference..

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

abort

public void abort(boolean runFinalization)
used when we want to abort the timed event but not run the finalization, i.e. when the movement completes early that we want to abort this timed event and then post a new one that will expire sooner

Parameters:
runFinalization -