org.commonreality.sensors.keyboard
Class SerialDurationEquation

java.lang.Object
  extended by org.commonreality.sensors.keyboard.SerialDurationEquation
All Implemented Interfaces:
ICommandTimingEquation

public class SerialDurationEquation
extends java.lang.Object
implements ICommandTimingEquation


Constructor Summary
SerialDurationEquation()
           
 
Method Summary
 double computeTimings(DeltaTracker<IMutableObject> command)
          compute how long it will take to execute a command.
 double computeTimings(IEfferentCommand command, double startTime)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialDurationEquation

public SerialDurationEquation()
Method Detail

computeTimings

public double computeTimings(DeltaTracker<IMutableObject> command)
Description copied from interface: ICommandTimingEquation
compute how long it will take to execute a command. If the command is an ICompoundCommand, then the timings and relative start times for the components should be updated as well

Specified by:
computeTimings in interface ICommandTimingEquation
Returns:
duration of the command

computeTimings

public double computeTimings(IEfferentCommand command,
                             double startTime)