Package: inet.power.base
CcEnergyConsumerBase
simple moduleThis is an abstract base module for current based energy consumer models. It defines shared signals and statistics.
See also: CcEnergySourceBase, CcEnergyGeneratorBase, CcEnergySinkBase, CcEnergyStorageBase
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 |
---|---|---|
currentConsumptionChanged | double |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
currentConsumption | Current consumption | currentConsumptionChanged | vector | A | sample-hold |
Source code
// // This is an abstract base module for current based energy consumer models. // It defines shared signals and statistics. // // @see ~CcEnergySourceBase, ~CcEnergyGeneratorBase, ~CcEnergySinkBase, ~CcEnergyStorageBase // simple CcEnergyConsumerBase like ICcEnergyConsumer { parameters: @display("i=block/plug"); @signal[currentConsumptionChanged](type=double); @statistic[currentConsumption](title="Current consumption"; source=currentConsumptionChanged; record=vector; interpolationmode=sample-hold; unit=A); }File: src/inet/power/base/CcEnergyConsumerBase.ned