INET Framework for OMNeT++/OMNEST
|
Base class for operations that manipulate network nodes. More...
#include <NodeOperations.h>
Public Member Functions | |
virtual void | initialize (cModule *module, StringMap ¶ms) override |
Initialize the operation using the parameters provided in the string map. More... | |
Public Member Functions inherited from inet::LifecycleOperation | |
LifecycleOperation () | |
virtual Kind | getKind () const =0 |
Returns the "kind" or "direction" of the operation. More... | |
cModule * | getRootModule () const |
Returns the module the operation is initiated on. More... | |
virtual int | getNumStages () const =0 |
Returns the number of stages required by this operation. More... | |
int | getCurrentStage () const |
Returns the current stage, an integer in 0..numStages-1. More... | |
Additional Inherited Members | |
Public Types inherited from inet::LifecycleOperation | |
enum | Kind { UP, DOWN, MOMENTARY } |
typedef std::map< std::string, std::string > | StringMap |
Base class for operations that manipulate network nodes.
|
overridevirtual |
Initialize the operation using the parameters provided in the string map.
The implementation should destructively modify the map, removing from it the parameters it understands. Ideally, the map should be empty when this method returns; if it is not, the caller should treat that as an error, and report the remaining parameters as unrecognized by the operation.
Reimplemented from inet::LifecycleOperation.
Referenced by inet::power::SimpleEpEnergyManagement::executeNodeOperation(), inet::power::SimpleCcBattery::executeNodeOperation(), and inet::power::SimpleEpEnergyStorage::executeNodeOperation().