mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
Added support for limits
This commit is contained in:
@ -121,8 +121,17 @@ define([
|
|||||||
return capability.subscribe(callbackWrapper, request);
|
return capability.subscribe(callbackWrapper, request);
|
||||||
};
|
};
|
||||||
|
|
||||||
LegacyTelemetryProvider.prototype.limitEvaluator = function () {
|
LegacyTelemetryProvider.prototype.limitEvaluator = function (domainObject) {
|
||||||
console.error("function not implemented");
|
var oldObject = this.instantiate(
|
||||||
|
utils.toOldFormat(domainObject),
|
||||||
|
utils.makeKeyString(domainObject.identifier));
|
||||||
|
var limitEvaluator = oldObject.getCapability('limit');
|
||||||
|
|
||||||
|
return {
|
||||||
|
evaluate: function (datum, property) {
|
||||||
|
return limitEvaluator.evaluate(datum, property.key);
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return function (openmct, instantiate) {
|
return function (openmct, instantiate) {
|
||||||
|
Reference in New Issue
Block a user