INET Framework for OMNeT++/OMNEST
inet::NetworkConfiguratorBase::Node Class Reference

Represents a node in the network. More...

#include <NetworkConfiguratorBase.h>

Inheritance diagram for inet::NetworkConfiguratorBase::Node:
inet::Topology::Node inet::IPv4NetworkConfigurator::Node

Public Member Functions

 Node (cModule *module)
 
virtual ~Node ()
 
- Public Member Functions inherited from inet::Topology::Node
 Node (int moduleId=-1)
 Constructor. More...
 
int getModuleId () const
 Returns the ID of the network module to which this node corresponds. More...
 
cModule * getModule () const
 Returns the pointer to the network module to which this node corresponds. More...
 
double getWeight () const
 Returns the weight of this node. More...
 
void setWeight (double d)
 Sets the weight of this node. More...
 
bool isEnabled () const
 Returns true of this node is enabled. More...
 
void enable ()
 Enable this node. More...
 
void disable ()
 Disable this node. More...
 
int getNumInLinks () const
 Returns the number of incoming links to this graph node. More...
 
LinkIngetLinkIn (int i)
 Returns ith incoming link of graph node. More...
 
int getNumOutLinks () const
 Returns the number of outgoing links from this graph node. More...
 
LinkOutgetLinkOut (int i)
 Returns ith outgoing link of graph node. More...
 
double getDistanceToTarget () const
 Returns the distance of this node to the target node. More...
 
int getNumPaths () const
 Returns the number of shortest paths towards the target node. More...
 
LinkOutgetPath (int) const
 Returns the next link in the ith shortest paths towards the target node. More...
 

Public Attributes

cModule * module = nullptr
 
IInterfaceTableinterfaceTable = nullptr
 
IRoutingTableroutingTable = nullptr
 
std::vector< InterfaceInfo * > interfaceInfos
 

Additional Inherited Members

- Protected Attributes inherited from inet::Topology::Node
int moduleId
 
double weight
 
bool enabled
 
std::vector< Link * > inLinks
 
std::vector< Link * > outLinks
 
double dist
 
LinkoutPath
 

Detailed Description

Represents a node in the network.

Constructor & Destructor Documentation

inet::NetworkConfiguratorBase::Node::Node ( cModule *  module)
inline
58 : inet::Topology::Node(module->getId()), module(module) { }
cModule * module
Definition: NetworkConfiguratorBase.h:52
Supporting class for Topology, represents a node in the graph.
Definition: Topology.h:70
virtual inet::NetworkConfiguratorBase::Node::~Node ( )
inlinevirtual

Reimplemented from inet::Topology::Node.

Reimplemented in inet::IPv4NetworkConfigurator::Node.

59 { for (auto & interfaceInfo : interfaceInfos) delete interfaceInfo; }
std::vector< InterfaceInfo * > interfaceInfos
Definition: NetworkConfiguratorBase.h:55

Member Data Documentation


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