Home | Trees | Indices | Help |
|
---|
|
object --+ | State
A thin wrapper around an object reference.
The state of the automaton corresponds to a position, or marked symbol, in the term tree. Because the same symbol may appear at multiple locations in the tree, and the distinction between these positions is critical, a State wrapper is provided to maintain distinct values.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
automaton Link to the Automaton to which the state belongs. |
|||
symbol Application-specific metadata identifying the symbol. |
|||
isUnorderedCatenation Indicate whether the state has subautomata for unordered catenation. |
|||
subAutomata A sequence of sub-automata supporting internal state transitions. |
|||
isInitialTrue iff this state may be the first state the automaton
enters.
|
|||
automatonEntryTransitions Return the set of initial transitions allowing entry to the automata through this state. |
|||
finalUpdate Return the update instructions that must be satisfied for this to be a final state. |
|||
transitionSet Definitions of viable transitions from this state. |
|||
Inherited from |
|
Create a FAC state.
|
Application-specific metadata identifying the symbol. See also match. |
Indicate whether the state has subautomata for unordered catenation. To reduce state explosion due to non-determinism, such a state executes internal transitions in subautomata until all terms have matched or a failure is discovered. |
A sequence of sub-automata supporting internal state transitions. This will return |
Return the set of initial transitions allowing entry to the automata through this state. These are structurally-permitted transitions only, and must be filtered based on the symbol that might trigger the transition. The results are not filtered based on counter value, since this value is used to determine how the containing automaton might be entered. Consequently the return value is the empty set unless this is an initial state. The returned set is closed under entry to sub-automata, i.e. it is guaranteed that each transition includes a consuming state even if it requires a multi-element chain of transitions into subautomata to reach one. |
Return the set of candidate transitions to enter a sub-automaton of this state.
|
|
Definitions of viable transitions from this state. The transition set of a state is a set of Transition nodes identifying a state reachable in a single step from this state, and a set of counter updates that must apply if the transition is taken. These transitions may not in themselves consume a symbol. For example, if the destination state represents a match of an unordered catenation of terms, then secondary processing must be done to traverse into the automata for those terms and identify transitions that include a symbol consumption. Note: Although conceptually the viable transitions are a set, this implementation maintains them in a list so that order is preserved when automata processing becomes non-deterministic. PyXB is careful to build the transition list so that the states are attempted in the order in which they appear in the schema that define the automata. |
Method invoked during automaton construction to set the legal transitions from the state. The set of transitions cannot be defined until all states that appear in it are available, so the creation of the automaton requires that the association of the transition set be delayed. (Though described as a set, the transitions are a list where order reflects priority.)
|
Return This may be overridden by subclasses when matching by equivalence does
not work. Alternatively, if the symbol stored in this node is a subclass
of SymbolMatch_mixin, then its match method will be used.
Otherwise
|
str(x)
|
|
automatonLink to the Automaton to which the state belongs.
|
symbolApplication-specific metadata identifying the symbol. See also match.
|
isUnorderedCatenationIndicate whether the state has subautomata for unordered catenation. To reduce state explosion due to non-determinism, such a state executes internal transitions in subautomata until all terms have matched or a failure is discovered.
|
subAutomataA sequence of sub-automata supporting internal state transitions. This will return
|
isInitial
|
automatonEntryTransitionsReturn the set of initial transitions allowing entry to the automata through this state. These are structurally-permitted transitions only, and must be filtered based on the symbol that might trigger the transition. The results are not filtered based on counter value, since this value is used to determine how the containing automaton might be entered. Consequently the return value is the empty set unless this is an initial state. The returned set is closed under entry to sub-automata, i.e. it is guaranteed that each transition includes a consuming state even if it requires a multi-element chain of transitions into subautomata to reach one.
|
finalUpdateReturn the update instructions that must be satisfied for this to be a final state.
|
transitionSetDefinitions of viable transitions from this state. The transition set of a state is a set of Transition nodes identifying a state reachable in a single step from this state, and a set of counter updates that must apply if the transition is taken. These transitions may not in themselves consume a symbol. For example, if the destination state represents a match of an unordered catenation of terms, then secondary processing must be done to traverse into the automata for those terms and identify transitions that include a symbol consumption.
Note: Although conceptually the viable transitions are a set, this implementation maintains them in a list so that order is preserved when automata processing becomes non-deterministic. PyXB is careful to build the transition list so that the states are attempted in the order in which they appear in the schema that define the automata. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 17 03:13:55 2013 | http://epydoc.sourceforge.net |