Simple Module CcEnergySourceBase

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

C++ definition

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

See also: CcEnergyConsumerBase, CcEnergyGeneratorBase, CcEnergySinkBase, CcEnergyStorageBase

Author: Levente Meszaros

CcEnergySourceBase

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
currentConsumptionChanged

Statistics:

Name Title Source Record Unit Interpolation Mode
currentConsumption Current consumption currentConsumptionChanged vector sample-hold

Source code:

//
// This is an abstract base module for current based energy source models.
// It defines shared signals and statistics.
//
// @see ~CcEnergyConsumerBase, ~CcEnergyGeneratorBase, ~CcEnergySinkBase, ~CcEnergyStorageBase  
// @author Levente Meszaros
//
simple CcEnergySourceBase like ICcEnergySource
{
    parameters:
        @display("i=block/plug");
        @signal[currentConsumptionChanged];
        @statistic[currentConsumption](title="Current consumption"; source=currentConsumptionChanged; record=vector; interpolationmode=sample-hold);
}