public class SGraphBRDecompositionAutomatonTopDown extends TreeAutomaton<SComponentRepresentation>
SComponentRepresentation
s as states.TreeAutomaton.BottomUpStateVisitor
D, DEBUG_STORE
Constructor and Description |
---|
SGraphBRDecompositionAutomatonTopDown(SGraph completeGraph,
GraphAlgebra algebra)
Initializes a decomposition automaton for
completeGraph with respect to algebra . |
Modifier and Type | Method and Description |
---|---|
Iterable<Rule> |
getRulesBottomUp(int labelId,
int[] childStates)
Finds automaton rules bottom-up for a given list of child states and a
given parent label.
|
Iterable<Rule> |
getRulesTopDown(int labelId,
int parentState)
Finds automaton rules top-down for a given parent state and label.
|
Set<SComponentRepresentation> |
getStoredConstantsForID(int labelID)
If this automaton has stored states for all the constants in its
signature, more precisely if hasStoredConstants() returns true, then this
returns the states corresponding to the constant described by the label
ID in the signature.
|
boolean |
isBottomUpDeterministic()
Determines whether the automaton is deterministic if read as a bottom-up
automaton.
|
boolean |
supportsBottomUpQueries() |
boolean |
supportsTopDownQueries() |
accepts, acceptsRaw, analyze, asConcreteTreeAutomaton, asConcreteTreeAutomatonBottomUp, asConcreteTreeAutomatonWithStringStates, countTrees, createRule, createRule, createRule, createRule, createRule, createRule, determinize, determinize, dumpToFile, equals, evaluateInSemiring, evaluateInSemiring, evaluateInSemiringTopDown, foreachRuleBottomUpForSets, foreachRuleTopDown, foreachStateInBottomUpOrder, getAllLabels, getAllRulesTopDown, getAllStates, getFinalStates, getIdForState, getLabelsTopDown, getNumberOfRules, getNumberOfSeenStates, getRandomRuleTree, getRandomRuleTreeFromInside, getRandomTree, getRandomTreeFromInside, getReachableStates, getRulesBottomUp, getRulesBottomUp, getRuleSet, getRulesForRhsState, getRulesTopDown, getRuleTree, getSignature, getStateForId, getStateInterner, getStatesInBottomUpOrder, getWeight, getWeightRaw, hasRuleWithPrefix, hasStoredConstants, homomorphism, inside, intersect, intersect, intersectBottomUp, intersectCondensed, intersectCondensed, intersectCondensed, intersectCondensedBottomUp, intersectCondensedBottomUp, intersectEarley, intersectViterbi, intersectViterbi, inverseCondensedHomomorphism, inverseHomomorphism, isCyclic, isEmpty, isStoring, language, languageIterable, languageIterator, languageIteratorRaw, languageRaw, makeAllRulesExplicit, newSiblingFinder, normalizeRuleWeights, outside, processAllRulesBottomUp, processAllRulesTopDown, reduceTopDown, run, run, runRaw, setRulePrintingFilter, setSkipFail, setStoring, sortedLanguageIterator, toString, toStringBottomUp, useSiblingFinder, viterbi, viterbiRaw, write
public SGraphBRDecompositionAutomatonTopDown(SGraph completeGraph, GraphAlgebra algebra)
completeGraph
with respect to algebra
.completeGraph
- algebra
- public Set<SComponentRepresentation> getStoredConstantsForID(int labelID)
TreeAutomaton
getStoredConstantsForID
in class TreeAutomaton<SComponentRepresentation>
public Iterable<Rule> getRulesTopDown(int labelId, int parentState)
TreeAutomaton
Note that not every method of TreeAutomaton is safely available in your
implementation of getRulesTopDown. Most notably, you can't use the
default implementation of TreeAutomaton.getAllStates()
, because that method
makes all rules of the automaton explicit and calls TreeAutomaton.getRulesTopDown(int, int)
in the process, leading to an infinite recursion.
getRulesTopDown
in class TreeAutomaton<SComponentRepresentation>
public boolean isBottomUpDeterministic()
TreeAutomaton
isBottomUpDeterministic
in class TreeAutomaton<SComponentRepresentation>
public Iterable<Rule> getRulesBottomUp(int labelId, int[] childStates)
TreeAutomaton
getRulesBottomUp
in class TreeAutomaton<SComponentRepresentation>
public boolean supportsBottomUpQueries()
supportsBottomUpQueries
in class TreeAutomaton<SComponentRepresentation>
public boolean supportsTopDownQueries()
supportsTopDownQueries
in class TreeAutomaton<SComponentRepresentation>
Copyright © 2017. All rights reserved.