INET Framework for OMNeT++/OMNEST
|
#include <SimpleEpEnergyManagement.h>
Public Member Functions | |
virtual | ~SimpleEpEnergyManagement () |
virtual IEnergyStorage * | getEnergyStorage () const override |
Returns the energy storage that is managed by this energy management. More... | |
virtual J | getEstimatedEnergyCapacity () const override |
Returns the estimated energy capacity in the range [0, +infinity). More... | |
virtual void | receiveSignal (cComponent *source, simsignal_t signal, double value, cObject *details) override |
Public Member Functions inherited from inet::power::IEnergyManagement | |
virtual | ~IEnergyManagement () |
Protected Member Functions | |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *message) override |
virtual void | executeNodeOperation (J estimatedEnergyCapacity) |
virtual void | scheduleLifecycleOperationTimer () |
Protected Attributes | |
J | nodeShutdownCapacity = J(NaN) |
J | nodeStartCapacity = J(NaN) |
IEpEnergyStorage * | energyStorage = nullptr |
LifecycleController * | lifecycleController = nullptr |
cModule * | networkNode = nullptr |
NodeStatus * | nodeStatus = nullptr |
cMessage * | lifecycleOperationTimer = nullptr |
|
virtual |
|
protectedvirtual |
Referenced by handleMessage(), and receiveSignal().
|
inlineoverridevirtual |
Returns the energy storage that is managed by this energy management.
This function never returns nullptr.
Implements inet::power::IEnergyManagement.
|
overridevirtual |
Returns the estimated energy capacity in the range [0, +infinity).
It specifies the amount of energy that the energy storage contains at the moment according to the estimation of the management.
Implements inet::power::IEpEnergyManagement.
Referenced by handleMessage(), receiveSignal(), and scheduleLifecycleOperationTimer().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overridevirtual |
|
protectedvirtual |
Referenced by handleMessage(), and receiveSignal().
|
protected |
Referenced by getEstimatedEnergyCapacity(), initialize(), and scheduleLifecycleOperationTimer().
|
protected |
Referenced by executeNodeOperation(), and initialize().
|
protected |
Referenced by handleMessage(), initialize(), scheduleLifecycleOperationTimer(), and ~SimpleEpEnergyManagement().
|
protected |
Referenced by executeNodeOperation(), and initialize().
Referenced by executeNodeOperation(), initialize(), and scheduleLifecycleOperationTimer().
Referenced by executeNodeOperation(), initialize(), and scheduleLifecycleOperationTimer().
|
protected |
Referenced by executeNodeOperation(), initialize(), and scheduleLifecycleOperationTimer().