ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <led_medium.h>
Public Member Functions | |
CLEDMedium () | |
Class constructor. | |
virtual | ~CLEDMedium () |
Class destructor. | |
virtual void | Init (TConfigurationNode &t_tree) |
Initialized the medium. | |
virtual void | PostSpaceInit () |
Executes extra initialization activities after the space has been initialized. | |
virtual void | Reset () |
Resets the resource. | |
virtual void | Destroy () |
Undoes whatever was done by Init(). | |
virtual void | Update () |
Updates the state of this medium. | |
void | AddEntity (CLEDEntity &c_entity) |
Adds the specified entity to the list of managed entities. | |
void | RemoveEntity (CLEDEntity &c_entity) |
Removes the specified entity from the list of managed entities. | |
CPositionalIndex< CLEDEntity > & | GetIndex () |
Returns the LED positional index. |
Definition at line 15 of file led_medium.h.
Class constructor.
Definition at line 13 of file led_medium.cpp.
argos::CLEDMedium::~CLEDMedium | ( | ) | [virtual] |
Class destructor.
Definition at line 19 of file led_medium.cpp.
void argos::CLEDMedium::AddEntity | ( | CLEDEntity & | c_entity | ) |
Adds the specified entity to the list of managed entities.
c_entity | The entity to add. |
Definition at line 100 of file led_medium.cpp.
void argos::CLEDMedium::Destroy | ( | ) | [virtual] |
Undoes whatever was done by Init().
Reimplemented from argos::CMedium.
Definition at line 83 of file led_medium.cpp.
CPositionalIndex<CLEDEntity>& argos::CLEDMedium::GetIndex | ( | ) | [inline] |
Returns the LED positional index.
Definition at line 51 of file led_medium.h.
void argos::CLEDMedium::Init | ( | TConfigurationNode & | t_tree | ) | [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 |
Reimplemented from argos::CMedium.
Definition at line 25 of file led_medium.cpp.
void argos::CLEDMedium::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:
CARGoSException | if an error occurs |
Reimplemented from argos::CMedium.
Definition at line 69 of file led_medium.cpp.
void argos::CLEDMedium::RemoveEntity | ( | CLEDEntity & | c_entity | ) |
Removes the specified entity from the list of managed entities.
c_entity | The entity to remove. |
Definition at line 107 of file led_medium.cpp.
void argos::CLEDMedium::Reset | ( | ) | [virtual] |
Resets the resource.
Reimplemented from argos::CMedium.
Definition at line 76 of file led_medium.cpp.
void argos::CLEDMedium::Update | ( | ) | [virtual] |
Updates the state of this medium.
Implements argos::CMedium.
Definition at line 93 of file led_medium.cpp.