INET Framework for OMNeT++/OMNEST
|
Supporting class for Topology, represents a link in the graph. More...
#include <Topology.h>
Public Member Functions | |
Link (double weight=1) | |
Constructor. More... | |
virtual | ~Link () |
double | getWeight () const |
Returns the weight of this link. More... | |
void | setWeight (double d) |
Sets the weight of this link. More... | |
bool | isEnabled () const |
Returns true of this link is enabled. More... | |
void | enable () |
Enables this link. More... | |
void | disable () |
Disables this link. More... | |
Protected Attributes | |
Node * | srcNode |
int | srcGateId |
Node * | destNode |
int | destGateId |
double | weight |
bool | enabled |
Friends | |
class | Topology |
Supporting class for Topology, represents a link in the graph.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the weight of this link.
Weight is used with the weighted shortest path finder methods of Topology.
Referenced by inet::Topology::calculateWeightedSingleShortestPathsTo().
|
inline |
Returns true of this link is enabled.
This has significance with the shortest path finder methods of Topology.
Referenced by inet::Topology::calculateWeightedSingleShortestPathsTo().
|
inline |
Sets the weight of this link.
Weight is used with the weighted shortest path finder methods of Topology.
Referenced by inet::IPv4NetworkConfigurator::addStaticRoutes().
|
friend |
|
protected |
Referenced by inet::Topology::addLink(), and inet::Topology::extractFromNetwork().
|
protected |
|
protected |
|
protected |
Referenced by inet::Topology::addLink(), and inet::Topology::extractFromNetwork().
|
protected |
|
protected |