INET Framework for OMNeT++/OMNEST
|
This operation represents the process of orderly shutting down a network node. More...
#include <NodeOperations.h>
Public Types | |
enum | Stage { STAGE_LOCAL, STAGE_APPLICATION_LAYER, STAGE_ROUTING_PROTOCOLS, STAGE_TRANSPORT_LAYER, STAGE_NETWORK_LAYER, STAGE_LINK_LAYER, STAGE_PHYSICAL_LAYER, STAGE_LAST } |
Public Types inherited from inet::LifecycleOperation | |
enum | Kind { UP, DOWN, MOMENTARY } |
typedef std::map< std::string, std::string > | StringMap |
Public Member Functions | |
virtual int | getNumStages () const override |
Returns the number of stages required by this operation. More... | |
virtual Kind | getKind () const override |
Returns the "kind" or "direction" of the operation. More... | |
Public Member Functions inherited from inet::NodeOperation | |
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 () | |
cModule * | getRootModule () const |
Returns the module the operation is initiated on. More... | |
int | getCurrentStage () const |
Returns the current stage, an integer in 0..numStages-1. More... | |
This operation represents the process of orderly shutting down a network node.
The operation should be applied to the module of a network node. Operation stages are organized top-down similarly to the OSI network layers.
Enumerator | |
---|---|
STAGE_LOCAL | |
STAGE_APPLICATION_LAYER | |
STAGE_ROUTING_PROTOCOLS | |
STAGE_TRANSPORT_LAYER | |
STAGE_NETWORK_LAYER | |
STAGE_LINK_LAYER | |
STAGE_PHYSICAL_LAYER | |
STAGE_LAST |
|
inlineoverridevirtual |
Returns the "kind" or "direction" of the operation.
This attribute is provided for convenience, it is not used by the lifecycle infrastructure itself.
Implements inet::LifecycleOperation.
|
inlineoverridevirtual |
Returns the number of stages required by this operation.
Implements inet::LifecycleOperation.