|
Automata
1.0
|
A deterministic collection of state transition mappings. More...
Public Member Functions | |
| TransitionFunction (params Transition[] t) | |
| void | Add (Transition t) |
| Add a transition to the function More... | |
| bool | Contains (Transition t) |
| bool | Exists (Predicate< Transition > p) |
| IEnumerator< Transition > | GetEnumerator () |
Public Attributes | |
| int | Count => Trans.Count |
| Transition | this[State p, char s] => Get(p, s) |
| Get the next state Transition More... | |
Protected Attributes | |
| List< Transition > | Trans |
A deterministic collection of state transition mappings.
| void System.Automata.TransitionFunction.Add | ( | Transition | t | ) |
Add a transition to the function
| t | The transition to add |
| NullReferenceException | If a transition has a null state |
| ArgumentException | If a null transition (using EmptyString) was added |
Not thread safe! Do not use after adding the function to an automaton.
| Transition System.Automata.TransitionFunction.this[State p, char s] => Get(p, s) |
Get the next state Transition
| p | The current state |
| s | The current input character |
1.8.14