leila.patterns
Class LinearLinkageFile

java.lang.Object
  extended by leila.patterns.LinearLinkageFile
All Implemented Interfaces:
java.lang.Iterable<LinearLinkage>, java.util.Iterator<LinearLinkage>

public class LinearLinkageFile
extends java.lang.Object
implements java.lang.Iterable<LinearLinkage>, java.util.Iterator<LinearLinkage>

This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).

LinearLinkageFile represents an LL-file (the non-grammatical parts of the corpus). The class provides an Iterator over the LinearLinkages.


Field Summary
protected  java.io.BufferedReader in
          Holds the Reader
 
Constructor Summary
LinearLinkageFile(java.io.File inf)
          Constructs a LinearLinkageFile from a file
 
Method Summary
 boolean hasNext()
          TRUE if there is another Linkage
 java.util.Iterator<LinearLinkage> iterator()
          Returns this
static java.io.File llFile(java.io.File f)
          Returns the LL-filename for an HTML-filename
 LinearLinkage next()
          Returns next Linkage
 void remove()
          Does nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected java.io.BufferedReader in
Holds the Reader

Constructor Detail

LinearLinkageFile

public LinearLinkageFile(java.io.File inf)
                  throws java.lang.Exception
Constructs a LinearLinkageFile from a file

Throws:
java.lang.Exception
Method Detail

iterator

public java.util.Iterator<LinearLinkage> iterator()
Returns this

Specified by:
iterator in interface java.lang.Iterable<LinearLinkage>

hasNext

public boolean hasNext()
TRUE if there is another Linkage

Specified by:
hasNext in interface java.util.Iterator<LinearLinkage>

remove

public void remove()
Does nothing

Specified by:
remove in interface java.util.Iterator<LinearLinkage>

next

public LinearLinkage next()
Returns next Linkage

Specified by:
next in interface java.util.Iterator<LinearLinkage>

llFile

public static java.io.File llFile(java.io.File f)
Returns the LL-filename for an HTML-filename