Table of Contents

Interface INodeProcessor

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

Interface for nodes that can process data. Implement this to create nodes that transform input values to output values.

public interface INodeProcessor

Properties

AutoExecute

Gets whether this processor should auto-execute when inputs change.

bool AutoExecute { get; }

Property Value

bool

InputValues

Gets all input port values.

IReadOnlyDictionary<string, IPortValue> InputValues { get; }

Property Value

IReadOnlyDictionary<string, IPortValue>

IsValid

Gets whether this processor is currently valid (all required inputs connected).

bool IsValid { get; }

Property Value

bool

Node

Gets the node this processor is attached to.

Node Node { get; }

Property Value

Node

OutputValues

Gets all output port values.

IReadOnlyDictionary<string, IPortValue> OutputValues { get; }

Property Value

IReadOnlyDictionary<string, IPortValue>

Methods

Process()

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

void Process()