Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NodeSpec

Specification for a single "node" in the dataflow graph. Nodes here are actually just wrappers of streams / subscriptions (or generally any form of {@link @thi.ng/rstream#ISubscribable}), usually with an associated transducer to transform / combine the inputs and produce values for the node's result stream.

The fn function is responsible to produce such a stream transformer construct. The keys used to specify inputs in the ins object are dictated by the actual node fn used. Most node functions with multiple inputs will be implemented as {@link @thi.ng/rstream#StreamSync} instances and the input IDs are used to locally rename input streams within the {@link @thi.ng/rstream#StreamSync} container.

Alo see initGraph and nodeFromSpec (in /src/nodes.ts) for more details how these specs are compiled into stream constructs.

Hierarchy

  • NodeSpec

Index

Properties

Properties

fn

fn: NodeFactory<any>

ins

ins: IObjectOf<NodeInputSpec>

Optional outs

outs: IObjectOf<NodeOutputSpec>

Generated using TypeDoc