mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 09:58:52 +00:00
Merge branch 'telemetry-criterion' of https://github.com/nasa/openmct into conditionSet-with-classes
This commit is contained in:
commit
ff2bc41317
@ -27,10 +27,9 @@ export default class TelemetryCriterion extends EventEmitter {
|
||||
/**
|
||||
* Subscribes/Unsubscribes to telemetry and emits the result
|
||||
* of operations performed on the telemetry data returned and a given input value.
|
||||
* @param {
|
||||
* id: uuid, operation: enum, input: Array, metaDataKey: string, key: {domainObject.identifier}
|
||||
* }
|
||||
* @constructor
|
||||
* @param telemetryDomainObjectDefinition {id: uuid, operation: enum, input: Array, metaDataKey: string, key: {domainObject.identifier} }
|
||||
* @param openmct
|
||||
*/
|
||||
constructor(telemetryDomainObjectDefinition, openmct) {
|
||||
super();
|
||||
@ -42,7 +41,7 @@ export default class TelemetryCriterion extends EventEmitter {
|
||||
this.subscription = null;
|
||||
this.telemetryMetadata = null;
|
||||
this.telemetryObjectIdAsString = null;
|
||||
this.objectAPI.get(this.objectAPI.makeKeyString(telemetryDomainObjectDefinition.key)).then(this.initialize);
|
||||
this.objectAPI.get(this.objectAPI.makeKeyString(telemetryDomainObjectDefinition.key)).then((obj) => this.initialize(obj));
|
||||
}
|
||||
|
||||
initialize(obj) {
|
||||
|
Loading…
Reference in New Issue
Block a user