public class BasicInterpolator extends java.lang.Object implements IInterpolator
Constructor and Description |
---|
BasicInterpolator(EfferentCommandHandler handler,
IActuator actualActuator,
IActuatorCompletion completion) |
Modifier and Type | Method and Description |
---|---|
void |
abort(IAgentObject agent,
MovementCommand command) |
protected org.commonreality.sensors.motor.interpolator.BasicInterpolator.AgentCommands |
getAgentCommands(IIdentifier agentId,
boolean create) |
protected java.util.Collection<IIdentifier> |
getRelevantAgentIdentifiers() |
void |
start(IAgentObject agent,
MovementCommand command) |
protected void |
startInternal(IAgentObject agent,
MovementCommand command,
double startTimeShift) |
double |
update(double currentTime)
update all the pending movements.
|
protected DeltaTracker<IMutableObject> |
updateEvent(InterpolatorEvent event,
org.commonreality.sensors.motor.interpolator.BasicInterpolator.AgentCommands agentCommands,
double currentTime)
this is the code that actually updates the effernt objects
|
public BasicInterpolator(EfferentCommandHandler handler, IActuator actualActuator, IActuatorCompletion completion)
public void abort(IAgentObject agent, MovementCommand command)
abort
in interface IInterpolator
protected org.commonreality.sensors.motor.interpolator.BasicInterpolator.AgentCommands getAgentCommands(IIdentifier agentId, boolean create)
protected java.util.Collection<IIdentifier> getRelevantAgentIdentifiers()
public void start(IAgentObject agent, MovementCommand command)
start
in interface IInterpolator
protected void startInternal(IAgentObject agent, MovementCommand command, double startTimeShift)
agent
- command
- startTimeShift
- if this is for a component of a composite command, the
startTimeShift will be the start time of the parent.public double update(double currentTime)
IInterpolator
update
in interface IInterpolator
protected DeltaTracker<IMutableObject> updateEvent(InterpolatorEvent event, org.commonreality.sensors.motor.interpolator.BasicInterpolator.AgentCommands agentCommands, double currentTime)
event
- agentCommands
- currentTime
-