public class AbstractEfferentCommand extends BasicObject implements IEfferentCommand
IEfferentCommand.ActualState, IEfferentCommand.RequestedState
ACTUAL_STATE, COMMAND_CLASS_NAME, EFFERENT_ID, ESTIMATED_DURATION, IS_ADJUSTABLE, REQUESTED_START_TIME, REQUESTED_STATE, RESULT
Constructor and Description |
---|
AbstractEfferentCommand(IIdentifier identifier) |
Modifier and Type | Method and Description |
---|---|
IEfferentCommand.ActualState |
getActualState() |
ISensoryIdentifier |
getEfferentIdentifier()
the efferent object that this command is operating on
|
double |
getEstimatedDuration() |
ISensoryIdentifier |
getIdentifier() |
double |
getRequestedStartTime() |
IEfferentCommand.RequestedState |
getRequestedState() |
java.lang.Object |
getResult()
what happend to interrupt the command or some outcome
of the command
|
boolean |
isAdjustable()
adjustable commands can be modified by the issuer after it has already
started.
|
void |
setEfferentIdentifier(IIdentifier identifier) |
boolean |
setProperty(java.lang.String name,
java.lang.Object value) |
IEfferentCommand.ActualState |
waitForActualStateChange(IEfferentCommand.ActualState waitWhileState)
will block until the state is not waitWhileState
|
equals, getProperties, getProperty, getPropertyMap, hashCode, hasProperty, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getProperties, getProperty, getPropertyMap, hasProperty
public AbstractEfferentCommand(IIdentifier identifier)
public void setEfferentIdentifier(IIdentifier identifier)
public ISensoryIdentifier getIdentifier()
getIdentifier
in interface IIdentifiable
getIdentifier
in interface ISensoryObject
getIdentifier
in class BasicObject
IIdentifiable.getIdentifier()
public ISensoryIdentifier getEfferentIdentifier()
IEfferentCommand
getEfferentIdentifier
in interface IEfferentCommand
public java.lang.Object getResult()
IEfferentCommand
getResult
in interface IEfferentCommand
public IEfferentCommand.ActualState getActualState()
getActualState
in interface IEfferentCommand
public IEfferentCommand.RequestedState getRequestedState()
getRequestedState
in interface IEfferentCommand
public double getEstimatedDuration()
getEstimatedDuration
in interface IEfferentCommand
public double getRequestedStartTime()
getRequestedStartTime
in interface IEfferentCommand
public boolean setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface IMutableObject
setProperty
in class BasicObject
public IEfferentCommand.ActualState waitForActualStateChange(IEfferentCommand.ActualState waitWhileState) throws java.lang.InterruptedException
IEfferentCommand
waitForActualStateChange
in interface IEfferentCommand
java.lang.InterruptedException
public boolean isAdjustable()
IEfferentCommand
isAdjustable
in interface IEfferentCommand