EpEnergySinkBase

Package: inet.power.base

EpEnergySinkBase

simple module

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

See also: EpEnergyConsumerBase, EpEnergySourceBase, EpEnergyGeneratorBase, EpEnergyStorageBase

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
powerGenerationChanged

Statistics

Name Title Source Record Unit Interpolation Mode
powerGeneration Power generation powerGenerationChanged vector W sample-hold

Source code

//
// This is an abstract base module for power based energy sink models.
// It defines signals and statistics.
//
// @see ~EpEnergyConsumerBase, ~EpEnergySourceBase, ~EpEnergyGeneratorBase, ~EpEnergyStorageBase
//
simple EpEnergySinkBase like IEpEnergySink
{
    parameters:
        @display("i=block/plug");
        @signal[powerGenerationChanged];
        @statistic[powerGeneration](title="Power generation"; source=powerGenerationChanged; record=vector; interpolationmode=sample-hold; unit=W);
}

File: src/inet/power/base/EpEnergySinkBase.ned