Automata  1.0
Public Member Functions | Public Attributes | Protected Attributes | List of all members
System.Automata.TransitionFunction Class Reference

A deterministic collection of state transition mappings. More...

Inheritance diagram for System.Automata.TransitionFunction:
System.Automata.NondeterministicTransitionFunction

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< TransitionGetEnumerator ()
 

Public Attributes

int Count => Trans.Count
 
Transition this[State p, char s] => Get(p, s)
 Get the next state Transition More...
 

Protected Attributes

List< TransitionTrans
 

Detailed Description

A deterministic collection of state transition mappings.

Member Function Documentation

◆ Add()

void System.Automata.TransitionFunction.Add ( Transition  t)

Add a transition to the function

Parameters
tThe transition to add
Exceptions
NullReferenceExceptionIf a transition has a null state
ArgumentExceptionIf a null transition (using EmptyString) was added

Not thread safe! Do not use after adding the function to an automaton.

Member Data Documentation

◆ this[State p, char s]

Transition System.Automata.TransitionFunction.this[State p, char s] => Get(p, s)

Get the next state Transition

Parameters
pThe current state
sThe current input character

The documentation for this class was generated from the following file: