Class StateMachineNode<TState, TInput, TResult>
- Namespace
- LfrlAnvil.Computable.Automata
- Assembly
- LfrlAnvil.Computable.Automata.dll
Represents a single node of IStateMachine<TState, TInput, TResult>.
public sealed class StateMachineNode<TState, TInput, TResult> : IStateMachineNode<TState, TInput, TResult> where TState : notnull where TInput : notnull
Type Parameters
TState
State type.
TInput
Input type.
TResult
Result type.
- Inheritance
-
StateMachineNode<TState, TInput, TResult>
- Implements
-
IStateMachineNode<TState, TInput, TResult>
- Inherited Members
- Extension Methods
Properties
Transitions
Dictionary of available transitions from this state.
public IReadOnlyDictionary<TInput, IStateMachineTransition<TState, TInput, TResult>> Transitions { get; }
Property Value
- IReadOnlyDictionary<TInput, IStateMachineTransition<TState, TInput, TResult>>
Type
Type of this state.
public StateMachineNodeType Type { get; }
Property Value
Value
Value of this state.
public TState Value { get; }
Property Value
- TState
Methods
ToString()
Returns a string representation of this StateMachineNode<TState, TInput, TResult> instance.
[Pure]
public override string ToString()
Returns
- string
String representation.