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 with a specific format.
- Since:
- CloudSim Toolkit 1.0
- Author:
- Thomas Hohnstein
-
Method Summary
Modifier and TypeMethodDescriptionreadGraphFile
(InputStreamReader reader) Reads a file and creates anTopologicalGraph
object.readGraphFile
(String filename) Reads a file and creates aTopologicalGraph
object.
-
Method Details
-
readGraphFile
Reads a file and creates aTopologicalGraph
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:
reader
- theInputStreamReader
to read the file- Returns:
- The created TopologicalGraph
- Throws:
UncheckedIOException
- when the file cannot be accessed
-