7 #ifndef MAGNET_ENTITY_H
8 #define MAGNET_ENTITY_H
14 #include <argos3/core/simulator/entity/entity.h>
15 #include <argos3/core/utility/math/vector3.h>
30 const std::string& str_id,
float Real
Collects all ARGoS code.
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.
const CVector3 & GetActiveField() const
Returns the active field with which the magnet was initialized.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
CMagnetEntity(CComposableEntity *pc_parent)
virtual std::string GetTypeDescription() const
Returns a string label for this class.
const CVector3 & GetPassiveField() const
Returns the passive field with which the magnet was initialized.
void SetCurrent(Real f_current)
Sets the current field of the magnet.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
const CVector3 & GetField() const
Returns the field of the magnet.