mirror of
https://github.com/nasa/openmct.git
synced 2025-01-29 15:43:52 +00:00
Added support for limits
This commit is contained in:
parent
1c40fa88ce
commit
09e79d38ff
@ -121,8 +121,17 @@ define([
|
||||
return capability.subscribe(callbackWrapper, request);
|
||||
};
|
||||
|
||||
LegacyTelemetryProvider.prototype.limitEvaluator = function () {
|
||||
console.error("function not implemented");
|
||||
LegacyTelemetryProvider.prototype.limitEvaluator = function (domainObject) {
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user