|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.realize.Chart
The chart manages the creation of edges. Newly added edges are kept on an agenda prior to rule applications. A single chart instance per realization request is assumed.
Field Summary | |
Edge |
bestEdge
The best edge found so far (or null), where a complete edge is always given preference to an incomplete one. |
boolean |
done
Whether the realization request has been completed. |
EdgeFactory |
edgeFactory
The edge factory for the realization request. |
static int |
NO_TIME_LIMIT
A constant indicating no time limit on edge combination. |
java.io.PrintWriter |
out
The PrintWriter to use with the printing routines. |
long |
timeTilBest
The time in ms until the best edge was found. |
long |
timeTilDone
The time in ms until the search was finished. |
long |
timeTilFirst
The time in ms until the first complete edge was found. |
long |
timeTilStopped
The time in ms until the search was stopped. |
static boolean |
USE_INDEXING
Whether to use indexing to filter edges to combine. |
Constructor Summary | |
Chart(EdgeFactory edgeFactory)
Constructor. |
Method Summary | |
void |
combine(int timeLimitMS,
boolean waitForCompleteEdge)
Adds to the chart by iteratively moving an edge from the agenda to the chart, creating new edges for the agenda by applying available rules, while updating the best edge found so far, until done, or until the time limit (if any) is reached, or until the first complete edge is found (if beyond the time limit, and according to the given flag). |
void |
initialize()
Initializes the agenda. |
void |
printAgenda()
Prints the agenda. |
void |
printBestEdge()
Prints the best edge found. |
void |
printEdges()
Prints all chart edges, unsorted. |
void |
printEdges(boolean complete)
Prints chart edges unsorted, using the complete edges filter according to the given flag. |
void |
printEdges(boolean complete,
boolean sort)
Prints chart edges using the complete edges filter according to the given flag and sorting according to the given flag. |
void |
printInitialEdges()
Prints the initial edges. |
void |
printTiming()
Prints the timing info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean USE_INDEXING
public final EdgeFactory edgeFactory
public Edge bestEdge
public boolean done
public static final int NO_TIME_LIMIT
public long timeTilFirst
public long timeTilBest
public long timeTilStopped
public long timeTilDone
public java.io.PrintWriter out
Constructor Detail |
public Chart(EdgeFactory edgeFactory)
Method Detail |
public void initialize()
public void combine(int timeLimitMS, boolean waitForCompleteEdge)
public void printBestEdge()
public void printTiming()
public void printEdges()
public void printEdges(boolean complete)
public void printEdges(boolean complete, boolean sort)
public void printAgenda()
public void printInitialEdges()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |