|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.modules.pm.motor.managers.AbstractManager
public abstract class AbstractManager
base class for the various processing managers that are used in the
preparation, processing, and execution of motor commands. Generally each of
the managers follow the same pattern. When a request comes in (on the model
thread), it is initialize(IMovement, ChunkTypeRequest, double)
first, which will verify that the request can proceed (no buffer jams), and
posts an event that will expire after the end time has elapsed which will
#finalize(IMovement) the processing on the model thread.
After initialize(IMovement, ChunkTypeRequest, double) has been
called, an asynchronous #process(IMovement) call is made that will
handle the configuration and communication with common reality.
| Constructor Summary | |
|---|---|
AbstractManager(MotorManager manager,
AbstractMotorModule module,
java.lang.String stateSlot)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
IMovement |
getActiveMovement(org.commonreality.identifier.IIdentifier muscleId)
return the active movement associated with this muscle. |
java.util.Collection<IMovement> |
getActiveMovements()
|
java.lang.String |
getStateSlotName()
|
boolean |
hasAbortedMovements()
|
boolean |
hasActiveMovements()
|
boolean |
isInterestedIn(org.commonreality.identifier.IIdentifier commandId)
|
void |
setBlockClearStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)
when an active commands state changes to one of these the blocking timed event will be cleared. |
void |
setDriftStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)
|
void |
setEarlyTerminationStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)
when a command's state changes to any of these, the timed event will be aborted and a new one inserted that will fire immediately. |
boolean |
wasAborted(org.commonreality.identifier.IIdentifier muscleId)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractManager(MotorManager manager,
AbstractMotorModule module,
java.lang.String stateSlot)
| Method Detail |
|---|
public java.lang.String getStateSlotName()
public void setDriftStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)
public void setEarlyTerminationStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)
states - public void setBlockClearStates(org.commonreality.efferent.IEfferentCommand.ActualState... states)
states - public boolean isInterestedIn(org.commonreality.identifier.IIdentifier commandId)
public void clear()
public boolean hasAbortedMovements()
public boolean wasAborted(org.commonreality.identifier.IIdentifier muscleId)
public IMovement getActiveMovement(org.commonreality.identifier.IIdentifier muscleId)
initialize(IMovement, ChunkTypeRequest, double) and not yet
reached #finalize(IMovement)
muscleId -
public java.util.Collection<IMovement> getActiveMovements()
public boolean hasActiveMovements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||