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

The set of all states More...

Inheritance diagram for System.Automata.States:
System.Automata.AcceptingStates

Public Member Functions

 States (int n)
 Initialize the set with n states name qi for each <![CDATA[i < n]]>. More...
 
 States (params State[] q)
 Initialize the set with the given states. More...
 
void Add (State q)
 Add a state to the set. More...
 
bool Contains (State q)
 Check if the state exists in the set More...
 
IEnumerator< StateGetEnumerator ()
 
override string ToString ()
 

Public Attributes

int Count => _states.Count
 
State this[int i] => _states[i]
 

Detailed Description

The set of all states

Constructor & Destructor Documentation

◆ States() [1/2]

System.Automata.States.States ( int  n)

Initialize the set with n states name qi for each <![CDATA[i < n]]>.

Parameters
nThe number of states

◆ States() [2/2]

System.Automata.States.States ( params State []  q)

Initialize the set with the given states.

Parameters
qThe states to include

Member Function Documentation

◆ Add()

void System.Automata.States.Add ( State  q)

Add a state to the set.

Parameters
qThe state to add

◆ Contains()

bool System.Automata.States.Contains ( State  q)

Check if the state exists in the set

Parameters
qThe state to check
Returns
True if it exists in the set.

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