![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <events/scheduler/Map.hpp>


Public Types | |
| enum | State { NotSubmitted, Queued, Running, Finished, Canceled } |
Public Member Functions | |
| virtual void | cancel () |
| Prefer this over wns::events::scheduler::Interface::cancelEvent(). | |
| Event (const Callable &callable) | |
| wns::simulator::Time | getIssued () const |
| wns::simulator::Time | getScheduled () const |
| virtual bool | isCanceled () const |
| Return true if the Event was canceled. | |
| virtual bool | isFinished () const |
| Return true if the Event was executed (no longer queued, no longer running). | |
| virtual bool | isNotSubmitted () const |
| Return true, if the Event is not submitted to the queue so far (initial state). | |
| virtual bool | isQueued () const |
| Return true if the Event is queued (waiting for execution). | |
| virtual bool | isRunning () const |
| Return true if the Event is currently being executed. | |
| void | operator() () |
Public Attributes | |
| Callable | callable_ |
| wns::simulator::Time | issued_ |
| wns::simulator::Time | scheduled_ |
| Map * | scheduler_ |
| State | state_ |
Definition at line 58 of file Map.hpp.
| wns::events::scheduler::Map::Event::Event | ( | const Callable & | callable | ) | [inline] |
| virtual void wns::events::scheduler::Map::Event::cancel | ( | ) | [inline, virtual] |
This is likely to perform a little better, because we a) do not need to check if the event is NULL and b) we save a dynamic cast c) can call the specialized method of scheduler directly
Implements wns::events::scheduler::IEvent.
| wns::simulator::Time wns::events::scheduler::Map::Event::getIssued | ( | ) | const [inline, virtual] |
| wns::simulator::Time wns::events::scheduler::Map::Event::getScheduled | ( | ) | const [inline, virtual] |
| virtual bool wns::events::scheduler::Map::Event::isCanceled | ( | ) | const [inline, virtual] |
| virtual bool wns::events::scheduler::Map::Event::isFinished | ( | ) | const [inline, virtual] |
| virtual bool wns::events::scheduler::Map::Event::isNotSubmitted | ( | ) | const [inline, virtual] |
| virtual bool wns::events::scheduler::Map::Event::isQueued | ( | ) | const [inline, virtual] |
| virtual bool wns::events::scheduler::Map::Event::isRunning | ( | ) | const [inline, virtual] |
| void wns::events::scheduler::Map::Event::operator() | ( | ) | [inline] |
1.5.5