CcEnergySourceBase

Package: inet.power.base

simple module CcEnergySourceBase

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

See also: CcEnergyConsumerBase, CcEnergyGeneratorBase, CcEnergySinkBase, CcEnergyStorageBase

inet.power.base.CcEnergySourceBaseCcEnergySourceBasesimple

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

CcEnergySourceBase

display

i=block/plug

Signals

Name

Type

Unit

Description

currentConsumptionChanged

Statistics

Name

Title

Source

Record

Unit

Interpolation Mode

Description

currentConsumption

Current consumption

currentConsumptionChanged

vector

A

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
//
simple CcEnergySourceBase extends SimpleModule like ICcEnergySource
{
    parameters:
        @class(CcEnergySourceBase);
        @display("i=block/plug");
        @signal[currentConsumptionChanged];
        @statistic[currentConsumption](title="Current consumption"; source=currentConsumptionChanged; record=vector; interpolationmode=sample-hold; unit=A);
}

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