type MultiConfiguration
source code
object --+
|
Configuration_ABC --+
|
MultiConfiguration
Support parallel execution of state machine.
This holds a set of configurations, and executes each transition on
each one. Configurations which fail to accept a step are silently
dropped; only if this results in no remaining configurations will UnrecognizedSymbolError be raised. If a step admits
multiple valid transitions, a configuration is added for each one.
See pyxb.binding.content.AutomatonConfiguration for an
alternative solution which holds actions associated with the transition
until the non-determinism is resolved.
|
|
|
|
|
step(self,
symbol)
Execute an automaton transition using the given symbol. |
source code
|
|
|
|
__init__(self,
configuration)
(Constructor)
| source code
|
- Overrides:
object.__init__
- (inherited documentation)
|
Return the acceptable Symbols given the current configuration.
This method extracts the symbol from all candidate transitions that
are permitted based on the current counter values. Because transitions
are presented in a preferred order, the symbols are as well.
- Overrides:
Configuration_ABC.acceptableSymbols
- (inherited documentation)
|
Execute an automaton transition using the given symbol.
- Parameters:
- Returns:
- The new configuration resulting from the step.
- Raises:
- Overrides:
Configuration_ABC.step
- (inherited documentation)
|
Return the set of configurations that are in an accepting state.
Note that some of the configurations may be within a sub-automaton;
their presence in the return value is because the root configuration is
also accepting.
|