mammut::energy::Counter Class Referenceabstract
Inheritance diagram for mammut::energy::Counter:
mammut::energy::CounterCpus mammut::energy::CounterPlug

Public Member Functions

virtual Joules getJoules ()=0
 
virtual void reset ()=0
 
virtual bool init ()=0
 
virtual CounterType getType ()=0
 

Member Function Documentation

virtual Joules mammut::energy::Counter::getJoules ( )
pure virtual

Returns the joules consumed up to this moment.

Returns
The joules consumed up to this moment.

Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.

virtual CounterType mammut::energy::Counter::getType ( )
pure virtual

Returns the type of this counter.

Returns
The type of this counter.

Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.

virtual bool mammut::energy::Counter::init ( )
pure virtual

Initializes the counter.

Returns
True if the counter is present, false otherwise.

Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.

virtual void mammut::energy::Counter::reset ( )
pure virtual

Resets the value of the counter.

Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.


The documentation for this class was generated from the following file:
  • /home/daniele/Code/Mammut/mammut/energy/energy.hpp