ns-3
|
Topology file reader (Rocketfuel-format type). More...
#include <rocketfuel-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::RocketfuelTopologyReader. |
Topology file reader (Rocketfuel-format type).
http://www.cs.washington.edu/research/networking/rocketfuel/
May 2nd, 2010: Currently only support "weights" file and "cch" file. http://www.cs.washington.edu/research/networking/rocketfuel/maps/weights-dist.tar.gz http://www.cs.washington.edu/research/networking/rocketfuel/maps/rocketfuel_maps_cch.tar.gz
TypeId ns3::RocketfuelTopologyReader::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::RocketfuelTopologyReader.
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::RocketfuelTopologyReader::Read | ( | void | ) | [virtual] |
Main topology reading function.
This method opens an input stream and reads the Rocketfuel-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(), ns3::TopologyReader::GetFileName(), NS_LOG_INFO, and NS_LOG_WARN.