edu.upenn.cis.ptb.util
Class PTBTask

java.lang.Object
  extended byedu.upenn.cis.ptb.util.PTBTask

public class PTBTask
extends java.lang.Object

Utility class for iterating over the PTB.

   ....
   for(PTBTask task = new PTBTask(ptbRoot); task.hasNext(); ){
      PTBTreeNode root = task.next();
      ....
  }
  

Since:
0.2.3
Author:
nikhild

Constructor Summary
PTBTask(java.lang.String ptbRoot)
          Creates a new instance of PTBTask
 
Method Summary
 int getFileNo()
           
 java.lang.String getFileNoStr()
           
 int getSecNo()
           
 java.lang.String getSecNoStr()
           
 boolean hasNext()
           
 PTBTreeNode next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTBTask

public PTBTask(java.lang.String ptbRoot)
Creates a new instance of PTBTask

Method Detail

hasNext

public boolean hasNext()

next

public PTBTreeNode next()
                 throws java.io.IOException
Throws:
java.io.IOException

getSecNo

public int getSecNo()

getSecNoStr

public java.lang.String getSecNoStr()

getFileNo

public int getFileNo()

getFileNoStr

public java.lang.String getFileNoStr()