INET Framework for OMNeT++/OMNEST
|
This class is an interface that should be implemented by power based energy consumer models to integrate with other parts of the power based energy model. More...
#include <IEpEnergyConsumer.h>
Public Member Functions | |
virtual W | getPowerConsumption () const =0 |
Returns the power consumption in the range [0, +infinity). More... | |
Public Member Functions inherited from inet::power::IEnergyConsumer | |
virtual | ~IEnergyConsumer () |
virtual IEnergySource * | getEnergySource () const =0 |
Returns the energy source that provides energy for this energy consumer. More... | |
Static Public Attributes | |
static simsignal_t | powerConsumptionChangedSignal = cComponent::registerSignal("powerConsumptionChanged") |
The signal that is used to publish power consumption changes. More... | |
This class is an interface that should be implemented by power based energy consumer models to integrate with other parts of the power based energy model.
Such an energy consumer model describes the energy consumption over time by providing a function that computes the power consumption in watts.
See the corresponding NED file for more details.
|
pure virtual |
Returns the power consumption in the range [0, +infinity).
Implemented in inet::physicallayer::StateBasedEpEnergyConsumer, and inet::power::AlternatingEpEnergyConsumer.
|
static |
The signal that is used to publish power consumption changes.
Referenced by inet::power::EpEnergySourceBase::addEnergyConsumer(), inet::power::EpEnergyStorageBase::receiveSignal(), inet::physicallayer::StateBasedEpEnergyConsumer::receiveSignal(), and inet::power::EpEnergySourceBase::removeEnergyConsumer().