Package de.saar.chorus.domgraph.chart
Class CompleteSplitSource
java.lang.Object
de.saar.chorus.domgraph.chart.SplitSource<SubgraphNonterminal>
de.saar.chorus.domgraph.chart.CompleteSplitSource
A split source which computes the complete list of
splits for a subgraph. A
ChartSolver which uses
an object of this class as its split source will compute
the set of all solved forms of the dominance graph.- Author:
- Alexander Koller
-
Field Summary
Fields inherited from class de.saar.chorus.domgraph.chart.SplitSource
graph -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeSplits(SubgraphNonterminal subgraph) Implement this abstract method when you write your own subclass ofSplitSource.makeToplevelSubgraph(Set<String> graph) voidReduces the computed RTG.Methods inherited from class de.saar.chorus.domgraph.chart.SplitSource
computePotentialFreeRoots, getGraph
-
Constructor Details
-
CompleteSplitSource
-
-
Method Details
-
computeSplits
public Iterator<Split<SubgraphNonterminal>> computeSplits(SubgraphNonterminal subgraph) throws UnsolvableSubgraphException Description copied from class:SplitSourceImplement this abstract method when you write your own subclass ofSplitSource. The method gets a subgraph as its argument, and has the task of computing an iterator over the splits of this subgraph.- Specified by:
computeSplitsin classSplitSource<SubgraphNonterminal>- Parameters:
subgraph- a subgraph- Returns:
- an iterator over some or all splits of this subgraph
- Throws:
UnsolvableSubgraphException
-
makeToplevelSubgraph
- Specified by:
makeToplevelSubgraphin classSplitSource<SubgraphNonterminal>
-
reduceIfNecessary
Description copied from class:SplitSourceReduces the computed RTG. If your split source is such that the RTG it computes is not automatically reduced, you should implement this method to call reduce() on the output RTG. This method is called as the last operation by the chart solver.- Specified by:
reduceIfNecessaryin classSplitSource<SubgraphNonterminal>- Parameters:
chart- the output RTG computed by the chart solver
-