public class Lattice extends Object implements Serializable, Iterable<LatticeEdge>
| Constructor and Description |
|---|
Lattice() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public void addEdge(LatticeEdge e)
public void addConstraint(ParserConstraint c)
public int getNumNodes()
public List<ParserConstraint> getConstraints()
public int getNumEdges()
public List<LatticeEdge> getEdgesOverSpan(int start, int end)
public void setEdge(int id,
LatticeEdge e)
public Iterator<LatticeEdge> iterator()
iterator in interface Iterable<LatticeEdge>public void addBoundary()