Package: inet.power.management
SimpleEpEnergyManagement
simple moduleThis 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)
msg | kind | ctrl | tags | msgname | context |
---|---|---|---|---|---|
omnetpp::cMessage | 0 | lifecycleOperation |
Direct method calls (observed)
call to | function | info |
---|---|---|
PingApp | inet::PingApp::handleOperationStage | handleOperationStage |
NodeStatus | inet::NodeStatus::handleOperationStage | handleOperationStage |
Ieee80211Interface | inet::NetworkInterface::handleOperationStage | handleOperationStage |
Ieee80211LlcLpd | inet::ieee80211::Ieee80211LlcLpd::handleOperationStage | handleOperationStage |
Ieee80211Mac | inet::ieee80211::Ieee80211Mac::handleOperationStage | handleOperationStage |
Ieee80211MgmtAdhoc | inet::ieee80211::Ieee80211MgmtAdhoc::handleOperationStage | handleOperationStage |
Loopback | inet::Loopback::handleOperationStage | handleOperationStage |
LoopbackInterface | inet::NetworkInterface::handleOperationStage | handleOperationStage |
Arp | inet::Arp::handleOperationStage | handleOperationStage |
InterfaceTable | inet::InterfaceTable::handleOperationStage | handleOperationStage |
Ipv4NodeConfigurator | inet::Ipv4NodeConfigurator::handleOperationStage | handleOperationStage |
Ipv4 | inet::Ipv4::handleOperationStage | handleOperationStage |
Ipv4RoutingTable | inet::Ipv4RoutingTable::handleOperationStage | handleOperationStage |
Ieee80211ScalarRadio | inet::physicallayer::Ieee80211Radio::handleOperationStage | handleOperationStage |
Tcp | inet::tcp::Tcp::handleOperationStage | handleOperationStage |
Udp | inet::Udp::handleOperationStage | handleOperationStage |
Called methods (observed)
function | info | call from |
---|---|---|
inet::power::SimpleEpEnergyManagement::moduleOperationStageCompleted | moduleOperationStageCompleted | PingApp, Tcp |
inet::power::SimpleEpEnergyManagement::receiveSignal | powerConsumptionChanged | SimpleEpEnergyStorage |
inet::power::SimpleEpEnergyManagement::receiveSignal | powerGenerationChanged | SimpleEpEnergyStorage |
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