org.commonreality.efferent.impl
Class AbstractEfferentCommand
java.lang.Object
org.commonreality.object.manager.impl.BasicObject
org.commonreality.efferent.impl.AbstractEfferentCommand
- All Implemented Interfaces:
- java.io.Serializable, IEfferentCommand, IIdentifiable, IMutableObject, ISensoryObject, ISimulationObject
- Direct Known Subclasses:
- MovementCommand, VocalizationCommand
public class AbstractEfferentCommand
- extends BasicObject
- implements IEfferentCommand
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AbstractEfferentCommand
public AbstractEfferentCommand(IIdentifier identifier)
setEfferentIdentifier
public void setEfferentIdentifier(IIdentifier identifier)
getIdentifier
public ISensoryIdentifier getIdentifier()
- Specified by:
getIdentifier in interface IIdentifiable- Specified by:
getIdentifier in interface ISensoryObject- Overrides:
getIdentifier in class BasicObject
- Returns:
- identifier
- See Also:
IIdentifiable.getIdentifier()
getEfferentIdentifier
public ISensoryIdentifier getEfferentIdentifier()
- Description copied from interface:
IEfferentCommand
- the efferent object that this command is operating on
- Specified by:
getEfferentIdentifier in interface IEfferentCommand
- Returns:
getResult
public java.lang.Object getResult()
- Description copied from interface:
IEfferentCommand
- what happend to interrupt the command or some outcome
of the command
- Specified by:
getResult in interface IEfferentCommand
- Returns:
getActualState
public IEfferentCommand.ActualState getActualState()
- Specified by:
getActualState in interface IEfferentCommand
getRequestedState
public IEfferentCommand.RequestedState getRequestedState()
- Specified by:
getRequestedState in interface IEfferentCommand
getEstimatedDuration
public double getEstimatedDuration()
- Specified by:
getEstimatedDuration in interface IEfferentCommand
getRequestedStartTime
public double getRequestedStartTime()
- Specified by:
getRequestedStartTime in interface IEfferentCommand
setProperty
public boolean setProperty(java.lang.String name,
java.lang.Object value)
- Specified by:
setProperty in interface IMutableObject- Overrides:
setProperty in class BasicObject
waitForActualStateChange
public IEfferentCommand.ActualState waitForActualStateChange(IEfferentCommand.ActualState waitWhileState)
throws java.lang.InterruptedException
- Description copied from interface:
IEfferentCommand
- will block until the state is not waitWhileState
- Specified by:
waitForActualStateChange in interface IEfferentCommand
- Returns:
-
- Throws:
java.lang.InterruptedException