org.jactr.modules.pm.common.efferent
Class IndividualCommandManager<C extends org.commonreality.efferent.IEfferentCommand>
java.lang.Object
org.jactr.modules.pm.common.efferent.IndividualCommandManager<C>
public class IndividualCommandManager<C extends org.commonreality.efferent.IEfferentCommand>
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndividualCommandManager
public IndividualCommandManager(EfferentCommandManager<C> manager,
org.commonreality.identifier.IIdentifier command)
getCommand
public C getCommand()
getIdentifier
public org.commonreality.identifier.IIdentifier getIdentifier()
getState
public org.commonreality.efferent.IEfferentCommand.ActualState getState()
canAbort
public boolean canAbort()
canExecute
public boolean canExecute()
hasCompleted
public boolean hasCompleted()
isRunning
public boolean isRunning()
hasAborted
public boolean hasAborted()
isDone
public boolean isDone()
update
public boolean update()
- update the states, and return true if some signalling (outside the locks)
is necessary.
- Returns:
update
public boolean update(org.commonreality.efferent.IEfferentCommand command)