INET Framework for OMNeT++/OMNEST
inet::power::IEpEnergySource Class Referenceabstract

This class is an interface that should be implemented by power based energy source models to integrate with other parts of the power based model. More...

#include <IEpEnergySource.h>

Inheritance diagram for inet::power::IEpEnergySource:
inet::power::IEnergySource inet::power::EpEnergySourceBase inet::power::IEpEnergyStorage inet::power::EpEnergyStorageBase inet::power::EpEnergyStorageBase inet::power::IdealEpEnergyStorage inet::power::SimpleEpEnergyStorage inet::power::IdealEpEnergyStorage inet::power::SimpleEpEnergyStorage

Public Member Functions

virtual W getTotalPowerConsumption () const =0
 Returns the total power consumption in the range [0, +infinity). More...
 
- Public Member Functions inherited from inet::power::IEnergySource
virtual ~IEnergySource ()
 
virtual int getNumEnergyConsumers () const =0
 Returns the number of energy consumers in the range [0, +infinity). More...
 
virtual const IEnergyConsumergetEnergyConsumer (int index) const =0
 Returns the energy consumer for the provided index. More...
 
virtual void addEnergyConsumer (const IEnergyConsumer *energyConsumer)=0
 Adds a new energy consumer to the energy source. More...
 
virtual void removeEnergyConsumer (const IEnergyConsumer *energyConsumer)=0
 Removes a previously added energy consumer from this energy source. More...
 

Static Public Attributes

static simsignal_t powerConsumptionChangedSignal = cComponent::registerSignal("powerConsumptionChanged")
 The signal that is used to publish power consumption changes. More...
 

Detailed Description

This class is an interface that should be implemented by power based energy source models to integrate with other parts of the power based model.

Such an energy source model describes its total energy consumption in terms of power consumption

See the corresponding NED file for more details.

Author
Levente Meszaros

Member Function Documentation

virtual W inet::power::IEpEnergySource::getTotalPowerConsumption ( ) const
pure virtual

Returns the total power consumption in the range [0, +infinity).

Implemented in inet::power::EpEnergySourceBase.

Referenced by inet::power::SimpleEpEnergyManagement::scheduleLifecycleOperationTimer().

Member Data Documentation

simsignal_t inet::power::IEpEnergySource::powerConsumptionChangedSignal = cComponent::registerSignal("powerConsumptionChanged")
static

The documentation for this class was generated from the following files: