OMNeT++ Simulation Library  6.0.3
cTopology::Link Class Reference

#include <ctopology.h>

Description

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

Inheritance diagram for cTopology::Link:
cTopology::LinkIn cTopology::LinkOut

Public Member Functions

 Link (double weight=1)
 
double getWeight () const
 
void setWeight (double d)
 
bool isEnabled () const
 
void enable ()
 
void disable ()
 

Constructor & Destructor Documentation

◆ Link()

Link ( double  weight = 1)
inline

Constructor.

Member Function Documentation

◆ getWeight()

double getWeight ( ) const
inline

Returns the weight of this link. Weight is used with the weighted shortest path finder methods of cTopology.

◆ setWeight()

void setWeight ( double  d)
inline

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

◆ isEnabled()

bool isEnabled ( ) const
inline

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

◆ enable()

void enable ( )
inline

Enables this link. This has significance with the shortest path finder methods of cTopology.

◆ disable()

void disable ( )
inline

Disables this link. This has significance with the shortest path finder methods of cTopology.


The documentation for this class was generated from the following file: