Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

sTopoNode Class Reference

#include <ctopo.h>

List of all members.

Public Methods

Node attributes: weight, enabled state, correspondence to modules.
int moduleId () const
cModulemodule () const
double weight () const
void setWeight (double d)
bool enabled () const
void enable ()
void disable ()
Node connectivity.
int inLinks () const
sTopoLinkInin (int i)
int outLinks () const
sTopoLinkOutout (int i)
Result of shortest path extraction.
double distanceToTarget () const
int paths () const
sTopoLinkOutpath (int) const


Detailed Description

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


Member Function Documentation

void sTopoNode::disable ( ) [inline]
 

Disable this node. This has significance with the shortest path finder methods of cTopology.

double sTopoNode::distanceToTarget ( ) const [inline]
 

Returns the distance of this node to the target node.

void sTopoNode::enable ( ) [inline]
 

Enable this node. This has significance with the shortest path finder methods of cTopology.

bool sTopoNode::enabled ( ) const [inline]
 

Returns true of this node is enabled. This has significance with the shortest path finder methods of cTopology.

sTopoLinkIn * sTopoNode::in ( int i )
 

Returns ith incoming link of graph node.

int sTopoNode::inLinks ( ) const [inline]
 

Returns the number of incoming links to this graph node.

cModule * sTopoNode::module ( ) const [inline]
 

Returns the pointer to the network module to which this node corresponds.

int sTopoNode::moduleId ( ) const [inline]
 

Returns the ID of the network module to which this node corresponds.

sTopoLinkOut * sTopoNode::out ( int i )
 

Returns ith outgoing link of graph node.

int sTopoNode::outLinks ( ) const [inline]
 

Returns the number of outgoing links from this graph node.

sTopoLinkOut * sTopoNode::path ( int ) const [inline]
 

Returns the next link in the ith shortest paths towards the target node. (There might be several paths with the same lengths.)

int sTopoNode::paths ( ) const [inline]
 

Returns the number of shortest paths towards the target node. (There might be several paths with the same lengths.)

void sTopoNode::setWeight ( double d ) [inline]
 

Sets the weight of this node. Weight is used with the weighted shortest path finder methods of cTopology.

double sTopoNode::weight ( ) const [inline]
 

Returns 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 at Sat May 4 15:45:52 2002 for OMNeT++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001