INET Framework for OMNeT++/OMNEST
inet::ModuleStartOperation Class Reference

This operation represents the process of turning on a module after a stop or crash operation. More...

#include <ModuleOperations.h>

Inheritance diagram for inet::ModuleStartOperation:
inet::LifecycleOperation

Public Types

enum  Stage {
  STAGE_LOCAL, STAGE_PHYSICAL_LAYER, STAGE_LINK_LAYER, STAGE_NETWORK_LAYER,
  STAGE_TRANSPORT_LAYER, STAGE_ROUTING_PROTOCOLS, STAGE_APPLICATION_LAYER, STAGE_LAST
}
 
- Public Types inherited from inet::LifecycleOperation
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...
 
- Public Member Functions inherited from inet::LifecycleOperation
 LifecycleOperation ()
 
virtual void initialize (cModule *module, StringMap &params)
 Initialize the operation using the parameters provided in the string map. More...
 
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...
 

Detailed Description

This operation represents the process of turning on a module after a stop or crash operation.

The operation should be applied to the module of a network node. Operation stages are organized bottom-up similarly to the OSI network layers.

Member Enumeration Documentation

◆ Stage

Enumerator
STAGE_LOCAL 
STAGE_PHYSICAL_LAYER 
STAGE_LINK_LAYER 
STAGE_NETWORK_LAYER 
STAGE_TRANSPORT_LAYER 
STAGE_ROUTING_PROTOCOLS 
STAGE_APPLICATION_LAYER 
STAGE_LAST 
25  {
26  STAGE_LOCAL, // for changes that don't depend on other modules
34  };

Member Function Documentation

◆ getNumStages()

virtual int inet::ModuleStartOperation::getNumStages ( ) const
inlineoverridevirtual

Returns the number of stages required by this operation.

Implements inet::LifecycleOperation.

37 { return STAGE_LAST + 1; }

The documentation for this class was generated from the following file:
inet::ModuleStartOperation::STAGE_LAST
@ STAGE_LAST
Definition: ModuleOperations.h:33
inet::ModuleStartOperation::STAGE_NETWORK_LAYER
@ STAGE_NETWORK_LAYER
Definition: ModuleOperations.h:29
inet::ModuleStartOperation::STAGE_PHYSICAL_LAYER
@ STAGE_PHYSICAL_LAYER
Definition: ModuleOperations.h:27
inet::ModuleStartOperation::STAGE_LOCAL
@ STAGE_LOCAL
Definition: ModuleOperations.h:26
inet::ModuleStartOperation::STAGE_ROUTING_PROTOCOLS
@ STAGE_ROUTING_PROTOCOLS
Definition: ModuleOperations.h:31
inet::ModuleStartOperation::STAGE_LINK_LAYER
@ STAGE_LINK_LAYER
Definition: ModuleOperations.h:28
inet::ModuleStartOperation::STAGE_TRANSPORT_LAYER
@ STAGE_TRANSPORT_LAYER
Definition: ModuleOperations.h:30
inet::ModuleStartOperation::STAGE_APPLICATION_LAYER
@ STAGE_APPLICATION_LAYER
Definition: ModuleOperations.h:32