public class MovementCommandTemplate<M extends MovementCommand> extends AbstractEfferentCommandTemplate<M>
Constructor and Description |
---|
MovementCommandTemplate(java.lang.String name,
java.lang.String desc) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(M command,
IAgent agent,
IEfferentObject object) |
protected M |
create(IIdentifier commandId,
IIdentifier muscleId) |
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. |
getDescription, getName
public MovementCommandTemplate(java.lang.String name, java.lang.String desc)
public M instantiate(IAgent agent, IEfferentObject object) throws java.lang.Exception
IEfferentCommandTemplate
instantiate
in interface IEfferentCommandTemplate<M extends MovementCommand>
instantiate
in class AbstractEfferentCommandTemplate<M extends MovementCommand>
java.lang.Exception
protected void configure(M command, IAgent agent, IEfferentObject object)
configure
in class AbstractEfferentCommandTemplate<M extends MovementCommand>
protected M create(IIdentifier commandId, IIdentifier muscleId)
create
in class AbstractEfferentCommandTemplate<M extends MovementCommand>
public boolean isConsistent(IEfferentCommand command)
IEfferentCommandTemplate
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