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

Public Member Functions

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

Member Function Documentation

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

Returns the joules consumed up to this moment.

Returns
The joules consumed up to this moment.

Implements mammut::energy::Counter.

CounterType mammut::energy::CounterPlug::getType ( )
inlinevirtual

Returns the type of this counter.

Returns
The type of this counter.

Implements mammut::energy::Counter.

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

Initializes the counter.

Returns
True if the counter is present, false otherwise.

Implements mammut::energy::Counter.

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

Resets the value of the counter.

Implements mammut::energy::Counter.


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