INET Framework for OMNeT++/OMNEST
|
#include <SimpleCcBattery.h>
Public Member Functions | |
virtual V | getNominalVoltage () const override |
Returns the open circuit voltage in the range [0, +infinity). More... | |
virtual V | getOutputVoltage () const override |
Returns the output voltage in the ragne [0, +infinity). More... | |
virtual A | getTotalCurrentConsumption () const override |
Returns the total current consumption in the range [0, +infinity). More... | |
virtual A | getTotalCurrentGeneration () const override |
Returns the total current generation in the range [0, +infinity). More... | |
virtual C | getNominalChargeCapacity () const override |
Returns the nominal charge capacity in the range [0, +infinity). More... | |
virtual C | getResidualChargeCapacity () const override |
Returns the residual charge capacity in the range [0, nominalCapacity]. More... | |
Public Member Functions inherited from inet::power::CcEnergyStorageBase | |
virtual void | addEnergyConsumer (const IEnergyConsumer *energyConsumer) override |
Adds a new energy consumer to the energy source. More... | |
virtual void | removeEnergyConsumer (const IEnergyConsumer *energyConsumer) override |
Removes a previously added energy consumer from this energy source. 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... | |
virtual void | receiveSignal (cComponent *source, simsignal_t signal, double value, cObject *details) override |
Public Member Functions inherited from inet::power::EnergySourceBase | |
virtual int | getNumEnergyConsumers () const override |
Returns the number of energy consumers in the range [0, +infinity). More... | |
virtual const IEnergyConsumer * | getEnergyConsumer (int index) const override |
Returns the energy consumer for the provided index. More... | |
Public Member Functions inherited from inet::power::IEnergySource | |
virtual | ~IEnergySource () |
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 void | initialize (int stage) override |
virtual void | updateTotalCurrentConsumption () override |
virtual void | updateTotalCurrentGeneration () override |
virtual void | setResidualCapacity (C newResidualCapacity) |
virtual void | updateResidualCapacity () |
virtual void | executeNodeOperation (C newResidualCapacity) |
Protected Member Functions inherited from inet::power::CcEnergyStorageBase | |
void | initialize (int stage) override |
Protected Member Functions inherited from inet::power::CcEnergySourceBase | |
virtual A | computeTotalCurrentConsumption () const |
Protected Member Functions inherited from inet::power::CcEnergySinkBase | |
virtual A | computeTotalCurrentGeneration () const |
Protected Attributes | |
C | nominalCapacity = C(NaN) |
V | nominalVoltage = V(NaN) |
Ohm | internalResistance = Ohm(NaN) |
C | residualCapacity = C(NaN) |
simtime_t | lastResidualCapacityUpdate = -1 |
LifecycleController * | lifecycleController = nullptr |
cModule * | networkNode = nullptr |
NodeStatus * | nodeStatus = nullptr |
Protected Attributes inherited from inet::power::CcEnergySourceBase | |
A | totalCurrentConsumption = A(NaN) |
Protected Attributes inherited from inet::power::EnergySourceBase | |
std::vector< const IEnergyConsumer * > | energyConsumers |
Protected Attributes inherited from inet::power::CcEnergySinkBase | |
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::ICcEnergySource | |
static simsignal_t | currentConsumptionChangedSignal = cComponent::registerSignal("currentConsumptionChanged") |
The signal that is used to publish current consumption changes. More... | |
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... | |
Static Public Attributes inherited from inet::power::ICcEnergyStorage | |
static simsignal_t | residualChargeCapacityChangedSignal = cComponent::registerSignal("residualChargeCapacityChanged") |
The signal that is used to publish residual charge capacity changes also including when the energy storage becomes completely depleted or charged. More... | |
|
protectedvirtual |
Referenced by setResidualCapacity().
|
inlineoverridevirtual |
Returns the nominal charge capacity in the range [0, +infinity).
It specifies the maximum amount of charge that the energy storage can contain.
Implements inet::power::ICcEnergyStorage.
|
inlineoverridevirtual |
Returns the open circuit voltage in the range [0, +infinity).
Implements inet::power::ICcEnergySource.
|
inlineoverridevirtual |
Returns the output voltage in the ragne [0, +infinity).
Implements inet::power::ICcEnergySource.
|
inlineoverridevirtual |
Returns the residual charge capacity in the range [0, nominalCapacity].
It specifies the amount of charge that the energy storage contains at the moment.
Implements inet::power::ICcEnergyStorage.
|
inlineoverridevirtual |
Returns the total current consumption in the range [0, +infinity).
Reimplemented from inet::power::CcEnergySourceBase.
|
inlineoverridevirtual |
Returns the total current generation in the range [0, +infinity).
Reimplemented from inet::power::CcEnergySinkBase.
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by initialize(), and updateResidualCapacity().
|
protectedvirtual |
Referenced by updateTotalCurrentConsumption(), and updateTotalCurrentGeneration().
|
overrideprotectedvirtual |
Reimplemented from inet::power::CcEnergyStorageBase.
|
overrideprotectedvirtual |
Reimplemented from inet::power::CcEnergyStorageBase.
Referenced by initialize().
|
protected |
Referenced by setResidualCapacity(), and updateResidualCapacity().
|
protected |
Referenced by executeNodeOperation(), and initialize().
|
protected |
Referenced by executeNodeOperation(), initialize(), and setResidualCapacity().
|
protected |
Referenced by executeNodeOperation(), and initialize().
Referenced by initialize(), setResidualCapacity(), and updateResidualCapacity().
Referenced by initialize().
Referenced by initialize(), setResidualCapacity(), and updateResidualCapacity().