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

Function Operator

docs/tests/v2/es6/js/sanddance.js:76951–76964  ·  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, update, params, react)

Source from the content-addressed store, hash-verified

76949 */
76950
76951function Operator(init, update, params, react) {
76952 this.id = ++OP_ID;
76953 this.value = init;
76954 this.stamp = -1;
76955 this.rank = -1;
76956 this.qrank = -1;
76957 this.flags = 0;
76958
76959 if (update) {
76960 this._update = update;
76961 }
76962
76963 if (params) this.parameters(params, react);
76964}
76965
76966var prototype = Operator.prototype;
76967/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected