org.commonreality.sensors.keyboard
Class PressCommandTemplate

java.lang.Object
  extended by org.commonreality.efferent.impl.AbstractEfferentCommandTemplate<M>
      extended by org.commonreality.modalities.motor.MovementCommandTemplate<PressCommand>
          extended by org.commonreality.sensors.keyboard.PressCommandTemplate
All Implemented Interfaces:
java.io.Serializable, IEfferentCommandTemplate<PressCommand>

public class PressCommandTemplate
extends MovementCommandTemplate<PressCommand>

See Also:
Serialized Form

Constructor Summary
PressCommandTemplate()
           
 
Method Summary
 boolean isConsistent(IEfferentCommand command)
          returns true if this IEfferentCommand is consistent with those created by this template.
 
Methods inherited from class org.commonreality.modalities.motor.MovementCommandTemplate
instantiate
 
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

PressCommandTemplate

public PressCommandTemplate()
Method Detail

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

Specified by:
isConsistent in interface IEfferentCommandTemplate<PressCommand>
Overrides:
isConsistent in class MovementCommandTemplate<PressCommand>
Returns: