Warning: include(php/utility.php): Failed to open stream: No such file or directory in /home/argos/argos3/doc/api/embedded/a00273.php on line 2

Warning: include(): Failed opening 'php/utility.php' for inclusion (include_path='.:/usr/lib64/php') in /home/argos/argos3/doc/api/embedded/a00273.php on line 2
The ARGoS Website

argos::CRadioMedium Class Reference

#include <radio_medium.h>

Inheritance diagram for argos::CRadioMedium:
Collaboration diagram for argos::CRadioMedium:

Public Member Functions

 CRadioMedium ()
 Class constructor. More...
 
virtual ~CRadioMedium ()
 Class destructor. More...
 
virtual void Init (TConfigurationNode &t_tree)
 Initialized the medium. More...
 
virtual void PostSpaceInit ()
 Executes extra initialization activities after the space has been initialized. More...
 
virtual void Reset ()
 Resets the resource. More...
 
virtual void Destroy ()
 Undoes whatever was done by Init(). More...
 
virtual void Update ()
 Updates the state of this medium. More...
 
void AddEntity (CRadioEntity &c_entity)
 Adds the specified entity to the list of managed entities. More...
 
void RemoveEntity (CRadioEntity &c_entity)
 Removes the specified entity from the list of managed entities. More...
 
CPositionalIndex< CRadioEntity > & GetIndex ()
 Returns the radio positional index. More...
 
- Public Member Functions inherited from argos::CMedium
 CMedium ()
 
virtual ~CMedium ()
 
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...
 
CSpaceGetSpace ()
 Returns a reference to the ARGoS space. More...
 
- Public Member Functions inherited from argos::CBaseConfigurableResource
virtual ~CBaseConfigurableResource ()
 Class destructor. More...
 

Additional Inherited Members

- Public Types inherited from argos::CMedium
typedef std::vector< CMedium * > TVector
 
typedef std::map< std::string, CMedium * > TMap
 

Detailed Description

Definition at line 21 of file radio_medium.h.

Constructor & Destructor Documentation

argos::CRadioMedium::CRadioMedium ( )
inline

Class constructor.

Definition at line 28 of file radio_medium.h.

virtual argos::CRadioMedium::~CRadioMedium ( )
inlinevirtual

Class destructor.

Definition at line 35 of file radio_medium.h.

Member Function Documentation

void argos::CRadioMedium::AddEntity ( CRadioEntity c_entity)

Adds the specified entity to the list of managed entities.

Parameters
c_entityThe entity to add.

Definition at line 95 of file radio_medium.cpp.

void argos::CRadioMedium::Destroy ( )
virtual

Undoes whatever was done by Init().

Reimplemented from argos::CMedium.

Definition at line 77 of file radio_medium.cpp.

CPositionalIndex<CRadioEntity>& argos::CRadioMedium::GetIndex ( )
inline

Returns the radio positional index.

Returns
The radio positional index.

Definition at line 59 of file radio_medium.h.

void argos::CRadioMedium::Init ( TConfigurationNode t_tree)
virtual

Initialized the medium.

By default, this method parses the medium id. The order in which initialization takes place is:

Parameters
t_treethe base of the XML configuration tree to parse
Exceptions
CARGoSExceptionif an error occurs
See also
PostSpaceInitInit()
CSpace::Init()

Reimplemented from argos::CMedium.

Definition at line 19 of file radio_medium.cpp.

void argos::CRadioMedium::PostSpaceInit ( )
virtual

Executes extra initialization activities after the space has been initialized.

By default, this method does nothing. The order in which initialization takes place is:

Exceptions
CARGoSExceptionif an error occurs
See also
Init()
CSpace::Init()

Reimplemented from argos::CMedium.

Definition at line 63 of file radio_medium.cpp.

void argos::CRadioMedium::RemoveEntity ( CRadioEntity c_entity)

Removes the specified entity from the list of managed entities.

Parameters
c_entityThe entity to remove.

Definition at line 102 of file radio_medium.cpp.

void argos::CRadioMedium::Reset ( )
virtual

Resets the resource.

Reimplemented from argos::CMedium.

Definition at line 70 of file radio_medium.cpp.

void argos::CRadioMedium::Update ( )
virtual

Updates the state of this medium.

Implements argos::CMedium.

Definition at line 87 of file radio_medium.cpp.