public class NondeletingInverseHomAutomaton<State> extends TreeAutomaton<Object>
TreeAutomaton.BottomUpStateVisitorD, DEBUG_STORE| Constructor and Description |
|---|
NondeletingInverseHomAutomaton(TreeAutomaton<State> rhsAutomaton,
Homomorphism hom) |
| Modifier and Type | Method and Description |
|---|---|
IntSet |
getAllStates()
Returns the IDs of all states in this automaton.
|
IntSet |
getFinalStates()
Returns the IDs of the final states of the automaton.
|
Iterable<Rule> |
getRulesBottomUp(int label,
int[] childStates)
Finds automaton rules bottom-up for a given list of child states and a
given parent label.
|
Set<Rule> |
getRulesBottomUpFromExplicitWithTermID(int termID,
int[] childStates) |
Set<Rule> |
getRulesTopDown(int label,
int parentState)
Finds automaton rules top-down for a given parent state and label.
|
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, getIdForState, getLabelsTopDown, getNumberOfRules, getNumberOfSeenStates, getRandomRuleTree, getRandomRuleTreeFromInside, getRandomTree, getRandomTreeFromInside, getReachableStates, getRulesBottomUp, getRulesBottomUp, getRuleSet, getRulesForRhsState, getRulesTopDown, getRuleTree, getSignature, getStateForId, getStateInterner, getStatesInBottomUpOrder, getStoredConstantsForID, 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, writepublic NondeletingInverseHomAutomaton(TreeAutomaton<State> rhsAutomaton, Homomorphism hom)
public IntSet getFinalStates()
TreeAutomatongetFinalStates in class TreeAutomaton<Object>public IntSet getAllStates()
TreeAutomatongetAllStates in class TreeAutomaton<Object>public Set<Rule> getRulesBottomUpFromExplicitWithTermID(int termID, int[] childStates)
public Iterable<Rule> getRulesBottomUp(int label, int[] childStates)
TreeAutomatongetRulesBottomUp in class TreeAutomaton<Object>public boolean supportsBottomUpQueries()
supportsBottomUpQueries in class TreeAutomaton<Object>public Set<Rule> getRulesTopDown(int label, 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<Object>public boolean supportsTopDownQueries()
supportsTopDownQueries in class TreeAutomaton<Object>public boolean isBottomUpDeterministic()
TreeAutomatonisBottomUpDeterministic in class TreeAutomaton<Object>Copyright © 2017. All rights reserved.