User Manual, Developers Guide and API Documentation

wns::events::scheduler::ICommand Class Reference

Base of commands that may be queued using the EventScheduler::queueCommand interface. More...

#include <events/scheduler/ICommand.hpp>

Inheritance diagram for wns::events::scheduler::ICommand:

Inheritance graph
[legend]
Collaboration diagram for wns::events::scheduler::ICommand:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool isCanceled () const =0
 Return true if the Command was canceled.
virtual bool isFinished () const =0
 Return true if the Command was executed (no longer queued, no longer running).
virtual bool isNotSubmitted () const =0
 Return true, if the Command is not submitted to the queue so far (initial state).
virtual bool isQueued () const =0
 Return true if the Command is queued (waiting for execution).
virtual bool isRunning () const =0
 Return true if the Command is currently being executed.
virtual ~ICommand ()

Classes

class  CancelException
 If a command can be canceled this exception should be thrown by the command queue. More...


Detailed Description

A command runs through the following life cycle:
inline_dotgraph_9.dot
A command can only be cancled if it is currently Queued. It can't be re-submitted if it was cancled or has finished. The final state is either finished or cancled. The Command that is returned by the queue method will be in state Queued! The user will never see NotSubmitted.

Definition at line 56 of file ICommand.hpp.


Constructor & Destructor Documentation

virtual wns::events::scheduler::ICommand::~ICommand (  )  [inline, virtual]

Definition at line 86 of file ICommand.hpp.


Member Function Documentation

virtual bool wns::events::scheduler::ICommand::isCanceled (  )  const [pure virtual]

virtual bool wns::events::scheduler::ICommand::isFinished (  )  const [pure virtual]

virtual bool wns::events::scheduler::ICommand::isNotSubmitted (  )  const [pure virtual]

virtual bool wns::events::scheduler::ICommand::isQueued (  )  const [pure virtual]

virtual bool wns::events::scheduler::ICommand::isRunning (  )  const [pure virtual]


The documentation for this class was generated from the following file:

Generated on Sat May 26 03:32:53 2012 for openWNS by  doxygen 1.5.5