15 #include <argos3/core/utility/configuration/base_configurable_resource.h>
16 #include <argos3/core/utility/configuration/argos_configuration.h>
17 #include <argos3/core/utility/datatypes/datatypes.h>
18 #include <argos3/core/utility/plugins/factory.h>
27 typedef std::map<std::string, CMedium*>
TMap;
76 inline const std::string&
GetId()
const {
84 void SetId(
const std::string& str_id) {
108 #define REGISTER_MEDIUM(CLASSNAME, \
115 REGISTER_SYMBOL(CMedium, \
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
virtual void Destroy()
Undoes whatever was done by Init().
virtual void Init(TConfigurationNode &t_tree)
Initialized the medium.
CSpace & GetSpace()
Returns a reference to the ARGoS space.
void SetId(const std::string &str_id)
Sets the id of this medium.
virtual void PostSpaceInit()
Executes extra initialization activities after the space has been initialized.
virtual void Reset()
Resets the resource.
const std::string & GetId() const
Returns the id of this medium.
std::vector< CMedium * > TVector
virtual void Update()=0
Updates the state of this medium.
std::map< std::string, CMedium * > TMap
This class is the base of all XML-configurable ARGoS interface.