Interface StateMachine
- Namespace
- Automatonymous
- Assembly
- Automatonymous.dll
A state machine definition
public interface StateMachine : Visitable, IProbeSite- Inherited Members
Properties
Events
The events defined in the state machine
IEnumerable<Event> Events { get; }Property Value
Final
The final state of a state machine instance
State Final { get; }Property Value
Initial
The initial state of a new state machine instance
State Initial { get; }Property Value
InstanceType
The instance type associated with the state machine
Type InstanceType { get; }Property Value
Name
The name of the state machine (defaults to the state machine type name)
string Name { get; }Property Value
States
The states defined in the state machine
IEnumerable<State> States { get; }Property Value
Methods
GetEvent(string)
Returns the event requested
Event GetEvent(string name)Parameters
- namestring
Returns
GetState(string)
Returns the state requested
State GetState(string name)Parameters
- namestring
Returns
NextEvents(State)
The valid events that can be raised during the specified state
IEnumerable<Event> NextEvents(State state)Parameters
- stateState
- The state to query 
Returns
- IEnumerable<Event>
- An enumeration of valid events