|
INET Framework for OMNeT++/OMNEST
|
#include <SimpleCcBattery.h>
|
| 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...
|
| |
| 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 |
| |
| 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...
|
| |
| virtual | ~IEnergySource () |
| |
| 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...
|
| |
| virtual | ~IEnergySink () |
| |
| | LifecycleController () |
| |
| virtual | ~LifecycleController () |
| |
| virtual bool | initiateOperation (LifecycleOperation *operation, IDoneCallback *completionCallback=nullptr) |
| | Initiate an operation. More...
|
| |
|
| static simsignal_t | currentConsumptionChangedSignal = cComponent::registerSignal("currentConsumptionChanged") |
| | The signal that is used to publish current consumption changes. More...
|
| |
| static simsignal_t | currentGenerationChangedSignal = cComponent::registerSignal("currentGenerationChanged") |
| | The signal that is used to publish current generation changes. More...
|
| |
| 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...
|
| |
◆ executeNodeOperation()
| void inet::power::SimpleCcBattery::executeNodeOperation |
( |
C |
newResidualCapacity | ) |
|
|
protectedvirtual |
107 EV_WARN <<
"Battery failed" << endl;
109 ModuleCrashOperation *operation =
new ModuleCrashOperation();
Referenced by setResidualCapacity().
◆ getNominalChargeCapacity()
| virtual C inet::power::SimpleCcBattery::getNominalChargeCapacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getNominalVoltage()
| virtual V inet::power::SimpleCcBattery::getNominalVoltage |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getOutputVoltage()
| virtual V inet::power::SimpleCcBattery::getOutputVoltage |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getResidualChargeCapacity()
| virtual C inet::power::SimpleCcBattery::getResidualChargeCapacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getTotalCurrentConsumption()
| virtual A inet::power::SimpleCcBattery::getTotalCurrentConsumption |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getTotalCurrentGeneration()
| virtual A inet::power::SimpleCcBattery::getTotalCurrentGeneration |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ initialize()
| void inet::power::SimpleCcBattery::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
◆ refreshDisplay()
| void inet::power::SimpleCcBattery::refreshDisplay |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ resolveDirective()
| const char * inet::power::SimpleCcBattery::resolveDirective |
( |
char |
directive | ) |
const |
|
overrideprotectedvirtual |
◆ setResidualCapacity()
| void inet::power::SimpleCcBattery::setResidualCapacity |
( |
C |
newResidualCapacity | ) |
|
|
protectedvirtual |
◆ updateDisplayString()
| void inet::power::SimpleCcBattery::updateDisplayString |
( |
| ) |
const |
|
protectedvirtual |
44 if (getEnvir()->isGUI()) {
46 getDisplayString().setTagArg(
"t", 0, text);
Referenced by refreshDisplay().
◆ updateResidualCapacity()
| void inet::power::SimpleCcBattery::updateResidualCapacity |
( |
| ) |
|
|
protectedvirtual |
◆ updateTotalCurrentConsumption()
| void inet::power::SimpleCcBattery::updateTotalCurrentConsumption |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ updateTotalCurrentGeneration()
| void inet::power::SimpleCcBattery::updateTotalCurrentGeneration |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ internalResistance
| Ohm inet::power::SimpleCcBattery::internalResistance = Ohm(NaN) |
|
protected |
◆ lastResidualCapacityUpdate
| simtime_t inet::power::SimpleCcBattery::lastResidualCapacityUpdate = -1 |
|
protected |
◆ networkNode
| cModule* inet::power::SimpleCcBattery::networkNode = nullptr |
|
protected |
◆ nodeStatus
| NodeStatus* inet::power::SimpleCcBattery::nodeStatus = nullptr |
|
protected |
◆ nominalCapacity
| C inet::power::SimpleCcBattery::nominalCapacity = C(NaN) |
|
protected |
◆ nominalVoltage
| V inet::power::SimpleCcBattery::nominalVoltage = V(NaN) |
|
protected |
◆ residualCapacity
| C inet::power::SimpleCcBattery::residualCapacity = C(NaN) |
|
protected |
The documentation for this class was generated from the following files:
cModule * findContainingNode(const cModule *from)
Find the node containing the given module.
Definition: ModuleAccess.cc:31
std::string str() const
Definition: Units.h:101
virtual C getResidualChargeCapacity() const override
Returns the residual charge capacity in the range [0, nominalCapacity].
Definition: SimpleCcBattery.h:58
static simsignal_t residualChargeCapacityChangedSignal
The signal that is used to publish residual charge capacity changes also including when the energy st...
Definition: ICcEnergyStorage.h:32
Ohm internalResistance
Definition: SimpleCcBattery.h:27
cModule * networkNode
Definition: SimpleCcBattery.h:33
compose< W, pow< A, -1 > > V
Definition: Units.h:942
A totalCurrentGeneration
Definition: CcEnergySinkBase.h:22
C nominalCapacity
Definition: SimpleCcBattery.h:25
virtual void initialize(int stage) override
Definition: CcEnergyStorageBase.cc:14
virtual void setResidualCapacity(C newResidualCapacity)
Definition: SimpleCcBattery.cc:78
value< double, units::s > s
Definition: Units.h:1235
virtual void updateDisplayString() const
Definition: SimpleCcBattery.cc:42
compose< s, A > C
Definition: Units.h:941
simtime_t lastResidualCapacityUpdate
Definition: SimpleCcBattery.h:31
std::map< std::string, std::string > StringMap
Definition: LifecycleOperation.h:28
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
virtual bool initiateOperation(LifecycleOperation *operation, IDoneCallback *completionCallback=nullptr)
Initiate an operation.
Definition: LifecycleController.cc:46
int round(double d)
Returns an integer that corresponds to rounded double parameter.
Definition: INETMath.h:143
pow< internal::none, 0 > unit
Definition: Units.h:72
NodeStatus * nodeStatus
Definition: SimpleCcBattery.h:34
virtual C getNominalChargeCapacity() const override
Returns the nominal charge capacity in the range [0, +infinity).
Definition: SimpleCcBattery.h:57
@ UP
Definition: NodeStatus.h:28
virtual void updateResidualCapacity()
Definition: SimpleCcBattery.cc:91
const value_type & get() const
Definition: Units.h:108
virtual void updateTotalCurrentConsumption() override
Definition: CcEnergyStorageBase.cc:24
A totalCurrentConsumption
Definition: CcEnergySourceBase.h:22
C residualCapacity
Definition: SimpleCcBattery.h:30
V nominalVoltage
Definition: SimpleCcBattery.h:26
virtual void updateTotalCurrentGeneration() override
Definition: CcEnergyStorageBase.cc:30
virtual State getState() const
Definition: NodeStatus.h:35
virtual void executeNodeOperation(C newResidualCapacity)
Definition: SimpleCcBattery.cc:104
compose< V, pow< A, -1 > > Ohm
Definition: Units.h:944