org.jactr.modules.pm.common.efferent
Class IndividualCommandManager<C extends org.commonreality.efferent.IEfferentCommand>

java.lang.Object
  extended by org.jactr.modules.pm.common.efferent.IndividualCommandManager<C>

public class IndividualCommandManager<C extends org.commonreality.efferent.IEfferentCommand>
extends java.lang.Object


Constructor Summary
IndividualCommandManager(EfferentCommandManager<C> manager, org.commonreality.identifier.IIdentifier command)
           
 
Method Summary
 boolean canAbort()
           
 boolean canExecute()
           
 C getCommand()
           
 org.commonreality.identifier.IIdentifier getIdentifier()
           
 org.commonreality.efferent.IEfferentCommand.ActualState getState()
           
 boolean hasAborted()
           
 boolean hasCompleted()
           
 boolean isDone()
           
 boolean isRunning()
           
 boolean update()
          update the states, and return true if some signalling (outside the locks) is necessary.
 boolean update(org.commonreality.efferent.IEfferentCommand command)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualCommandManager

public IndividualCommandManager(EfferentCommandManager<C> manager,
                                org.commonreality.identifier.IIdentifier command)
Method Detail

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)