INET Framework for OMNeT++/OMNEST
|
This class implements a simple power based alternating energy generator. More...
#include <AlternatingEpEnergyGenerator.h>
Public Member Functions | |
virtual | ~AlternatingEpEnergyGenerator () |
virtual IEnergySink * | getEnergySink () const override |
Returns the energy sink that absorbs energy from this energy generator. More... | |
virtual W | getPowerGeneration () const override |
Returns the power generation in the range [0, +infinity). More... | |
Public Member Functions inherited from inet::power::IEnergyGenerator | |
virtual | ~IEnergyGenerator () |
Protected Member Functions | |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *message) override |
virtual void | updatePowerGeneration () |
virtual void | scheduleIntervalTimer () |
Protected Attributes | |
IEpEnergySink * | energySink = nullptr |
cMessage * | timer = nullptr |
bool | isSleeping = false |
W | powerGeneration = W(NaN) |
Additional Inherited Members | |
Static Public Attributes inherited from inet::power::IEpEnergyGenerator | |
static simsignal_t | powerGenerationChangedSignal = cComponent::registerSignal("powerGenerationChanged") |
The signal that is used to publish power generation changes. More... | |
This class implements a simple power based alternating energy generator.
See the corresponding NED file for more details.
|
virtual |
|
inlineoverridevirtual |
Returns the energy sink that absorbs energy from this energy generator.
This function never returns nullptr.
Implements inet::power::IEnergyGenerator.
|
inlineoverridevirtual |
Returns the power generation in the range [0, +infinity).
Implements inet::power::IEpEnergyGenerator.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleMessage(), and initialize().
|
protectedvirtual |
Referenced by handleMessage(), and initialize().
|
protected |
Referenced by initialize().
|
protected |
Referenced by handleMessage(), initialize(), scheduleIntervalTimer(), and updatePowerGeneration().
Referenced by initialize(), and updatePowerGeneration().
|
protected |
Referenced by handleMessage(), initialize(), scheduleIntervalTimer(), and ~AlternatingEpEnergyGenerator().