sem.graphreader
Class CnCGraphReader

java.lang.Object
  extended by sem.graphreader.CnCGraphReader
All Implemented Interfaces:
GraphReader

public class CnCGraphReader
extends java.lang.Object
implements GraphReader

Graph reader for the C&C parser format.

For more info: http://svn.ask.it.usyd.edu.au/trac/candc


Constructor Summary
CnCGraphReader(java.lang.String inputPath)
           
 
Method Summary
 void close()
          Close the reader.
 boolean hasNext()
          Check whether there is another graph available.
static void main(java.lang.String[] args)
           
 Graph next()
          Get the next graph.
 java.util.ArrayList<Graph> nextSentence()
          Get the next sentence.
 void reset()
          Reset the reader.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CnCGraphReader

public CnCGraphReader(java.lang.String inputPath)
               throws GraphFormatException
Throws:
GraphFormatException
Method Detail

hasNext

public boolean hasNext()
Check whether there is another graph available.

Specified by:
hasNext in interface GraphReader
Returns:
True if there is at least one more graph, false otherwise.

next

public Graph next()
           throws GraphFormatException
Get the next graph.

Specified by:
next in interface GraphReader
Returns:
The next graph.
Throws:
GraphFormatException

nextSentence

public java.util.ArrayList<Graph> nextSentence()
                                        throws GraphFormatException
Get the next sentence.

Specified by:
nextSentence in interface GraphReader
Returns:
The next sentence.
Throws:
GraphFormatException

reset

public void reset()
           throws GraphFormatException
Reset the reader.

Specified by:
reset in interface GraphReader
Throws:
GraphFormatException

close

public void close()
Close the reader.

Specified by:
close in interface GraphReader

main

public static void main(java.lang.String[] args)