Language

Afa<TInput,TRegister,TAccumulator>.AddSingleElementArc Method

Definition

Adds a transition to the AFA triggered by a single element

public void AddSingleElementArc(int fromState, int toState, System.Linq.Expressions.Expression<Func<long,TInput,TRegister,bool>> fence, System.Linq.Expressions.Expression<Func<long,TInput,TRegister,TRegister>> transfer = null);
member this.AddSingleElementArc : int * int * System.Linq.Expressions.Expression<Func<int64, 'Input, 'Register, bool>> * System.Linq.Expressions.Expression<Func<int64, 'Input, 'Register, 'Register>> -> unit
Public Sub AddSingleElementArc (fromState As Integer, toState As Integer, fence As Expression(Of Func(Of Long, TInput, TRegister, Boolean)), Optional transfer As Expression(Of Func(Of Long, TInput, TRegister, TRegister)) = null)

Parameters

fromState
Int32

Starting state of the transition

toState
Int32

Ending state of the transition

fence
Expression<Func<Int64,TInput,TRegister,Boolean>>

An added condition that must be met for the transition to occur

transfer
Expression<Func<Int64,TInput,TRegister,TRegister>>

An expression to mutate the register value when the transition occurs

Applies to