MCPcopy Create free account
hub / github.com/microsoft/SandDance / Operator

Function Operator

docs/app/js/sanddance-app.js:107473–107482  ·  view source on GitHub ↗

* An Operator is a processing node in a dataflow graph. * Each operator stores a value and an optional value update function. * Operators can accept a hash of named parameters. Parameter values can * either be direct (JavaScript literals, arrays, objects) or indirect * (other operators whose val

(init, update1, params, react)

Source from the content-addressed store, hash-verified

107471 * listen for changes to upstream operators included as parameters.
107472 * @see parameters
107473 */ function Operator(init, update1, params, react) {
107474 this.id = ++OP_ID;
107475 this.value = init;
107476 this.stamp = -1;
107477 this.rank = -1;
107478 this.qrank = -1;
107479 this.flags = 0;
107480 if (update1) this._update = update1;
107481 if (params) this.parameters(params, react);
107482}
107483function flag(bit) {
107484 return function(state) {
107485 const f = this.flags;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected