TopologyReader

public interface TopologyReader

An interface to be implemented by classes that read a network graph (topology) from a file name with a specific format.

Author:Thomas Hohnstein

Methods

readGraphFile

TopologicalGraph readGraphFile(String filename)

Reads a file and creates an TopologicalGraph object.

Parameters:
  • filename – Name of the file to read
Throws:
  • IOException – when the file cannot be accessed
Returns:

The created TopologicalGraph

readGraphFile

TopologicalGraph readGraphFile(InputStreamReader streamReader)

Reads a file and creates an TopologicalGraph object.

Parameters:
Throws:
  • IOException – when the file cannot be accessed
Returns:

The created TopologicalGraph