Node Class Reference¶
|
API
|
Public Member Functions | |
| Node (int moduleId=-1) | |
Node attributes: weight, enabled state, correspondence to modules. | |
| int | getModuleId () const |
| cModule * | getModule () const |
| double | getWeight () const |
| void | setWeight (double d) |
| bool | isEnabled () const |
| void | enable () |
| void | disable () |
Node connectivity. | |
| int | getNumInLinks () const |
| LinkIn * | getLinkIn (int i) |
| int | getNumOutLinks () const |
| LinkOut * | getLinkOut (int i) |
Result of shortest path extraction. | |
| double | getDistanceToTarget () const |
| int | getNumPaths () const |
| LinkOut * | getPath (int) const |
Description
Supporting class for cTopology, represents a node in the graph.
Constructor & Destructor Documentation
◆ Node()
|
inline |
Constructor
Member Function Documentation
◆ getModuleId()
|
inline |
Returns the ID of the network module to which this node corresponds.
◆ getModule()
|
inline |
Returns the pointer to the network module to which this node corresponds.
References omnetpp::getSimulation().
◆ getWeight()
|
inline |
Returns the weight of this node. Weight is used with the weighted shortest path finder methods of cTopology.
◆ setWeight()
|
inline |
Sets the weight of this node. Weight is used with the weighted shortest path finder methods of cTopology.
◆ isEnabled()
|
inline |
Returns true of this node is enabled. This has significance with the shortest path finder methods of cTopology.
◆ enable()
|
inline |
Enable this node. This has significance with the shortest path finder methods of cTopology.
◆ disable()
|
inline |
Disable this node. This has significance with the shortest path finder methods of cTopology.
◆ getNumInLinks()
|
inline |
Returns the number of incoming links to this graph node.
◆ getLinkIn()
| LinkIn * getLinkIn | ( | int | i | ) |
Returns ith incoming link of graph node.
◆ getNumOutLinks()
|
inline |
Returns the number of outgoing links from this graph node.
◆ getLinkOut()
| LinkOut * getLinkOut | ( | int | i | ) |
Returns ith outgoing link of graph node.
◆ getDistanceToTarget()
|
inline |
Returns the distance of this node to the target node.
◆ getNumPaths()
|
inline |
Returns the number of shortest paths towards the target node. (There may be several paths with the same length.)
◆ getPath()
|
inline |
Returns the next link in the ith shortest paths towards the target node. (There may be several paths with the same length.)
Generated on for API by