SimpleEpEnergyManagement

Package: inet.power.management

simple module SimpleEpEnergyManagement

This energy management model estimates the residual energy capacity of the energy source model by actually querying it. It is only useful when the estimation process is not important. This model initiates node shutdown when the residual capacity decreases below a threshold, and it also initiates node start when the residual capacity increases above another threshold.

See also: SimpleEpEnergyStorage

inet.power.management.SimpleEpEnergyManagementSimpleEpEnergyManagementsimple

Inheritance diagram

Extends

Name

Type

Description

SimpleModule

simple module

Base module for all INET simple modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“{energyStatus}”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

nodeShutdownCapacity

double

nan J

Initiates node shutdown when the residual energy capacity decreases below this value

nodeStartCapacity

double

nan J

Initiates node start when the residual energy capacity increases above this value

Properties

Name

Value

Description

class

SimpleEpEnergyManagement

display

i=block/plug

Source code

//
// This energy management model estimates the residual energy capacity of the
// energy source model by actually querying it. It is only useful when the
// estimation process is not important. This model initiates node shutdown
// when the residual capacity decreases below a threshold, and it also
// initiates node start when the residual capacity increases above another
// threshold.
//
// @see ~SimpleEpEnergyStorage
//
simple SimpleEpEnergyManagement extends SimpleModule like IEpEnergyManagement
{
    parameters:
        @class(SimpleEpEnergyManagement);
        double nodeShutdownCapacity @unit(J) = default(nan J); // Initiates node shutdown when the residual energy capacity decreases below this value
        double nodeStartCapacity @unit(J) = default(nan J); // Initiates node start when the residual energy capacity increases above this value
        @class(SimpleEpEnergyManagement);
        displayStringTextFormat = default("{energyStatus}");
        @display("i=block/plug");
}

File: src/inet/power/management/SimpleEpEnergyManagement.ned