* 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)
| 76949 | */ |
| 76950 | |
| 76951 | function 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 | |
| 76966 | var prototype = Operator.prototype; |
| 76967 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected