IEpEnergySource

Package: inet.power.contract

IEpEnergySource

module interface

This interface extends the corresponding energy model interface. It requires implementations to describe energy consumption and energy generation with power [W] and storage capacity with energy [J]. The Ep is an abbreviation that is used for energy and power based interfaces.

See also: IEpEnergyConsumer, IEpEnergyGenerator, IEpEnergySink, IEpEnergyStorage, IEpEnergyManagement

Author: Levente Meszaros

Inheritance diagram

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

Implemented by

Name Type Description
EpEnergySourceBase simple module

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

EpEnergyStorageBase simple module

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

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.

SimpleEpEnergyStorage simple module

This energy storage model maintains a residual energy capacity by integrating the difference between the total consumed power and the total generated power over time. It initiates node crash when the residual energy capacity reaches zero. This model doesn't have various properties such as self-discharge, memory effect, overcharging, temperature-dependence, etc. that real world batteries have. See the base module for signals and statistics.

Known subclasses

Name Type Description
IEpEnergyStorage module interface

This interface extends the corresponding energy model interface. It requires implementations to describe energy consumption and energy generation with power [W] and storage capacity with energy [J]. The Ep is an abbreviation that is used for energy and power based interfaces.

Extends

Name Type Description
IEnergySource module interface

The energy source models provide energy for multiple energy consumers.

Properties

Name Value Description
display i=block/plug

Signals

Name Type Unit
powerConsumptionChanged double

Source code

//
// This interface extends the corresponding energy model interface. It requires
// implementations to describe energy consumption and energy generation with
// power [W] and storage capacity with energy [J]. The Ep is an abbreviation
// that is used for energy and power based interfaces.
//
// @see ~IEpEnergyConsumer, ~IEpEnergyGenerator, ~IEpEnergySink, ~IEpEnergyStorage, ~IEpEnergyManagement
// @author Levente Meszaros
//
moduleinterface IEpEnergySource extends IEnergySource
{
    parameters:
        @display("i=block/plug");
        @signal[powerConsumptionChanged](type=double);
}
File: src/inet/power/contract/IEpEnergySource.ned