15 #include <argos3/core/simulator/entity/positional_entity.h>
16 #include <argos3/core/utility/datatypes/set.h>
17 #include <argos3/core/utility/datatypes/color.h>
18 #include <argos3/core/utility/math/vector3.h>
19 #include <argos3/core/simulator/space/positional_indices/space_hash.h>
20 #include <argos3/core/simulator/space/positional_indices/grid.h>
30 typedef std::vector<CLEDEntity*>
TList;
38 const std::string& str_id,
signed int SInt32
32-bit signed integer.
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Basic class for an entity that contains other entities.
The abstract definition of a space hash.
Defines the basic cell updater of the space hash.
Defines a very simple double-linked list that stores unique elements.
void SetInitColor(const CColor &c_color)
Sets the initialization color for this LED.
bool HasMedium() const
Returns true if this LED is associated to a medium.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
void SetColor(const CColor &c_color)
Sets the current color of the LED.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
CSet< CLEDEntity * > TSet
virtual void SetEnabled(bool b_enabled)
Enables or disables an entity.
CLEDEntity(CComposableEntity *pc_parent)
virtual void Destroy()
Destroys the entity, undoing whatever was done by Init() or by the standalone constructor.
CLEDMedium & GetMedium() const
Returns the medium associated to this LED.
void SetMedium(CLEDMedium &c_medium)
Sets the medium associated to this entity.
const CColor & GetColor() const
Returns the current color of the LED.
const CColor & GetInitColor() const
Returns the color with which the LED was initialized.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
std::vector< CLEDEntity * > TList
virtual void operator()(CAbstractSpaceHash< CLEDEntity > &c_space_hash, CLEDEntity &c_element)
Updates the necessary cells of a space hash.
virtual bool operator()(CLEDEntity &c_entity)
CLEDEntityGridUpdater(CGrid< CLEDEntity > &c_grid)