#include <medium.h>
Public Types | |
typedef std::vector< CMedium * > | TVector |
typedef std::map< std::string, CMedium * > | TMap |
Public Member Functions | |
CMedium () | |
virtual | ~CMedium () |
virtual void | Init (TConfigurationNode &t_tree) |
Initialized the medium. More... | |
virtual void | Reset () |
Resets the resource. More... | |
virtual void | Destroy () |
Undoes whatever was done by Init(). More... | |
virtual void | PostSpaceInit () |
Executes extra initialization activities after the space has been initialized. More... | |
virtual void | Update ()=0 |
Updates the state of this medium. More... | |
const std::string & | GetId () const |
Returns the id of this medium. More... | |
void | SetId (const std::string &str_id) |
Sets the id of this medium. More... | |
CSpace & | GetSpace () |
Returns a reference to the ARGoS space. More... | |
Public Member Functions inherited from argos::CBaseConfigurableResource | |
virtual | ~CBaseConfigurableResource () |
Class destructor. More... | |
typedef std::map<std::string, CMedium*> argos::CMedium::TMap |
typedef std::vector<CMedium*> argos::CMedium::TVector |
|
inlinevirtual |
Undoes whatever was done by Init().
Implements argos::CBaseConfigurableResource.
Reimplemented in argos::CTagMedium, argos::CRadioMedium, argos::CRABMedium, argos::CLEDMedium, and argos::CDirectionalLEDMedium.
|
inline |
|
inline |
|
virtual |
Initialized the medium.
By default, this method parses the medium id. The order in which initialization takes place is:
t_tree | the base of the XML configuration tree to parse |
CARGoSException | if an error occurs |
Implements argos::CBaseConfigurableResource.
Reimplemented in argos::CTagMedium, argos::CRadioMedium, argos::CRABMedium, argos::CLEDMedium, and argos::CDirectionalLEDMedium.
Definition at line 16 of file medium.cpp.
|
inlinevirtual |
Executes extra initialization activities after the space has been initialized.
By default, this method does nothing. The order in which initialization takes place is:
CARGoSException | if an error occurs |
Reimplemented in argos::CTagMedium, argos::CRadioMedium, argos::CRABMedium, argos::CLEDMedium, and argos::CDirectionalLEDMedium.
|
inlinevirtual |
Resets the resource.
Implements argos::CBaseConfigurableResource.
Reimplemented in argos::CTagMedium, argos::CRadioMedium, argos::CRABMedium, argos::CLEDMedium, and argos::CDirectionalLEDMedium.
|
inline |
|
pure virtual |
Updates the state of this medium.
Implemented in argos::CTagMedium, argos::CRadioMedium, argos::CRABMedium, argos::CLEDMedium, and argos::CDirectionalLEDMedium.