public class MotorTimedEvent extends AbstractTimedEvent
_endTime, _hasAborted, _hasFired, _startTime, _toString
Constructor and Description |
---|
MotorTimedEvent(IMovement movement,
IMotorModule module,
double driftOffset,
java.util.Collection<IEfferentCommand.ActualState> driftStates,
double startTime,
double endTime) |
Modifier and Type | Method and Description |
---|---|
void |
fire(double currentTime)
called when this event should be fired..
|
protected void |
fireInternal(double currentTime) |
MotorTimedEvent |
getDriftedTimedEvent() |
double |
getDriftOffset() |
java.util.Set<IEfferentCommand.ActualState> |
getDriftStates() |
protected IEfferentCommand |
getMotorCommand() |
IMovement |
getMovement() |
protected MotorTimedEvent |
instantiateDrift(IMovement movement,
IMotorModule module,
double driftOffset,
java.util.Collection<IEfferentCommand.ActualState> driftSet) |
abort, getEndTime, getStartTime, hasAborted, hasFired, setTimes, shouldWarnOnTimeSlips, toString
public MotorTimedEvent(IMovement movement, IMotorModule module, double driftOffset, java.util.Collection<IEfferentCommand.ActualState> driftStates, double startTime, double endTime)
public java.util.Set<IEfferentCommand.ActualState> getDriftStates()
public double getDriftOffset()
public IMovement getMovement()
public MotorTimedEvent getDriftedTimedEvent()
public void fire(double currentTime)
AbstractTimedEvent
fire
in interface ITimedEvent
fire
in class AbstractTimedEvent
currentTime
- Description of the Parameterprotected void fireInternal(double currentTime)
protected MotorTimedEvent instantiateDrift(IMovement movement, IMotorModule module, double driftOffset, java.util.Collection<IEfferentCommand.ActualState> driftSet)
protected IEfferentCommand getMotorCommand()