cTopology::Node Class Reference

Supporting class for cTopology, represents a node in the graph. More...

#include <ctopology.h>

List of all members.

Public Member Functions

Node attributes: weight, enabled state, correspondence to modules.

int getModuleId () const
cModulegetModule () const
double getWeight () const
void setWeight (double d)
bool isEnabled () const
void enable ()
void disable ()
Node connectivity.

int getNumInLinks () const
LinkIngetLinkIn (int i)
int getNumOutLinks () const
LinkOutgetLinkOut (int i)
Result of shortest path extraction.

double getDistanceToTarget () const
int getNumPaths () const
LinkOutgetPath (int) const

Friends

class cTopology

Detailed Description

Supporting class for cTopology, represents a node in the graph.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:30 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3