PythonDataflowEngine
Classes
PythonDataflowEngine<Schemes>
DataflowEngine is a plugin that integrates Dataflow with NodeEditor making it easy to use. Additionally, it provides a cache for the data of each node in order to avoid recurring calculations.
Priority
10
Listens
nodecreated
Listens
noderemoved
Extends
Scope
<never
, [Root
<Schemes
>]>
Type Parameters
• Schemes extends PythonDataflowEngineScheme
Constructors
new PythonDataflowEngine()
Parameters
• configure?: Configure
<Schemes
>
Returns
PythonDataflowEngine
<Schemes
>
Overrides
`Scope<
never,
[Root
.constructor`
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:34
Properties
__scope
parents
produces
Inherited from
Scope.__scope
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:49
cache
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:30
dataflow?
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:29
editor
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:28
name
Inherited from
Scope.name
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:46
parent?
Inherited from
Scope.parent
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:48
signal
Inherited from
Scope.signal
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:47
Methods
addPipe()
Parameters
• middleware: Pipe
<Root
<Schemes
>>
Returns
void
Inherited from
Scope.addPipe
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:54
emit()
Type Parameters
• C extends never
Parameters
• context: C
Returns
Promise
<undefined
>
Inherited from
Scope.emit
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:59
fetch()
Fetches output data of the node
Parameters
• nodeId: string
Node id to fetch data from
Returns
Throws
Cancelled
when reset
is called while fetching data
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:126
fetchInputs()
Fetches input data for the node by fetching data for all its predecessors recursively.
Parameters
• nodeId: string
Node id to fetch input data for
Returns
Throws
Cancelled when
reset` is called while fetching data
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:117
hasParent()
Returns
boolean
Inherited from
Scope.hasParent
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:60
parentScope()
parentScope()
Type Parameters
• T extends Root
<Schemes
>
• P extends []
Returns
Scope
<T
, P
>
Inherited from
Scope.parentScope
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:61
parentScope(type)
Type Parameters
• T
Parameters
• type: Type
<T
>
Returns
T
Inherited from
Scope.parentScope
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:62
reset()
Resets the cache of the node and all its predecessors.
Parameters
• nodeId?: string
Node id to reset. If not specified, all nodes will be reset.
• alreadyResetNodes?: Set
<string
> = ...
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:93
setParent()
Parameters
• scope: Scope
<Root
<Schemes
>, []>
Returns
void
Overrides
Scope.setParent
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:48
use()
Type Parameters
• S extends Scope
<any
, any
[]>
Parameters
• scope: NestedScope
<S
, [never
, Root
<Schemes
>]>
Returns
object
debug()
Type Parameters
• T extends []
Parameters
• _f
Returns
void
Inherited from
Scope.use
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:55
Type Aliases
PythonDataflowEngineScheme
Defined in
tmp/graph-editor/src/lib/graph-editor/engine/PythonDataflowEngine.ts:9