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
TIn1The first input type.
TIn2The second input type.
TOutThe 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
nodeNodeThe node.
combineFunc<TIn1, TIn2, TOut>The combination function.
input1PortIdstringThe first input port ID.
input2PortIdstringThe second input port ID.
outputPortIdstringThe 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()