INET Framework for OMNeT++/OMNEST
|
Supporting class for Topology. More...
#include <Topology.h>
Public Member Functions | |
Node * | getRemoteNode () const |
Returns the node at the remote end of this connection. More... | |
Node * | getLocalNode () const |
Returns the node at the local end of this connection. More... | |
int | getRemoteGateId () const |
Returns the gate ID at the remote end of this connection. More... | |
int | getLocalGateId () const |
Returns the gate ID at the local end of this connection. More... | |
cGate * | getRemoteGate () const |
Returns the gate at the remote end of this connection. More... | |
cGate * | getLocalGate () const |
Returns the gate at the local end of this connection. More... | |
Public Member Functions inherited from inet::Topology::Link | |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from inet::Topology::Link | |
Node * | srcNode |
int | srcGateId |
Node * | destNode |
int | destGateId |
double | weight |
bool | enabled |
Supporting class for Topology.
While navigating the graph stored in a Topology, Node's methods return LinkIn and LinkOut objects, which are 'aliases' to Link objects. LinkIn and LinkOut provide convenience functions that return the 'local' and 'remote' end of the connection when traversing the topology.
|
inline |
Returns the gate at the local end of this connection.
Referenced by inet::NetworkConfiguratorBase::computeWiredLinkWeight().
|
inline |
Returns the gate ID at the local end of this connection.
Referenced by inet::NetworkConfiguratorBase::extractTopology(), inet::L2NetworkConfigurator::findLinkOut(), and inet::NetworkConfiguratorBase::findLinkOut().
|
inline |
Returns the node at the local end of this connection.
Referenced by inet::NetworkConfiguratorBase::dumpTopology(), and inet::NetworkConfiguratorBase::extractTopology().
|
inline |
Returns the gate at the remote end of this connection.
Referenced by inet::STPTester::dfsVisit().
|
inline |
Returns the gate ID at the remote end of this connection.
Referenced by inet::NetworkConfiguratorBase::extractTopology(), and inet::NetworkConfiguratorBase::extractWiredNeighbors().
|
inline |
Returns the node at the remote end of this connection.
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes(), inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::STPTester::dfsVisit(), inet::NetworkConfiguratorBase::dumpTopology(), inet::L2NetworkConfigurator::extractTopology(), inet::NetworkConfiguratorBase::extractTopology(), and inet::NetworkConfiguratorBase::extractWiredNeighbors().