org.commonreality.object.manager.impl
Class EfferentObject

java.lang.Object
  extended by org.commonreality.object.manager.impl.BasicObject
      extended by org.commonreality.object.manager.impl.EfferentObject
All Implemented Interfaces:
java.io.Serializable, IIdentifiable, IEfferentObject, IMutableObject, ISensoryObject, ISimulationObject

public class EfferentObject
extends BasicObject
implements IEfferentObject, java.io.Serializable

Author:
developer
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.commonreality.object.IEfferentObject
COMMAND_TEMPLATES, CURRENT_COMMAND
 
Constructor Summary
EfferentObject(IIdentifier identifier)
           
 
Method Summary
 java.util.Collection<IEfferentCommandTemplate> getCommandTemplates()
          return a collection of all the command templates that can be applied to this efferent object.
 IEfferentCommand getCurrentCommand()
          returns the currently active command.
 ISensoryIdentifier getIdentifier()
           
 
Methods inherited from class org.commonreality.object.manager.impl.BasicObject
equals, getProperties, getProperty, getPropertyMap, hashCode, hasProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.commonreality.object.ISimulationObject
getProperties, getProperty, getPropertyMap, hasProperty
 

Constructor Detail

EfferentObject

public EfferentObject(IIdentifier identifier)
Parameters:
identifier -
Method Detail

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()

getCommandTemplates

public java.util.Collection<IEfferentCommandTemplate> getCommandTemplates()
Description copied from interface: IEfferentObject
return a collection of all the command templates that can be applied to this efferent object.

Specified by:
getCommandTemplates in interface IEfferentObject
Returns:

getCurrentCommand

public IEfferentCommand getCurrentCommand()
Description copied from interface: IEfferentObject
returns the currently active command. if no command is active (successfully completed or interrupted) this will be null

Specified by:
getCurrentCommand in interface IEfferentObject
Returns: