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

Supporting class for Topology. More...

#include <Topology.h>

Inheritance diagram for inet::Topology::LinkIn:
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::LinkIn::getLocalGate ( ) const
inline

Returns the gate at the local end of this connection.

275 { 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::LinkIn::getLocalGateId ( ) const
inline

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

265 { return destGateId; }
Node* inet::Topology::LinkIn::getLocalNode ( ) const
inline

Returns the node at the local end of this connection.

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

255 { return destNode; }
cGate* inet::Topology::LinkIn::getRemoteGate ( ) const
inline

Returns the gate at the remote end of this connection.

270 { 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::LinkIn::getRemoteGateId ( ) const
inline

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

260 { return srcGateId; }
Node* inet::Topology::LinkIn::getRemoteNode ( ) const
inline

Returns the node at the remote end of this connection.

Referenced by inet::Topology::calculateWeightedSingleShortestPathsTo(), and inet::NetworkConfiguratorBase::dumpTopology().

250 { return srcNode; }

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