Class TopologyReaderBrite
java.lang.Object
org.cloudbus.cloudsim.network.topologies.readers.TopologyReaderBrite
- All Implemented Interfaces:
TopologyReader
A network graph (topology) reader that creates a network topology from
a file in the BRITE format.
A BRITE file is structured as follows:
- Node-section: NodeID, xpos, ypos, indegree, outdegree, ASid, type(router/AS)
- Edge-section: EdgeID, fromNode, toNode, euclideanLength, linkDelay, linkBandwidth, AS_from, AS_to, type
- Since:
- CloudSim Toolkit 1.0
- Author:
- Thomas Hohnstein
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadGraphFile
(InputStreamReader reader) Reads a file and creates anTopologicalGraph
object.readGraphFile
(String filename) Reads a file and creates aTopologicalGraph
object.
-
Constructor Details
-
TopologyReaderBrite
public TopologyReaderBrite()
-
-
Method Details
-
readGraphFile
Description copied from interface:TopologyReader
Reads a file and creates aTopologicalGraph
object.- Specified by:
readGraphFile
in interfaceTopologyReader
- Parameters:
filename
- Name of the file to read- Returns:
- The created TopologicalGraph
-
readGraphFile
Description copied from interface:TopologyReader
Reads a file and creates anTopologicalGraph
object.- Specified by:
readGraphFile
in interfaceTopologyReader
- Parameters:
reader
- theInputStreamReader
to read the file- Returns:
- The created TopologicalGraph
-