IdealEpEnergyStorage

Package: inet.power.storage

IdealEpEnergyStorage

simple module

This energy storage model stores an infinite amount of energy. It can provide energy for any number of consumers, and it can absorb energy from any number of generators. The ideal energy storage never gets completely charged or depleted. This module is primarily useful for testing energy consumer and energy generator models. See the base module for signals and statistics.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
EpEnergyStorageBase simple module

This is an abstract base module for power based energy storage models. It defines shared signals and statistics.

Properties

Name Value Description
display i=block/plug
class IdealEpEnergyStorage

Signals

Name Type Unit
residualEnergyCapacityChanged
powerConsumptionChanged
powerGenerationChanged

Statistics

Name Title Source Record Unit Interpolation Mode
residualEnergyCapacity Residual energy capacity residualEnergyCapacityChanged vector, last J linear
powerConsumption Power consumption powerConsumptionChanged vector W sample-hold
powerGeneration Power generation powerGenerationChanged vector W sample-hold

Called methods (observed)

functioninfocall from
inet::power::IdealEpEnergyStorage::addEnergyConsumeraddEnergyConsumerSensorStateBasedEpEnergyConsumer, StateBasedEpEnergyConsumer
inet::power::IdealEpEnergyStorage::receiveSignalpowerConsumptionChangedSensorStateBasedEpEnergyConsumer, StateBasedEpEnergyConsumer

Source code

//
// This energy storage model stores an infinite amount of energy. It can provide
// energy for any number of consumers, and it can absorb energy from any number
// of generators. The ideal energy storage never gets completely charged or
// depleted. This module is primarily useful for testing energy consumer and
// energy generator models. See the base module for signals and statistics.
//
simple IdealEpEnergyStorage extends EpEnergyStorageBase
{
    parameters:
        @class(IdealEpEnergyStorage);
}

File: src/inet/power/storage/IdealEpEnergyStorage.ned