| PushdownAutomatonTRegisterStateType Method (Type, FuncIPdaStateT) |
Registers a state type in the machine.
A pool for the type will be created which uses the given creationMethod to create new instance when needed.
Namespace:
Archon.SwissArmyLib.Automata
Assembly:
Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void RegisterStateType(
Type type,
Func<IPdaState<T>> creationMethod
)
Request Example
View SourceParameters
- type
- Type: SystemType
The state type to register. - creationMethod
- Type: SystemFuncIPdaStateT
The factory method to use for creating instances.
See Also