|
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... | |
| Node * | getLinkInRemoteNode () const |
| Returns the node at the remote end of this connection. More... | |
| Node * | getLinkInLocalNode () const |
| Returns the node at the local end of this connection. More... | |
| int | getLinkInRemoteGateId () const |
| Returns the gate ID at the remote end of this connection. More... | |
| int | getLinkInLocalGateId () const |
| Returns the gate ID at the local end of this connection. More... | |
| cGate * | getLinkInRemoteGate () const |
| Returns the gate at the remote end of this connection. More... | |
| cGate * | getLinkInLocalGate () const |
| Returns the gate at the local end of this connection. More... | |
| Node * | getLinkOutRemoteNode () const |
| Returns the node at the remote end of this connection. More... | |
| Node * | getLinkOutLocalNode () const |
| Returns the node at the local end of this connection. More... | |
| int | getLinkOutRemoteGateId () const |
| Returns the gate ID at the remote end of this connection. More... | |
| int | getLinkOutLocalGateId () const |
| Returns the gate ID at the local end of this connection. More... | |
| cGate * | getLinkOutRemoteGate () const |
| Returns the gate at the remote end of this connection. More... | |
| cGate * | getLinkOutLocalGate () const |
| Returns the gate at the local end of this connection. 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 gate at the local end of this connection.
|
inline |
Returns the gate ID at the local end of this connection.
|
inline |
Returns the node at the local end of this connection.
Referenced by inet::L3NetworkConfiguratorBase::dumpTopology().
|
inline |
|
inline |
Returns the gate ID at the remote end of this connection.
|
inline |
Returns the node at the remote end of this connection.
Referenced by inet::Topology::calculateWeightedSingleShortestPathsTo(), inet::L3NetworkConfiguratorBase::dumpTopology(), and inet::NetworkConfiguratorBase::findLinkIn().
|
inline |
Returns the gate at the local end of this connection.
Referenced by inet::L3NetworkConfiguratorBase::computeWiredLinkWeight().
|
inline |
Returns the gate ID at the local end of this connection.
Referenced by inet::NetworkConfiguratorBase::extractTopology(), inet::L3NetworkConfiguratorBase::extractTopology(), inet::NetworkConfiguratorBase::findLinkOut(), inet::L2NetworkConfigurator::findLinkOut(), and inet::L3NetworkConfiguratorBase::findLinkOut().
|
inline |
Returns the node at the local end of this connection.
Referenced by inet::L3NetworkConfiguratorBase::dumpTopology(), inet::NetworkConfiguratorBase::extractTopology(), and inet::L3NetworkConfiguratorBase::extractTopology().
|
inline |
|
inline |
Returns the gate ID at the remote end of this connection.
Referenced by inet::NetworkConfiguratorBase::extractTopology(), inet::L3NetworkConfiguratorBase::extractTopology(), and inet::L3NetworkConfiguratorBase::extractWiredNeighbors().
|
inline |
Returns the node at the remote end of this connection.
Referenced by inet::NextHopNetworkConfigurator::addStaticRoutes(), inet::Ipv4NetworkConfigurator::addStaticRoutes(), inet::FailureProtectionConfigurator::collectAllPaths(), inet::NetworkConfiguratorBase::computeShortestLinkPath(), inet::NetworkConfiguratorBase::computeShortestNodePath(), inet::StpTester::dfsVisit(), inet::L3NetworkConfiguratorBase::dumpTopology(), inet::NetworkConfiguratorBase::extractTopology(), inet::L2NetworkConfigurator::extractTopology(), inet::L3NetworkConfiguratorBase::extractTopology(), inet::L3NetworkConfiguratorBase::extractWiredNeighbors(), and inet::NetworkConfiguratorBase::findLinkOut().
|
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(), and inet::MacForwardingTableConfigurator::extendConfiguration().
|
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 |