org.commonreality.modalities.vocal
Class VocalizationCommandTemplate

java.lang.Object
  extended by org.commonreality.efferent.impl.AbstractEfferentCommandTemplate<VocalizationCommand>
      extended by org.commonreality.modalities.vocal.VocalizationCommandTemplate
All Implemented Interfaces:
java.io.Serializable, IEfferentCommandTemplate<VocalizationCommand>

public class VocalizationCommandTemplate
extends AbstractEfferentCommandTemplate<VocalizationCommand>

See Also:
Serialized Form

Constructor Summary
VocalizationCommandTemplate(java.lang.String name, java.lang.String description)
           
 
Method Summary
 VocalizationCommand 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

VocalizationCommandTemplate

public VocalizationCommandTemplate(java.lang.String name,
                                   java.lang.String description)
Method Detail

instantiate

public VocalizationCommand 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<VocalizationCommand>
Overrides:
instantiate in class AbstractEfferentCommandTemplate<VocalizationCommand>
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: