INET Framework for OMNeT++/OMNEST
|
Supporting class for Topology, represents a node in the graph. More...
#include <Topology.h>
Public Member Functions | |
Node (int moduleId=-1) | |
Constructor. More... | |
virtual | ~Node () |
Node attributes: weight, enabled state, correspondence to modules. | |
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... | |
Node connectivity. | |
int | getNumInLinks () const |
Returns the number of incoming links to this graph node. More... | |
LinkIn * | getLinkIn (int i) |
Returns ith incoming link of graph node. More... | |
int | getNumOutLinks () const |
Returns the number of outgoing links from this graph node. More... | |
LinkOut * | getLinkOut (int i) |
Returns ith outgoing link of graph node. More... | |
Result of shortest path extraction. | |
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... | |
LinkOut * | getPath (int) const |
Returns the next link in the ith shortest paths towards the target node. More... | |
Protected Attributes | |
int | moduleId |
double | weight |
bool | enabled |
std::vector< Link * > | inLinks |
std::vector< Link * > | outLinks |
double | dist |
Link * | outPath |
Friends | |
class | Topology |
Supporting class for Topology, represents a node in the graph.
|
inline |
Constructor.
|
inlinevirtual |
Reimplemented in inet::NetworkConfiguratorBase::Node, inet::L2NetworkConfigurator::Node, and inet::IPv4NetworkConfigurator::Node.
|
inline |
|
inline |
|
inline |
Returns the distance of this node to the target node.
Topology::LinkIn * inet::Topology::Node::getLinkIn | ( | int | i | ) |
Returns ith incoming link of graph node.
Referenced by inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::Topology::calculateWeightedSingleShortestPathsTo(), and inet::NetworkConfiguratorBase::dumpTopology().
Topology::LinkOut * inet::Topology::Node::getLinkOut | ( | int | i | ) |
Returns ith outgoing link of graph node.
Referenced by inet::STPTester::dfsVisit(), inet::NetworkConfiguratorBase::dumpTopology(), inet::NetworkConfiguratorBase::extractDeviceNeighbors(), inet::NetworkConfiguratorBase::extractTopology(), inet::L2NetworkConfigurator::findLinkOut(), and inet::NetworkConfiguratorBase::findLinkOut().
|
inline |
Returns the pointer to the network module to which this node corresponds.
Referenced by inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::IPv4NetworkConfigurator::configureRoutingTable(), inet::Topology::extractFromNetwork(), inet::L2NetworkConfigurator::extractTopology(), inet::NetworkConfiguratorBase::extractTopology(), and inet::STPTester::isForwarding().
|
inline |
Returns the ID of the network module to which this node corresponds.
|
inline |
Returns the number of incoming links to this graph node.
Referenced by inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::Topology::calculateWeightedSingleShortestPathsTo(), and inet::NetworkConfiguratorBase::dumpTopology().
|
inline |
Returns the number of outgoing links from this graph node.
Referenced by inet::STPTester::dfsVisit(), inet::NetworkConfiguratorBase::dumpTopology(), inet::NetworkConfiguratorBase::extractDeviceNeighbors(), inet::NetworkConfiguratorBase::extractTopology(), inet::L2NetworkConfigurator::findLinkOut(), and inet::NetworkConfiguratorBase::findLinkOut().
|
inline |
Returns the number of shortest paths towards the target node.
(There may be several paths with the same length.)
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes(), and inet::IPv4NetworkConfigurator::addStaticRoutes().
|
inline |
Returns the next link in the ith shortest paths towards the target node.
(There may be several paths with the same length.)
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes(), and inet::IPv4NetworkConfigurator::addStaticRoutes().
|
inline |
Returns the weight of this node.
Weight is used with the weighted shortest path finder methods of Topology.
Referenced by inet::Topology::calculateWeightedSingleShortestPathsTo().
|
inline |
Returns true of this node is enabled.
This has significance with the shortest path finder methods of Topology.
Referenced by inet::Topology::calculateWeightedSingleShortestPathsTo().
|
inline |
Sets the weight of this node.
Weight is used with the weighted shortest path finder methods of Topology.
Referenced by inet::IPv4NetworkConfigurator::addStaticRoutes().
|
friend |
|
protected |
|
protected |
Referenced by inet::Topology::calculateUnweightedSingleShortestPathsTo().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |