mascoptLib.io.graph
Class PathNetReader

java.lang.Object
  extended bymascoptLib.io.graph.NetReader
      extended bymascoptLib.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


Constructor Summary
PathNetReader(String fileNet, String filePath)
          Creates a reader on an NET file.
 
Method Summary
 Vector getPaths()
          Return the paths read in the second file.
 
Methods inherited from class mascoptLib.io.graph.NetReader
getAbstractChains, getAbstractEdges, getAbstractEdgeSets, getAbstractGraphs, getAbstractNodes, getAbstractNodeSets, getAllObjects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mascoptLib.io.ReaderInterface
getAbstractChains, getAbstractEdges, getAbstractEdgeSets, getAbstractGraphs, getAbstractNodes, getAbstractNodeSets, getAllObjects
 

Constructor Detail

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.
Method Detail

getPaths

public Vector getPaths()
Return the paths read in the second file.

Returns:
a Vector containins AbstractChains.