CcEnergyGeneratorBase.ned

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

Name Type Description
CcEnergyGeneratorBase simple module

This is an abstract base module for current based energy generator 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.ICcEnergyGenerator;

//
// This is an abstract base module for current based energy generator models.
// It defines shared signals and statistics.
//
// @see ~CcEnergyConsumerBase, ~CcEnergySourceBase, ~CcEnergySinkBase, ~CcEnergyStorageBase
//
simple CcEnergyGeneratorBase like ICcEnergyGenerator
{
    parameters:
        @display("i=block/plug");
        @signal[currentGenerationChanged];
        @statistic[currentGeneration](title="Current generation"; source=currentGenerationChanged; record=vector; interpolationmode=sample-hold; unit=A);
}