INET Framework for OMNeT++/OMNEST
|
#include <EpEnergySinkBase.h>
Public Member Functions | |
virtual W | getTotalPowerGeneration () const override |
Returns the total power generation in the range [0, +infinity). More... | |
virtual void | addEnergyGenerator (const IEnergyGenerator *energyGenerator) override |
Adds a new energy generator to the energy sink. More... | |
virtual void | removeEnergyGenerator (const IEnergyGenerator *energyGenerator) override |
Removes a previously added energy generator from this energy sink. More... | |
Public Member Functions inherited from inet::power::EnergySinkBase | |
virtual int | getNumEnergyGenerators () const override |
Returns the number of energy generators in the range [0, +infinity). More... | |
virtual const IEnergyGenerator * | getEnergyGenerator (int index) const override |
Returns the energy generator for the provided index. More... | |
Public Member Functions inherited from inet::power::IEnergySink | |
virtual | ~IEnergySink () |
Protected Member Functions | |
virtual W | computeTotalPowerGeneration () const |
virtual void | updateTotalPowerGeneration () |
Protected Attributes | |
W | totalPowerGeneration = W(NaN) |
Protected Attributes inherited from inet::power::EnergySinkBase | |
std::vector< const IEnergyGenerator * > | energyGenerators |
Additional Inherited Members | |
Static Public Attributes inherited from inet::power::IEpEnergySink | |
static simsignal_t | powerGenerationChangedSignal = cComponent::registerSignal("powerGenerationChanged") |
The signal that is used to publish power generation changes. More... | |
|
overridevirtual |
Adds a new energy generator to the energy sink.
The energyGenerator parameter must not be nullptr.
Reimplemented from inet::power::EnergySinkBase.
Reimplemented in inet::power::EpEnergyStorageBase.
Referenced by inet::power::EpEnergyStorageBase::addEnergyGenerator().
|
protectedvirtual |
Referenced by inet::power::EpEnergyStorageBase::initialize(), and updateTotalPowerGeneration().
|
inlineoverridevirtual |
Returns the total power generation in the range [0, +infinity).
Implements inet::power::IEpEnergySink.
|
overridevirtual |
Removes a previously added energy generator from this energy sink.
This functions throws an exception if the generator is not found.
Reimplemented from inet::power::EnergySinkBase.
Reimplemented in inet::power::EpEnergyStorageBase.
Referenced by inet::power::EpEnergyStorageBase::removeEnergyGenerator().
|
protectedvirtual |
Reimplemented in inet::power::SimpleEpEnergyStorage, inet::power::IdealEpEnergyStorage, and inet::power::EpEnergyStorageBase.
Referenced by addEnergyGenerator(), removeEnergyGenerator(), and inet::power::EpEnergyStorageBase::updateTotalPowerGeneration().
Referenced by computeTotalPowerGeneration(), inet::power::EpEnergyStorageBase::initialize(), inet::power::SimpleEpEnergyStorage::scheduleTimer(), inet::power::IdealEpEnergyStorage::updateEnergyBalance(), inet::power::SimpleEpEnergyStorage::updateResidualCapacity(), inet::power::EpEnergyStorageBase::updateTotalPowerGeneration(), and updateTotalPowerGeneration().