Click or drag to resize

Archon.SwissArmyLib.Automata Namespace

Contains classes for state machines.
Classes
  ClassDescription
Public classBaseStateTMachine, TContext
Public classFiniteStateMachineT
A simple Finite State Machine with states as objects inspired by Prime31's excellent StateKit. If your state classes have an empty constructor, the state machine can create the states automatically when needed (using ChangeStateAutoTState). If not you should create the state instance yourself and register the state in the machine. Whether or not a null state is valid is up to your design.
Public classFsmStateT
Public classPdaStateT
Public classPushdownAutomatonT
A simple Pushdown Automaton with states as objects. If your state classes have an empty constructor, the state machine can register the states automatically when needed (using PushStateAutoTState and ChangeStateAutoTState). If not you should register the states yourself using RegisterStateTypeTState or RegisterStateType(Type, FuncIPdaStateT) and use the regular. The machine will automatically pool the states so you don't have to worry about it. Whether or popping the last state is valid is up to your design.
Interfaces