INET Framework for OMNeT++/OMNEST
|
#include <CcEnergySinkBase.h>
Public Member Functions | |
virtual A | getTotalCurrentGeneration () const override |
Returns the total current 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 A | computeTotalCurrentGeneration () const |
virtual void | updateTotalCurrentGeneration () |
Protected Attributes | |
A | totalCurrentGeneration = A(NaN) |
Protected Attributes inherited from inet::power::EnergySinkBase | |
std::vector< const IEnergyGenerator * > | energyGenerators |
Additional Inherited Members | |
Static Public Attributes inherited from inet::power::ICcEnergySink | |
static simsignal_t | currentGenerationChangedSignal = cComponent::registerSignal("currentGenerationChanged") |
The signal that is used to publish current 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::CcEnergyStorageBase.
Referenced by inet::power::CcEnergyStorageBase::addEnergyGenerator().
|
protectedvirtual |
Referenced by inet::power::CcEnergyStorageBase::initialize(), and updateTotalCurrentGeneration().
|
inlineoverridevirtual |
Returns the total current generation in the range [0, +infinity).
Implements inet::power::ICcEnergySink.
Reimplemented in inet::power::SimpleCcBattery.
|
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::CcEnergyStorageBase.
Referenced by inet::power::CcEnergyStorageBase::removeEnergyGenerator().
|
protectedvirtual |
Reimplemented in inet::power::SimpleCcBattery, and inet::power::CcEnergyStorageBase.
Referenced by addEnergyGenerator(), removeEnergyGenerator(), and inet::power::CcEnergyStorageBase::updateTotalCurrentGeneration().