Public Member Functions | Static Public Member Functions

ns3::InetTopologyReader Class Reference
[Topology Input Readers]

Topology file reader (Inet-format type). More...

#include <inet-topology-reader.h>

Inheritance diagram for ns3::InetTopologyReader:
Inheritance graph
[legend]
Collaboration diagram for ns3::InetTopologyReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual NodeContainer Read (void)
 Main topology reading function.

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::InetTopologyReader.

Detailed Description

Topology file reader (Inet-format type).

This class takes an input file in Inet format and extracts all the informations needed to build the topology (i.e.number of nodes, links and links structure). It have been tested with Inet 3.0 http://topology.eecs.umich.edu/inet/

It might set a link attribute named "Weight", corresponding to the euclidean distance between two nodes, the nodes being randomly positioned.


Member Function Documentation

static TypeId ns3::InetTopologyReader::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::InetTopologyReader.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/LinkManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/SSManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/Classifier/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/NoiseModel/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/PropagationModel/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Mac/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Phy/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Transducer/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/LinkManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/SSManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/Classifier/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BandwidthManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BurstProfileManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/NoiseModel/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/PropagationModel/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/ConnectionManager/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/NoiseModel/$ns3::InetTopologyReader
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/PropagationModel/$ns3::InetTopologyReader

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::TopologyReader.

virtual NodeContainer ns3::InetTopologyReader::Read ( void   )  [virtual]

Main topology reading function.

This method opens an input stream and reads the Inet-format file. From the first line it takes the total number of nodes and links. Then discards a number of rows equals to total nodes (containing useless geographical informations). Then reads until the end of the file (total links number rows) and saves the structure of every single link in the topology.

Returns:
the container of the nodes created (or empty container if there was an error)

Implements ns3::TopologyReader.


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