|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.parse.chart.Chart
public class Chart
A parse chart.
Constructor Summary | |
---|---|
Chart(int n)
|
Method Summary | |
---|---|
boolean |
add(Edge e,
int i,
int j)
|
boolean |
addPassiveEdges(java.util.Collection<? extends Edge> es,
int i,
int j)
|
int |
countActiveEdges()
Counts the number of active edges in the chart. |
int |
countPassiveEdges()
Counts the number of passive edges in the chart. |
java.util.Set<Edge> |
getActive(int i,
int j)
Get all the active edges in the (i,j) set. |
java.util.Set<Edge> |
getPassive(int i,
int j)
Get all the passive edges in the (i,j) set. |
int |
getSize()
Get the input length that this chart is for. |
void |
purgeActive()
Remove all active edges. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Chart(int n)
Method Detail |
---|
public boolean add(Edge e, int i, int j)
public boolean addPassiveEdges(java.util.Collection<? extends Edge> es, int i, int j)
public java.util.Set<Edge> getActive(int i, int j)
public java.util.Set<Edge> getPassive(int i, int j)
public int getSize()
public void purgeActive()
public int countPassiveEdges()
public int countActiveEdges()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |