Supporting class for cTopology, represents a node in the graph. More...
#include <ctopology.h>
Public Member Functions | |
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 |
Friends | |
class | cTopology |
Supporting class for cTopology, represents a node in the graph.
void cTopology::Node::disable | ( | ) | [inline] |
Disable this node.
This has significance with the shortest path finder methods of cTopology.
void cTopology::Node::enable | ( | ) | [inline] |
Enable this node.
This has significance with the shortest path finder methods of cTopology.
int cTopology::Node::getNumPaths | ( | ) | const [inline] |
Returns the number of shortest paths towards the target node.
(There may be several paths with the same length.)
LinkOut* cTopology::Node::getPath | ( | int | ) | const [inline] |
Returns the next link in the ith shortest paths towards the target node.
(There may be several paths with the same length.)
double cTopology::Node::getWeight | ( | ) | const [inline] |
Returns the weight of this node.
Weight is used with the weighted shortest path finder methods of cTopology.
bool cTopology::Node::isEnabled | ( | ) | const [inline] |
Returns true of this node is enabled.
This has significance with the shortest path finder methods of cTopology.
void cTopology::Node::setWeight | ( | double | d | ) | [inline] |
Sets the weight of this node.
Weight is used with the weighted shortest path finder methods of cTopology.