![]() |
User Manual, Developers Guide and API Documentation |
![]() |
This class provides the physical resources (kind of a factory) and manages them in a list. It is a singleton, therefore providing the method getInstance(); deleteInstance() should be used to destroy the singleton at simulation shutdown.
#include <medium/Medium.hpp>

Public Member Functions | |
| PhysicalResource * | getPhysicalResource (double f, double b) |
| Returns a PhysicalResource, with the specified frequency and bandwidth. | |
| void | reset () |
| Removes all PhysicalResources. | |
Static Public Member Functions | |
| static void | deleteInstance () |
| Delete this singleton. | |
| static Medium * | getInstance () |
| Singleton's getInstance. | |
Private Types | |
| typedef std::list < PhysicalResource * > | PhysicalResourceContainer |
| typedef PhysicalResourceContainer::iterator | PhysicalResourceIterator |
Private Member Functions | |
| bool | checkForOverlap (PhysicalResource *pr) const |
| Medium (const Medium &) | |
| Disallow copy constructor. | |
| Medium () | |
| Medium & | operator= (const Medium &) |
| Disallow assignment operator. | |
| ~Medium () | |
Private Attributes | |
| RISELogger | log |
| PhysicalResourceContainer | prs |
Static Private Attributes | |
| static Medium * | myself = NULL |
Definition at line 47 of file Medium.hpp.
typedef std::list<PhysicalResource*> rise::medium::Medium::PhysicalResourceContainer [private] |
Definition at line 48 of file Medium.hpp.
typedef PhysicalResourceContainer::iterator rise::medium::Medium::PhysicalResourceIterator [private] |
Definition at line 49 of file Medium.hpp.
| Medium::Medium | ( | ) | [private] |
Definition at line 97 of file Medium.cpp.
| Medium::~Medium | ( | ) | [private] |
Definition at line 108 of file Medium.cpp.
| rise::medium::Medium::Medium | ( | const Medium & | ) | [private] |
| bool Medium::checkForOverlap | ( | PhysicalResource * | pr | ) | const [private] |
Definition at line 113 of file Medium.cpp.
| void Medium::deleteInstance | ( | ) | [static] |
Definition at line 47 of file Medium.cpp.
| Medium * Medium::getInstance | ( | ) | [static] |
Definition at line 39 of file Medium.cpp.
| PhysicalResource * Medium::getPhysicalResource | ( | double | f, | |
| double | b | |||
| ) |
Definition at line 70 of file Medium.cpp.
| void Medium::reset | ( | ) |
Definition at line 53 of file Medium.cpp.
RISELogger rise::medium::Medium::log [private] |
Definition at line 85 of file Medium.hpp.
Medium * Medium::myself = NULL [static, private] |
Definition at line 83 of file Medium.hpp.
Definition at line 84 of file Medium.hpp.
1.5.5