SimpleEpEnergyManagement

Package: inet.power.management

SimpleEpEnergyManagement

simple module

This energy mangement 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

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters

Name Type Default value Description
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

Scheduled messages (observed)

msgkindctrltagsmsgnamecontext
omnetpp::cMessage0lifecycleOperation

Direct method calls (observed)

call tofunctioninfo
PingAppinet::PingApp::handleOperationStagehandleOperationStage
NodeStatusinet::NodeStatus::handleOperationStagehandleOperationStage
Ieee80211Interfaceinet::NetworkInterface::handleOperationStagehandleOperationStage
Ieee80211LlcLpdinet::ieee80211::Ieee80211LlcLpd::handleOperationStagehandleOperationStage
Ieee80211Macinet::ieee80211::Ieee80211Mac::handleOperationStagehandleOperationStage
Ieee80211MgmtAdhocinet::ieee80211::Ieee80211MgmtAdhoc::handleOperationStagehandleOperationStage
Loopbackinet::Loopback::handleOperationStagehandleOperationStage
LoopbackInterfaceinet::NetworkInterface::handleOperationStagehandleOperationStage
Arpinet::Arp::handleOperationStagehandleOperationStage
InterfaceTableinet::InterfaceTable::handleOperationStagehandleOperationStage
Ipv4NodeConfiguratorinet::Ipv4NodeConfigurator::handleOperationStagehandleOperationStage
Ipv4inet::Ipv4::handleOperationStagehandleOperationStage
Ipv4RoutingTableinet::Ipv4RoutingTable::handleOperationStagehandleOperationStage
Ieee80211ScalarRadioinet::physicallayer::Ieee80211Radio::handleOperationStagehandleOperationStage
Tcpinet::tcp::Tcp::handleOperationStagehandleOperationStage
Udpinet::Udp::handleOperationStagehandleOperationStage

Called methods (observed)

functioninfocall from
inet::power::SimpleEpEnergyManagement::moduleOperationStageCompletedmoduleOperationStageCompletedPingApp, Tcp
inet::power::SimpleEpEnergyManagement::receiveSignalpowerConsumptionChangedSimpleEpEnergyStorage
inet::power::SimpleEpEnergyManagement::receiveSignalpowerGenerationChangedSimpleEpEnergyStorage

Source code

//
// This energy mangement 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 like IEpEnergyManagement
{
    parameters:
        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);
        @display("i=block/plug");
}

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