Simple Module EpEnergyGeneratorBase

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

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

See also: EpEnergyConsumerBase, EpEnergySourceBase, EpEnergySinkBase, EpEnergyStorageBase

Author: Levente Meszaros

EpEnergyGeneratorBase

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.

Known subclasses:

Name Type Description
AlternatingEpEnergyGenerator simple module

This energy generator model alternates between two modes called generation and sleep mode. In generation mode it generates a randomly selected constant power for a random time interval. In sleep mode it doesn't generate energy for another random time interval.

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 sample-hold

Source code:

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