EpEnergySourceBase
Package: inet.power.base
EpEnergySourceBase
simple moduleThis is an abstract base module for power-based energy source models. It defines shared signals and statistics.
<b>See also:</b> ~EpEnergyConsumerBase, ~EpEnergyGeneratorBase, ~EpEnergySinkBase, ~EpEnergyStorageBase
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the 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 | EpEnergySourceBase | |
| display | i=block/plug |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| powerConsumptionChanged |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| powerConsumption | Power consumption | powerConsumptionChanged | vector | W | sample-hold |
Source code
// // This is an abstract base module for power-based energy source models. // It defines shared signals and statistics. // // @see ~EpEnergyConsumerBase, ~EpEnergyGeneratorBase, ~EpEnergySinkBase, ~EpEnergyStorageBase // simple EpEnergySourceBase extends SimpleModule like IEpEnergySource { parameters: @class(EpEnergySourceBase); @display("i=block/plug"); @signal[powerConsumptionChanged]; @statistic[powerConsumption](title="Power consumption"; source=powerConsumptionChanged; record=vector; interpolationmode=sample-hold; unit=W); }File: src/inet/power/base/EpEnergySourceBase.ned