Interface TopologyReader
- All Known Implementing Classes:
TopologyReaderBrite
public interface TopologyReader
An interface to be implemented by classes that read
a network graph (topology) from a file name with a specific format.
- Since:
- CloudSim Toolkit 1.0
- Author:
- Thomas Hohnstein
-
Method Summary
Modifier and Type Method Description TopologicalGraph
readGraphFile(InputStreamReader sreader)
Reads a file and creates anTopologicalGraph
object.TopologicalGraph
readGraphFile(String filename)
Reads a file and creates anTopologicalGraph
object.
-
Method Details
-
readGraphFile
Reads a file and creates anTopologicalGraph
object.- Parameters:
filename
- Name of the file to read- Returns:
- The created TopologicalGraph
- Throws:
UncheckedIOException
- when the file cannot be accessed
-
readGraphFile
Reads a file and creates anTopologicalGraph
object.- Parameters:
sreader
- theInputStreamReader
to read the file- Returns:
- The created TopologicalGraph
- Throws:
UncheckedIOException
- when the file cannot be accessed
-