public abstract class AbstractCommandHandlerDelegate extends java.lang.Object implements ICommandHandlerDelegate
Constructor and Description |
---|
AbstractCommandHandlerDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldAbort(IEfferentCommand command,
IAgentObject agent,
EfferentCommandHandler handler)
return Boolean.TRUE if the command should abort (it will already be
running).
|
java.lang.Object |
shouldAccept(IEfferentCommand command,
IAgentObject agent,
EfferentCommandHandler handler)
return Boolean.TRUE if the command should be accepted for the specified
agent.
|
java.lang.Object |
shouldStart(IEfferentCommand command,
IAgentObject agent,
EfferentCommandHandler handler)
return Boolean.TRUE if the command should be started.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, aborted, getTimingEquation, isInterestedIn, rejected, start, started
public boolean shouldAbort(IEfferentCommand command, IAgentObject agent, EfferentCommandHandler handler)
ICommandHandlerDelegate
EfferentCommandHandler
will next call
ICommandHandlerDelegate.abort(IEfferentCommand, IAgentObject, EfferentCommandHandler)
and
send a state update for the command with its actual state as ABORTEDshouldAbort
in interface ICommandHandlerDelegate
public java.lang.Object shouldAccept(IEfferentCommand command, IAgentObject agent, EfferentCommandHandler handler)
ICommandHandlerDelegate
shouldAccept
in interface ICommandHandlerDelegate
public java.lang.Object shouldStart(IEfferentCommand command, IAgentObject agent, EfferentCommandHandler handler)
ICommandHandlerDelegate
EfferentCommandHandler
will next
call ICommandHandlerDelegate.start(IEfferentCommand, IAgentObject, EfferentCommandHandler)
and then send a state update for the command noting that the actual state
is running.shouldStart
in interface ICommandHandlerDelegate