NED File src/inet/power/base/EpEnergySourceBase.ned
Name | Type | Description |
---|---|---|
EpEnergySourceBase | simple module |
This is an abstract base module for power based energy source models. It defines shared signals and statistics. |
Source code
// // Copyright (C) 2020 OpenSim Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.power.base; import inet.power.contract.IEpEnergySource; // // 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 like IEpEnergySource { parameters: @display("i=block/plug"); @signal[powerConsumptionChanged]; @statistic[powerConsumption](title="Power consumption"; source=powerConsumptionChanged; record=vector; interpolationmode=sample-hold; unit=W); }