org.commonreality.modalities.motor
Class MovementCommandTemplate<M extends MovementCommand>

java.lang.Object
  extended by org.commonreality.efferent.impl.AbstractEfferentCommandTemplate<M>
      extended by org.commonreality.modalities.motor.MovementCommandTemplate<M>
All Implemented Interfaces:
java.io.Serializable, IEfferentCommandTemplate<M>
Direct Known Subclasses:
PressCommandTemplate, ReleaseCommandTemplate, RotateCommandTemplate, TranslateCommandTemplate

public class MovementCommandTemplate<M extends MovementCommand>
extends AbstractEfferentCommandTemplate<M>

See Also:
Serialized Form

Constructor Summary
MovementCommandTemplate(java.lang.String name, java.lang.String desc)
           
 
Method Summary
 M instantiate(IAgent agent, IEfferentObject object)
          instantiate this template using the supplied object
 boolean isConsistent(IEfferentCommand command)
          returns true if this IEfferentCommand is consistent with those created by this template.
 
Methods inherited from class org.commonreality.efferent.impl.AbstractEfferentCommandTemplate
getDescription, getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovementCommandTemplate

public MovementCommandTemplate(java.lang.String name,
                               java.lang.String desc)
Method Detail

instantiate

public M instantiate(IAgent agent,
                     IEfferentObject object)
                                      throws java.lang.Exception
Description copied from interface: IEfferentCommandTemplate
instantiate this template using the supplied object

Specified by:
instantiate in interface IEfferentCommandTemplate<M extends MovementCommand>
Overrides:
instantiate in class AbstractEfferentCommandTemplate<M extends MovementCommand>
Returns:
Throws:
java.lang.Exception

isConsistent

public boolean isConsistent(IEfferentCommand command)
Description copied from interface: IEfferentCommandTemplate
returns true if this IEfferentCommand is consistent with those created by this template. This is used on the sensor side to make sure that the IEfferentCommand supplied is acting upon an IEfferentObject that can be acted upon

Returns: