* 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)
| 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 | } |
| 107483 | function flag(bit) { |
| 107484 | return function(state) { |
| 107485 | const f = this.flags; |
nothing calls this directly
no outgoing calls
no test coverage detected