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

Static Public Member Functions | |
| static void | send (wns::events::scheduler::Callable c, wns::simulator::Time delay) |
| Will schedule the operator() method of object of type T for execution. The method will be executed at simulation time "delay" if the medium is busy. Else it will be queued and executed later. The execution of the event corresponds to the end of an transmission. The passed object must call the setFree() method in its operator() method when it has finished. | |
| static void | setFree () |
| Called when the ongoing transmission is over by the current transmission event. If queued the next transmission event is scheduled for execution. | |
Private Types | |
| typedef std::queue< QEntry > | EventQueue |
| typedef std::pair < wns::events::scheduler::Callable, wns::simulator::Time > | QEntry |
Static Private Attributes | |
| static bool | busy = false |
| static EventQueue | eventqueue = Medium::EventQueue() |
Definition at line 47 of file Medium.hpp.
typedef std::queue<QEntry> simpletl::Medium::EventQueue [private] |
Definition at line 83 of file Medium.hpp.
typedef std::pair<wns::events::scheduler::Callable, wns::simulator::Time> simpletl::Medium::QEntry [private] |
Definition at line 82 of file Medium.hpp.
| static void simpletl::Medium::send | ( | wns::events::scheduler::Callable | c, | |
| wns::simulator::Time | delay | |||
| ) | [inline, static] |
Definition at line 59 of file Medium.hpp.
| void Medium::setFree | ( | ) | [static] |
Definition at line 38 of file Medium.cpp.
bool Medium::busy = false [static, private] |
Definition at line 84 of file Medium.hpp.
Medium::EventQueue Medium::eventqueue = Medium::EventQueue() [static, private] |
Definition at line 85 of file Medium.hpp.
1.5.5