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 Details

    • readGraphFile

      TopologicalGraph readGraphFile​(java.lang.String filename)
      Reads a file and creates an TopologicalGraph object.
      Parameters:
      filename - Name of the file to read
      Returns:
      The created TopologicalGraph
      Throws:
      java.io.UncheckedIOException - when the file cannot be accessed
    • readGraphFile

      TopologicalGraph readGraphFile​(java.io.InputStreamReader sreader)
      Reads a file and creates an TopologicalGraph object.
      Parameters:
      sreader - the InputStreamReader to read the file
      Returns:
      The created TopologicalGraph
      Throws:
      java.io.UncheckedIOException - when the file cannot be accessed