Simple Module EpEnergySourceBase

Package: inet.power.base
File: src/inet/power/base/EpEnergySourceBase.ned

C++ definition

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

See also: EpEnergyConsumerBase, EpEnergyGeneratorBase, EpEnergySinkBase, EpEnergyStorageBase

Author: Levente Meszaros

EpEnergySourceBase

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

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

Properties:

Name Value Description
display i=block/plug

Signals:

Name Type Unit
powerConsumptionChanged

Statistics:

Name Title Source Record Unit Interpolation Mode
powerConsumption Power consumption powerConsumptionChanged vector sample-hold

Source code:

//
// This is an abstract base module for power based energy source models.
// It defines shared signals and statistics.
//
// @see ~EpEnergyConsumerBase, ~EpEnergyGeneratorBase, ~EpEnergySinkBase, ~EpEnergyStorageBase  
// @author Levente Meszaros
//
simple EpEnergySourceBase like IEpEnergySource
{
    parameters:
        @display("i=block/plug");
        @signal[powerConsumptionChanged];
        @statistic[powerConsumption](title="Power consumption"; source=powerConsumptionChanged; record=vector; interpolationmode=sample-hold);
}