mascoptLib.io.graph
Class NetReader

java.lang.Object
  extended bymascoptLib.io.graph.NetReader
All Implemented Interfaces:
ReaderInterface
Direct Known Subclasses:
PathNetReader

public class NetReader
extends Object
implements ReaderInterface

Reads a net file.


Constructor Summary
NetReader(String fileIn)
          Creates a reader on an NET file.
NetReader(String fileIn, boolean mirrorArc, boolean mirrorRequest)
          Creates a reader on an MGL file validating the DTD or not.
 
Method Summary
 Iterator getAbstractChains()
          Gives an iterator on AbstractChains read.
 Iterator getAbstractEdges()
          Gives an iterator on AbstractEdges read.
 Iterator getAbstractEdgeSets()
          Gives an iterator on AbstractEdgeSets read.
 Iterator getAbstractGraphs()
          Gives an iterator on AbstractGraphs read.
 Iterator getAbstractNodes()
          Gives an iterator on AbstractNodes read.
 Iterator getAbstractNodeSets()
          Gives an iterator on AbstractNodeSets read.
 Iterator getAllObjects()
          Gives an iterator on other objects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetReader

public NetReader(String fileIn)
Creates a reader on an NET file.


NetReader

public NetReader(String fileIn,
                 boolean mirrorArc,
                 boolean mirrorRequest)
Creates a reader on an MGL file validating the DTD or not.

Parameters:
mirrorArc - say if arcs have to be mirrored.
mirrorRequest - say if requests have to be mirrored.
Method Detail

getAbstractNodes

public Iterator getAbstractNodes()
Description copied from interface: ReaderInterface
Gives an iterator on AbstractNodes read.

Specified by:
getAbstractNodes in interface ReaderInterface
Returns:
an iterator.

getAbstractEdges

public Iterator getAbstractEdges()
Description copied from interface: ReaderInterface
Gives an iterator on AbstractEdges read.

Specified by:
getAbstractEdges in interface ReaderInterface
Returns:
an iterator.

getAbstractNodeSets

public Iterator getAbstractNodeSets()
Description copied from interface: ReaderInterface
Gives an iterator on AbstractNodeSets read.

Specified by:
getAbstractNodeSets in interface ReaderInterface
Returns:
an iterator.

getAbstractEdgeSets

public Iterator getAbstractEdgeSets()
Description copied from interface: ReaderInterface
Gives an iterator on AbstractEdgeSets read.

Specified by:
getAbstractEdgeSets in interface ReaderInterface
Returns:
an iterator.

getAbstractChains

public Iterator getAbstractChains()
Description copied from interface: ReaderInterface
Gives an iterator on AbstractChains read.

Specified by:
getAbstractChains in interface ReaderInterface
Returns:
an iterator.

getAbstractGraphs

public Iterator getAbstractGraphs()
Description copied from interface: ReaderInterface
Gives an iterator on AbstractGraphs read.

Specified by:
getAbstractGraphs in interface ReaderInterface
Returns:
an iterator.

getAllObjects

public Iterator getAllObjects()
Description copied from interface: ReaderInterface
Gives an iterator on other objects. We can imagine that some reader and writer implements the store of some special objects. This method provides a way to get this object via a generic method.

Specified by:
getAllObjects in interface ReaderInterface
Returns:
an iterator.