org.commonreality.modalities.motor
Class MovementCommand

java.lang.Object
  extended by org.commonreality.object.manager.impl.BasicObject
      extended by org.commonreality.efferent.impl.AbstractEfferentCommand
          extended by org.commonreality.modalities.motor.MovementCommand
All Implemented Interfaces:
java.io.Serializable, ICompoundCommand, IEfferentCommand, IIdentifiable, IMutableObject, ISensoryObject, ISimulationObject
Direct Known Subclasses:
PressCommand, ReleaseCommand, RotateCommand, TranslateCommand

public class MovementCommand
extends AbstractEfferentCommand
implements ICompoundCommand

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.commonreality.efferent.IEfferentCommand
IEfferentCommand.ActualState, IEfferentCommand.RequestedState
 
Field Summary
static java.lang.String MOVEMENT_ORIGIN
           
static java.lang.String MOVEMENT_RATE
           
static java.lang.String MOVEMENT_TARGET
           
 
Fields inherited from interface org.commonreality.efferent.ICompoundCommand
COMPONENTS, IS_COMPOUND
 
Fields inherited from interface org.commonreality.efferent.IEfferentCommand
ACTUAL_STATE, COMMAND_CLASS_NAME, EFFERENT_ID, ESTIMATED_DURATION, REQUESTED_START_TIME, REQUESTED_STATE, RESULT
 
Constructor Summary
MovementCommand(IIdentifier identifier)
           
MovementCommand(IIdentifier identifier, IIdentifier efferentId)
           
 
Method Summary
 void add(IEfferentCommand command)
           
 java.util.Collection<IEfferentCommand> getComponents()
           
 double[] getOrigin()
           
 double[] getRate()
           
 double[] getTarget()
           
 boolean isCompound()
           
 
Methods inherited from class org.commonreality.efferent.impl.AbstractEfferentCommand
getActualState, getEfferentIdentifier, getEstimatedDuration, getIdentifier, getRequestedStartTime, getRequestedState, getResult, setEfferentIdentifier, setProperty, waitForActualStateChange
 
Methods inherited from class org.commonreality.object.manager.impl.BasicObject
equals, getProperties, getProperty, getPropertyMap, hashCode, hasProperty, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.commonreality.efferent.IEfferentCommand
getActualState, getEfferentIdentifier, getEstimatedDuration, getRequestedStartTime, getRequestedState, getResult, waitForActualStateChange
 
Methods inherited from interface org.commonreality.object.ISensoryObject
getIdentifier
 
Methods inherited from interface org.commonreality.object.ISimulationObject
getProperties, getProperty, getPropertyMap, hasProperty
 

Field Detail

MOVEMENT_ORIGIN

public static final java.lang.String MOVEMENT_ORIGIN
See Also:
Constant Field Values

MOVEMENT_TARGET

public static final java.lang.String MOVEMENT_TARGET
See Also:
Constant Field Values

MOVEMENT_RATE

public static final java.lang.String MOVEMENT_RATE
See Also:
Constant Field Values
Constructor Detail

MovementCommand

public MovementCommand(IIdentifier identifier)

MovementCommand

public MovementCommand(IIdentifier identifier,
                       IIdentifier efferentId)
Method Detail

getRate

public double[] getRate()

getTarget

public double[] getTarget()

getOrigin

public double[] getOrigin()

getComponents

public java.util.Collection<IEfferentCommand> getComponents()
Specified by:
getComponents in interface ICompoundCommand

add

public void add(IEfferentCommand command)
Specified by:
add in interface ICompoundCommand

isCompound

public boolean isCompound()
Specified by:
isCompound in interface ICompoundCommand