Class StateTransitionHandler
- Namespace
- LfrlAnvil.Computable.Automata
- Assembly
- LfrlAnvil.Computable.Automata.dll
Creates instances of IStateTransitionHandler<TState, TInput, TResult> type.
public static class StateTransitionHandler
- Inheritance
-
StateTransitionHandler
- Inherited Members
Methods
Create<TState, TInput, TResult>(Func<StateTransitionHandlerArgs<TState, TInput, TResult>, TResult>)
Creates a new IStateTransitionHandler<TState, TInput, TResult> instance.
[Pure]
public static IStateTransitionHandler<TState, TInput, TResult> Create<TState, TInput, TResult>(Func<StateTransitionHandlerArgs<TState, TInput, TResult>, TResult> func) where TState : notnull where TInput : notnull
Parameters
func
Func<StateTransitionHandlerArgs<TState, TInput, TResult>, TResult>Handler's delegate.
Returns
- IStateTransitionHandler<TState, TInput, TResult>
New IStateTransitionHandler<TState, TInput, TResult> instance.
Type Parameters
TState
State type.
TInput
Input type.
TResult
Result type.