40 cSimpleModule::initialize(stage);
45 throw cRuntimeError(
"The container @networkNode module not found");
46 const char *networkConfiguratorPath = par(
"networkConfiguratorModule");
47 nodeStatus =
dynamic_cast<NodeStatus *
>(node->getSubmodule(
"status"));
48 interfaceTable = getModuleFromPar<IInterfaceTable>(par(
"interfaceTableModule"),
this);
49 routingTable = L3AddressResolver().findIPv4RoutingTableOf(node);
51 if (!networkConfiguratorPath[0])
54 cModule *module = getModuleByPath(networkConfiguratorPath);
56 throw cRuntimeError(
"Configurator module '%s' not found (check the 'networkConfiguratorModule' parameter)", networkConfiguratorPath);
virtual void prepareNode()
Definition: IPv4NodeConfigurator.cc:96
IIPv4RoutingTable * routingTable
Definition: IPv4NodeConfigurator.h:44
Initialization of network-layer protocols, stage 3.
Definition: InitStages.h:84
IPv4NetworkConfigurator * networkConfigurator
Definition: IPv4NodeConfigurator.h:45
Initialization of network-layer protocols, stage 1.
Definition: InitStages.h:72
NodeStatus * nodeStatus
Definition: IPv4NodeConfigurator.h:42
Local initializations.
Definition: InitStages.h:35
IInterfaceTable * interfaceTable
Definition: IPv4NodeConfigurator.h:43
cModule * getContainingNode(const cModule *from)
Find the node containing the given module.
Definition: ModuleAccess.cc:65
Initialization of network-layer protocols, stage 2.
Definition: InitStages.h:78
virtual void configureInterface()
Definition: IPv4NodeConfigurator.cc:124
virtual void configureRoutingTable()
Definition: IPv4NodeConfigurator.cc:131
virtual State getState() const
Definition: NodeStatus.h:48
Definition: NodeStatus.h:40