public abstract class AbstractEfferentCommandTemplate<E extends IEfferentCommand> extends java.lang.Object implements IEfferentCommandTemplate<E>
Constructor and Description |
---|
AbstractEfferentCommandTemplate(java.lang.String name,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
configure(E command,
IAgent agent,
IEfferentObject object) |
protected abstract E |
create(IIdentifier commandId,
IIdentifier muscleId) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isConsistent
public AbstractEfferentCommandTemplate(java.lang.String name, java.lang.String description)
public java.lang.String getDescription()
getDescription
in interface IEfferentCommandTemplate<E extends IEfferentCommand>
public java.lang.String getName()
IEfferentCommandTemplate
getName
in interface IEfferentCommandTemplate<E extends IEfferentCommand>
protected abstract E create(IIdentifier commandId, IIdentifier muscleId)
protected abstract void configure(E command, IAgent agent, IEfferentObject object)
public E instantiate(IAgent agent, IEfferentObject object) throws java.lang.Exception
IEfferentCommandTemplate
instantiate
in interface IEfferentCommandTemplate<E extends IEfferentCommand>
java.lang.Exception