Table of Contents

Class CombineProcessor<TIn1, TIn2, TOut>

Namespace
FlowGraph.Core.DataFlow.Processors
Assembly
FlowGraph.Core.dll

A processor that combines two inputs into one output.

public class CombineProcessor<TIn1, TIn2, TOut> : NodeProcessor, INodeProcessor

Type Parameters

TIn1

The first input type.

TIn2

The second input type.

TOut

The output type.

Inheritance
CombineProcessor<TIn1, TIn2, TOut>
Implements
Inherited Members

Constructors

CombineProcessor(Node, Func<TIn1?, TIn2?, TOut?>, string, string, string)

Creates a new combine processor.

public CombineProcessor(Node node, Func<TIn1?, TIn2?, TOut?> combine, string input1PortId = "in1", string input2PortId = "in2", string outputPortId = "out")

Parameters

node Node

The node.

combine Func<TIn1, TIn2, TOut>

The combination function.

input1PortId string

The first input port ID.

input2PortId string

The second input port ID.

outputPortId string

The output port ID.

Properties

Input1Value

Gets the first input value.

public TIn1? Input1Value { get; }

Property Value

TIn1

Input2Value

Gets the second input value.

public TIn2? Input2Value { get; }

Property Value

TIn2

OutputValue

Gets the output value.

public TOut? OutputValue { get; }

Property Value

TOut

Methods

Process()

Processes inputs and updates outputs. Called automatically when any input changes (if auto-execute is enabled).

public override void Process()