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

This operation represents the process of turning on a network node after a shutdown, crash or suspend operation. More...

#include <NodeOperations.h>

Inheritance diagram for inet::NodeStartOperation:
inet::NodeOperation 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
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 &params) 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...
 

Detailed Description

This operation represents the process of turning on a network node after a shutdown, crash or suspend 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

Enumerator
STAGE_LOCAL 
STAGE_PHYSICAL_LAYER 
STAGE_LINK_LAYER 
STAGE_NETWORK_LAYER 
STAGE_TRANSPORT_LAYER 
STAGE_ROUTING_PROTOCOLS 
STAGE_APPLICATION_LAYER 
STAGE_LAST 
46  {
47  STAGE_LOCAL, // for changes that don't depend on other modules
55  };
Definition: NodeOperations.h:48
Definition: NodeOperations.h:50
Definition: NodeOperations.h:54
Definition: NodeOperations.h:49
Definition: NodeOperations.h:47

Member Function Documentation

virtual Kind inet::NodeStartOperation::getKind ( ) const
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.

59 { return UP; }
Start, boot, resume, recover, interface up, etc.
Definition: LifecycleOperation.h:40
virtual int inet::NodeStartOperation::getNumStages ( ) const
inlineoverridevirtual

Returns the number of stages required by this operation.

Implements inet::LifecycleOperation.

58 { return STAGE_LAST + 1; }
Definition: NodeOperations.h:54

The documentation for this class was generated from the following file: