Warning: include(php/utility.php): Failed to open stream: No such file or directory in /home/argos/argos3/doc/api/embedded/a03158.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/a03158.php on line 2
The ARGoS Website

argos::CBatteryDischargeModel Class Referenceabstract

The discharge model dictates how the battery discharges over time. More...

#include <battery_equipped_entity.h>

Inheritance diagram for argos::CBatteryDischargeModel:
Collaboration diagram for argos::CBatteryDischargeModel:

Public Member Functions

 CBatteryDischargeModel ()
 
virtual ~CBatteryDischargeModel ()
 
virtual void Init (TConfigurationNode &t_tree)
 Initializes the resource. More...
 
virtual void Reset ()
 Resets the resource. More...
 
virtual void Destroy ()
 Undoes whatever was done by Init(). More...
 
virtual void SetBattery (CBatteryEquippedEntity *pc_battery)
 
virtual void operator() ()=0
 
- Public Member Functions inherited from argos::CBaseConfigurableResource
virtual ~CBaseConfigurableResource ()
 Class destructor. More...
 

Protected Attributes

CBatteryEquippedEntitym_pcBattery
 

Detailed Description

The discharge model dictates how the battery discharges over time.

Definition at line 102 of file battery_equipped_entity.h.

Constructor & Destructor Documentation

◆ CBatteryDischargeModel()

argos::CBatteryDischargeModel::CBatteryDischargeModel ( )

Definition at line 118 of file battery_equipped_entity.cpp.

◆ ~CBatteryDischargeModel()

argos::CBatteryDischargeModel::~CBatteryDischargeModel ( )
virtual

Definition at line 125 of file battery_equipped_entity.cpp.

Member Function Documentation

◆ Destroy()

virtual void argos::CBatteryDischargeModel::Destroy ( )
inlinevirtual

Undoes whatever was done by Init().

Implements argos::CBaseConfigurableResource.

Definition at line 114 of file battery_equipped_entity.h.

◆ Init()

virtual void argos::CBatteryDischargeModel::Init ( TConfigurationNode t_tree)
inlinevirtual

Initializes the resource.

Parameters
t_treethe base of the XML configuration tree to parse
Exceptions
CARGoSExceptionif an error occurs

Implements argos::CBaseConfigurableResource.

Reimplemented in argos::CBatteryDischargeModelTimeMotion, argos::CBatteryDischargeModelMotion, and argos::CBatteryDischargeModelTime.

Definition at line 110 of file battery_equipped_entity.h.

◆ operator()()

virtual void argos::CBatteryDischargeModel::operator() ( )
pure virtual

◆ Reset()

virtual void argos::CBatteryDischargeModel::Reset ( )
inlinevirtual

Resets the resource.

Implements argos::CBaseConfigurableResource.

Definition at line 112 of file battery_equipped_entity.h.

◆ SetBattery()

void argos::CBatteryDischargeModel::SetBattery ( CBatteryEquippedEntity pc_battery)
virtual

Member Data Documentation

◆ m_pcBattery

CBatteryEquippedEntity* argos::CBatteryDischargeModel::m_pcBattery
protected

Definition at line 122 of file battery_equipped_entity.h.