Afa<TInput,TRegister> Class

Definition

A simpler form of AFA whose accumulator is a simple boolean indicating that the pattern has matched

public class Afa<TInput,TRegister> : Microsoft.StreamProcessing.Afa<TInput,TRegister,bool>
type Afa<'Input, 'Register> = class
    inherit Afa<'Input, 'Register, bool>
Public Class Afa(Of TInput, TRegister)
Inherits Afa(Of TInput, TRegister, Boolean)

Type Parameters

TInput

The event type.

TRegister

The register type.

Inheritance
Afa<TInput,TRegister,Boolean>
Afa<TInput,TRegister>

Constructors

Afa<TInput,TRegister>(TRegister)

Create a new instance of the simplified AFA

Fields

_isSealed

AFA is sealed or not.

(Inherited from Afa<TInput,TRegister,TAccumulator>)

Properties

StartState

Start state of the AFA.

(Inherited from Afa<TInput,TRegister,TAccumulator>)

Methods

AddEpsilonElementArc(Int32, Int32)

Adds an epsilon (no action) arc to the AFA

(Inherited from Afa<TInput,TRegister,TAccumulator>)
AddFinalState(Int32)

Add a final state to the AFA.

(Inherited from Afa<TInput,TRegister,TAccumulator>)
AddListElementArc(Int32, Int32, Expression<Func<Int64,List<TInput>,TRegister,Boolean>>, Expression<Func<Int64,List<TInput>,TRegister,TRegister>>)

Adds a transition to the AFA triggered by a list of concurrent elements

(Inherited from Afa<TInput,TRegister,TAccumulator>)
AddMultiElementArc(Int32, Int32, Expression<Func<Int64,TRegister, TAccumulator>>, Expression<Func<Int64,TInput,TRegister,TAccumulator, TAccumulator>>, Expression<Func<Int64,TInput,TAccumulator,Boolean>>, Expression<Func<Int64,TAccumulator,TRegister,Boolean>>, Expression<Func<Int64, TAccumulator,TRegister,TRegister>>, Expression<Action<TAccumulator>>)

Adds a transition that handles multiple elements (events) at a given timestamp

(Inherited from Afa<TInput,TRegister,TAccumulator>)
AddSingleElementArc(Int32, Int32, Expression<Func<Int64,TInput,TRegister,Boolean>>, Expression<Func<Int64,TInput,TRegister,TRegister>>)

Adds a transition to the AFA triggered by a single element

(Inherited from Afa<TInput,TRegister,TAccumulator>)
Clone()

Takes the current AFA object and performs a deep copy

(Inherited from Afa<TInput,TRegister,TAccumulator>)
RemoveFinalState(Int32)

Remove a final state from the AFA.

(Inherited from Afa<TInput,TRegister,TAccumulator>)
SetDefaultRegister(TRegister)

Set default value of register.

(Inherited from Afa<TInput,TRegister,TAccumulator>)
ToString()

Returns a string representation of the AFA

(Inherited from Afa<TInput,TRegister,TAccumulator>)

Applies to