Class StateMachineTransition<TState, TInput, TResult>
- Namespace
- LfrlAnvil.Computable.Automata
- Assembly
- LfrlAnvil.Computable.Automata.dll
Represents a transition to the specified IStateMachineNode<TState, TInput, TResult>.
public sealed class StateMachineTransition<TState, TInput, TResult> : IStateMachineTransition<TState, TInput, TResult> where TState : notnull where TInput : notnull
Type Parameters
TState
State type.
TInput
Input type.
TResult
Result type.
- Inheritance
-
StateMachineTransition<TState, TInput, TResult>
- Implements
-
IStateMachineTransition<TState, TInput, TResult>
- Inherited Members
Properties
Destination
Destination state.
public IStateMachineNode<TState, TInput, TResult> Destination { get; }
Property Value
- IStateMachineNode<TState, TInput, TResult>
Handler
Optional handler invoked during the transition to Destination.
public IStateTransitionHandler<TState, TInput, TResult>? Handler { get; }
Property Value
- IStateTransitionHandler<TState, TInput, TResult>
Methods
ToString()
Returns a string representation of this StateMachineTransition<TState, TInput, TResult> instance.
[Pure]
public override string ToString()
Returns
- string
String representation.