CcEnergySourceBase.ned

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

Name Type Description
CcEnergySourceBase simple module

This is an abstract base module for current 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.ICcEnergySource;

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