#include <ao-scheduler.h>
Inherited by ActiveObject< message > [protected]
, ActiveObject< ActiveAoTracker_msg_ * > [protected]
, ActiveObject< ActiveDemoReceiver_msg_ * > [protected]
, and ActiveObject< ActiveDemoSender_msg_ * > [protected]
.
Public Member Functions | |
virtual bool | run (bool continuous)=0 |
virtual bool | terminated ()=0 |
Runnable (string name) | |
virtual | ~Runnable () |
Public Attributes | |
string | name |
A runnable class has a name and a run method. Is is used in the scheduler logic to actually activate objects when necessary. It is further used to detect whether the runnable can actually still run.
Definition at line 33 of file ao-scheduler.h.
Runnable::Runnable | ( | string | name | ) | [inline] |
Definition at line 48 of file ao-scheduler.h.
virtual Runnable::~Runnable | ( | ) | [inline, virtual] |
Definition at line 51 of file ao-scheduler.h.
virtual bool Runnable::run | ( | bool | continuous | ) | [pure virtual] |
virtual bool Runnable::terminated | ( | ) | [pure virtual] |
should return true when the runnable has been terminated.
Implemented in ActiveObject< message >, ActiveObject< ActiveDemoSender_msg_ * >, ActiveObject< ActiveAoTracker_msg_ * >, and ActiveObject< ActiveDemoReceiver_msg_ * >.
string Runnable::name |
name of the runnable object
Definition at line 39 of file ao-scheduler.h.