ns-3
|
Topology file reader (Orbis-format type). More...
#include <orbis-topology-reader.h>
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::OrbisTopologyReader. |
Topology file reader (Orbis-format type).
This class takes an input file in Orbis 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 Orbis 0.70 http://www.sysnet.ucsd.edu/~pmahadevan/topo_research/topo.html
TypeId ns3::OrbisTopologyReader::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::OrbisTopologyReader.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::TopologyReader.
References ns3::TypeId::SetParent().
NodeContainer ns3::OrbisTopologyReader::Read | ( | void | ) | [virtual] |
Main topology reading function.
This method opens an input stream and reads the Orbis-format file. Every row represents a topology link (the ids of a couple of nodes), so the input file is read line by line to figure out how many links and nodes are in the topology.
Implements ns3::TopologyReader.
References ns3::NodeContainer::Add(), and NS_LOG_INFO.