org.commonreality.efferent.impl
Class AbstractEfferentCommandTemplate<E extends IEfferentCommand>

java.lang.Object
  extended by org.commonreality.efferent.impl.AbstractEfferentCommandTemplate<E>
All Implemented Interfaces:
java.io.Serializable, IEfferentCommandTemplate<E>
Direct Known Subclasses:
MovementCommandTemplate, VocalizationCommandTemplate

public abstract class AbstractEfferentCommandTemplate<E extends IEfferentCommand>
extends java.lang.Object
implements IEfferentCommandTemplate<E>

See Also:
Serialized Form

Constructor Summary
AbstractEfferentCommandTemplate(java.lang.String name, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getName()
          the name of the command
 E instantiate(IAgent agent, IEfferentObject object)
          instantiate this template using the supplied object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.commonreality.efferent.IEfferentCommandTemplate
isConsistent
 

Constructor Detail

AbstractEfferentCommandTemplate

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

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IEfferentCommandTemplate<E extends IEfferentCommand>
Returns:

getName

public java.lang.String getName()
Description copied from interface: IEfferentCommandTemplate
the name of the command

Specified by:
getName in interface IEfferentCommandTemplate<E extends IEfferentCommand>
Returns:

instantiate

public E 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<E extends IEfferentCommand>
Returns:
Throws:
java.lang.Exception