INET Framework for OMNeT++/OMNEST
inet::Topology::LinkOut Class Reference

Supporting class for Topology. More...

#include <Topology.h>

Inheritance diagram for inet::Topology::LinkOut:
inet::Topology::Link

Public Member Functions

NodegetRemoteNode () const
 Returns the node at the remote end of this connection. More...
 
NodegetLocalNode () 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...
 

Additional Inherited Members

Detailed Description

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.

Member Function Documentation

cGate* inet::Topology::LinkOut::getLocalGate ( ) const
inline

Returns the gate at the local end of this connection.

Referenced by inet::NetworkConfiguratorBase::computeWiredLinkWeight().

317 { return srcNode->getModule()->gate(srcGateId); }
cModule * getModule() const
Returns the pointer to the network module to which this node corresponds.
Definition: Topology.h:103
int inet::Topology::LinkOut::getLocalGateId ( ) const
inline

Returns the gate ID at the local end of this connection.

Referenced by inet::NetworkConfiguratorBase::extractTopology(), inet::L2NetworkConfigurator::findLinkOut(), and inet::NetworkConfiguratorBase::findLinkOut().

307 { return srcGateId; }
Node* inet::Topology::LinkOut::getLocalNode ( ) const
inline

Returns the node at the local end of this connection.

Referenced by inet::NetworkConfiguratorBase::dumpTopology(), and inet::NetworkConfiguratorBase::extractTopology().

297 { return srcNode; }
cGate* inet::Topology::LinkOut::getRemoteGate ( ) const
inline

Returns the gate at the remote end of this connection.

Referenced by inet::STPTester::dfsVisit().

312 { return destNode->getModule()->gate(destGateId); }
cModule * getModule() const
Returns the pointer to the network module to which this node corresponds.
Definition: Topology.h:103
int inet::Topology::LinkOut::getRemoteGateId ( ) const
inline

Returns the gate ID at the remote end of this connection.

Referenced by inet::NetworkConfiguratorBase::extractTopology(), and inet::NetworkConfiguratorBase::extractWiredNeighbors().

302 { return destGateId; }

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