org.jactr.modules.pm.motor.command.translators
Class PunchTranslator

java.lang.Object
  extended by org.jactr.modules.pm.motor.command.translators.AbstractTranslator
      extended by org.jactr.modules.pm.motor.command.translators.AbstractManualTranslator
          extended by org.jactr.modules.pm.motor.command.translators.PunchTranslator
All Implemented Interfaces:
ICommandTranslator, ICommandTranslatorDelegate

public class PunchTranslator
extends AbstractManualTranslator


Field Summary
 
Fields inherited from class org.jactr.modules.pm.motor.command.translators.AbstractManualTranslator
MINIMUM_FITTS_TIME, MINIMUM_MOVEMENT_TIME, PECK_FITTS_COEFFICIENT
 
Constructor Summary
PunchTranslator()
           
 
Method Summary
 boolean handles(ChunkTypeRequest request)
          returns true if this delegate can handle a command as specified by this chunk pattern
 org.commonreality.efferent.IEfferentCommand translate(ChunkTypeRequest request, org.commonreality.object.IEfferentObject muscle, IModel model)
          translate a ChunkPattern into an appropriate IEfferentCommand.
 
Methods inherited from class org.jactr.modules.pm.motor.command.translators.AbstractManualTranslator
getMuscle
 
Methods inherited from class org.jactr.modules.pm.motor.command.translators.AbstractTranslator
adjust, getMuscle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PunchTranslator

public PunchTranslator()
Method Detail

handles

public boolean handles(ChunkTypeRequest request)
Description copied from interface: ICommandTranslatorDelegate
returns true if this delegate can handle a command as specified by this chunk pattern

Returns:

translate

public org.commonreality.efferent.IEfferentCommand translate(ChunkTypeRequest request,
                                                             org.commonreality.object.IEfferentObject muscle,
                                                             IModel model)
                                                      throws java.lang.IllegalArgumentException
Description copied from interface: ICommandTranslator
translate a ChunkPattern into an appropriate IEfferentCommand. By setting the MovementCommand.MOVEMENT_RATE, the translator may provide a hint to common reality regarding the actual execution time of the movement.

Returns:
Throws:
java.lang.IllegalArgumentException