mascoptLib.io.graph
Class PathNetReader
java.lang.Object
mascoptLib.io.graph.NetReader
mascoptLib.io.graph.PathNetReader
- All Implemented Interfaces:
- ReaderInterface
- public class PathNetReader
- extends NetReader
- implements ReaderInterface
This class enables one to read the path files.
Assumes the path file is in the following format
for each demand
Source Dest Length Size Src-to- Dest
Works for directed graphs and paths
Method Summary |
Vector |
getPaths()
Return the paths read in the second file. |
PathNetReader
public PathNetReader(String fileNet,
String filePath)
- Creates a reader on an NET file.
- Parameters:
fileNet
- the file to read containing the network.filePath
- the file to read containing the paths.
getPaths
public Vector getPaths()
- Return the paths read in the second file.
- Returns:
- a Vector containins AbstractChains.