CcEnergyGeneratorBase

Package: inet.power.base

simple module CcEnergyGeneratorBase

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

See also: CcEnergyConsumerBase, CcEnergySourceBase, CcEnergySinkBase, CcEnergyStorageBase

inet.power.base.CcEnergyGeneratorBaseCcEnergyGeneratorBasesimple

Inheritance diagram

Extends

Name

Type

Description

SimpleModule

simple module

Base module for all INET simple modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

Properties

Name

Value

Description

class

CcEnergyGeneratorBase

display

i=block/plug

Signals

Name

Type

Unit

Description

currentGenerationChanged

Statistics

Name

Title

Source

Record

Unit

Interpolation Mode

Description

currentGeneration

Current generation

currentGenerationChanged

vector

A

sample-hold

Source code

//
// This is an abstract base module for current-based energy generator models.
// It defines shared signals and statistics.
//
// @see ~CcEnergyConsumerBase, ~CcEnergySourceBase, ~CcEnergySinkBase, ~CcEnergyStorageBase
//
simple CcEnergyGeneratorBase extends SimpleModule like ICcEnergyGenerator
{
    parameters:
        @class(CcEnergyGeneratorBase);
        @display("i=block/plug");
        @signal[currentGenerationChanged];
        @statistic[currentGeneration](title="Current generation"; source=currentGenerationChanged; record=vector; interpolationmode=sample-hold; unit=A);
}

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