edu.stanford.nlp.parser.lexparser
Class Lattice

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.Lattice
All Implemented Interfaces:
Serializable, Iterable<LatticeEdge>

public class Lattice
extends Object
implements Serializable, Iterable<LatticeEdge>

See Also:
Serialized Form

Constructor Summary
Lattice()
           
 
Method Summary
 void addBoundary()
           
 void addConstraint(ParserConstraint c)
           
 void addEdge(LatticeEdge e)
           
 List<ParserConstraint> getConstraints()
           
 List<LatticeEdge> getEdgesOverSpan(int start, int end)
           
 int getNumEdges()
           
 int getNumNodes()
           
 Iterator<LatticeEdge> iterator()
           
 void setEdge(int id, LatticeEdge e)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lattice

public Lattice()
Method Detail

addEdge

public void addEdge(LatticeEdge e)

addConstraint

public void addConstraint(ParserConstraint c)

getNumNodes

public int getNumNodes()

getConstraints

public List<ParserConstraint> getConstraints()

getNumEdges

public int getNumEdges()

getEdgesOverSpan

public List<LatticeEdge> getEdgesOverSpan(int start,
                                          int end)

toString

public String toString()
Overrides:
toString in class Object

setEdge

public void setEdge(int id,
                    LatticeEdge e)

iterator

public Iterator<LatticeEdge> iterator()
Specified by:
iterator in interface Iterable<LatticeEdge>

addBoundary

public void addBoundary()


Stanford NLP Group