aes70 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog +14 -1
- package/dist/AES70.es5.js +1 -1
- package/package.json +1 -1
- package/src/OCP1/OcaBlockMember.js +1 -1
- package/src/OCP1/OcaClassAuthorityID.js +1 -1
- package/src/OCP1/OcaClassIdentification.js +1 -1
- package/src/OCP1/OcaDBr.js +1 -1
- package/src/OCP1/OcaDelayValue.js +1 -1
- package/src/OCP1/OcaEvent.js +1 -1
- package/src/OCP1/OcaEventID.js +1 -1
- package/src/OCP1/OcaGlobalTypeIdentifier.js +1 -1
- package/src/OCP1/OcaGrouperCitizen.js +1 -1
- package/src/OCP1/OcaGrouperEnrollment.js +1 -1
- package/src/OCP1/OcaGrouperGroup.js +1 -1
- package/src/OCP1/OcaGrouperStatusChangeEventData.js +1 -3
- package/src/OCP1/OcaImpedance.js +1 -1
- package/src/OCP1/OcaLibParamSetAssignment.js +1 -1
- package/src/OCP1/OcaLibVol.js +1 -1
- package/src/OCP1/OcaLibVolChangedEventData.js +1 -3
- package/src/OCP1/OcaLibVolData_ParamSet.js +1 -1
- package/src/OCP1/OcaLibVolIdentifier.js +1 -1
- package/src/OCP1/OcaLibVolMetadata.js +1 -1
- package/src/OCP1/OcaLibVolType.js +1 -1
- package/src/OCP1/OcaLibraryIdentifier.js +1 -1
- package/src/OCP1/OcaManagerDescriptor.js +1 -1
- package/src/OCP1/OcaMediaClockRate.js +1 -1
- package/src/OCP1/OcaMediaCoding.js +1 -1
- package/src/OCP1/OcaMediaConnection.js +1 -1
- package/src/OCP1/OcaMediaConnectorElement.js +2 -2
- package/src/OCP1/OcaMediaConnectorStatus.js +1 -1
- package/src/OCP1/OcaMediaConnectorStatusChangedEventData.js +1 -3
- package/src/OCP1/OcaMediaSinkConnector.js +1 -1
- package/src/OCP1/OcaMediaSinkConnectorChangedEventData.js +1 -3
- package/src/OCP1/OcaMediaSourceConnector.js +1 -1
- package/src/OCP1/OcaMediaSourceConnectorChangedEventData.js +1 -3
- package/src/OCP1/OcaMethod.js +1 -1
- package/src/OCP1/OcaMethodID.js +1 -1
- package/src/OCP1/OcaModelDescription.js +1 -1
- package/src/OCP1/OcaModelGUID.js +1 -1
- package/src/OCP1/OcaNetworkStatistics.js +1 -1
- package/src/OCP1/OcaNetworkSystemInterfaceDescriptor.js +1 -1
- package/src/OCP1/OcaNetworkSystemInterfaceID.js +1 -1
- package/src/OCP1/OcaOPath.js +1 -1
- package/src/OCP1/OcaObjectIdentification.js +1 -1
- package/src/OCP1/OcaObjectListEventData.js +1 -3
- package/src/OCP1/OcaObjectSearchResult.js +1 -1
- package/src/OCP1/OcaObservationEventData.js +1 -3
- package/src/OCP1/OcaObservationListEventData.js +1 -3
- package/src/OCP1/OcaParameterMask.js +3 -0
- package/src/OCP1/OcaPilotToneDetectorSpec.js +1 -1
- package/src/OCP1/OcaPort.js +1 -1
- package/src/OCP1/OcaPortID.js +1 -1
- package/src/OCP1/OcaPositionDescriptor.js +3 -3
- package/src/OCP1/OcaPositionDescriptorFieldFlags.js +3 -0
- package/src/OCP1/OcaProperty.js +1 -1
- package/src/OCP1/OcaPropertyDescriptor.js +1 -1
- package/src/OCP1/OcaPropertyID.js +1 -1
- package/src/OCP1/OcaProtoObjectIdentification.js +1 -1
- package/src/OCP1/OcaProtoPort.js +1 -1
- package/src/OCP1/OcaProtoPortID.js +1 -1
- package/src/OCP1/OcaProtoSignalPath.js +1 -1
- package/src/OCP1/OcaSignalPath.js +1 -1
- package/src/OCP1/OcaStream.js +1 -1
- package/src/OCP1/OcaStreamConnectorIdentification.js +1 -1
- package/src/OCP1/OcaTask.js +1 -1
- package/src/OCP1/OcaTaskStateChangedEventData.js +1 -1
- package/src/OCP1/OcaTaskStatus.js +1 -1
- package/src/OCP1/OcaTimePTP.js +1 -1
- package/src/OCP1/OcaTransferFunction.js +1 -1
- package/src/OCP1/OcaVersion.js +1 -1
- package/src/controller/ControlClasses/OcaActuator.d.ts +3 -1
- package/src/controller/ControlClasses/OcaActuator.js +3 -1
- package/src/controller/ControlClasses/OcaAgent.d.ts +10 -7
- package/src/controller/ControlClasses/OcaAgent.js +12 -8
- package/src/controller/ControlClasses/OcaApplicationNetwork.d.ts +35 -21
- package/src/controller/ControlClasses/OcaApplicationNetwork.js +43 -32
- package/src/controller/ControlClasses/OcaAudioLevelSensor.d.ts +14 -8
- package/src/controller/ControlClasses/OcaAudioLevelSensor.js +13 -9
- package/src/controller/ControlClasses/OcaAudioProcessingManager.d.ts +3 -2
- package/src/controller/ControlClasses/OcaAudioProcessingManager.js +3 -2
- package/src/controller/ControlClasses/OcaBitstringActuator.d.ts +11 -8
- package/src/controller/ControlClasses/OcaBitstringActuator.js +13 -9
- package/src/controller/ControlClasses/OcaBitstringSensor.d.ts +7 -5
- package/src/controller/ControlClasses/OcaBitstringSensor.js +9 -6
- package/src/controller/ControlClasses/OcaBlock.d.ts +88 -74
- package/src/controller/ControlClasses/OcaBlock.js +80 -63
- package/src/controller/ControlClasses/OcaBlockFactory.d.ts +73 -29
- package/src/controller/ControlClasses/OcaBlockFactory.js +69 -42
- package/src/controller/ControlClasses/OcaBooleanActuator.d.ts +5 -4
- package/src/controller/ControlClasses/OcaBooleanActuator.js +6 -4
- package/src/controller/ControlClasses/OcaBooleanSensor.d.ts +3 -3
- package/src/controller/ControlClasses/OcaBooleanSensor.js +4 -3
- package/src/controller/ControlClasses/OcaCodingManager.d.ts +10 -7
- package/src/controller/ControlClasses/OcaCodingManager.js +17 -13
- package/src/controller/ControlClasses/OcaControlNetwork.d.ts +4 -5
- package/src/controller/ControlClasses/OcaControlNetwork.js +5 -6
- package/src/controller/ControlClasses/OcaCurrentSensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaCurrentSensor.js +4 -3
- package/src/controller/ControlClasses/OcaDelay.d.ts +6 -5
- package/src/controller/ControlClasses/OcaDelay.js +6 -4
- package/src/controller/ControlClasses/OcaDelayExtended.d.ts +18 -15
- package/src/controller/ControlClasses/OcaDelayExtended.js +17 -12
- package/src/controller/ControlClasses/OcaDeviceManager.d.ts +56 -31
- package/src/controller/ControlClasses/OcaDeviceManager.js +75 -51
- package/src/controller/ControlClasses/OcaDeviceTimeManager.d.ts +33 -16
- package/src/controller/ControlClasses/OcaDeviceTimeManager.js +36 -18
- package/src/controller/ControlClasses/OcaDiagnosticManager.d.ts +6 -3
- package/src/controller/ControlClasses/OcaDiagnosticManager.js +8 -5
- package/src/controller/ControlClasses/OcaDynamics.d.ts +89 -61
- package/src/controller/ControlClasses/OcaDynamics.js +101 -79
- package/src/controller/ControlClasses/OcaDynamicsCurve.d.ts +77 -30
- package/src/controller/ControlClasses/OcaDynamicsCurve.js +85 -37
- package/src/controller/ControlClasses/OcaDynamicsDetector.d.ts +30 -22
- package/src/controller/ControlClasses/OcaDynamicsDetector.js +36 -24
- package/src/controller/ControlClasses/OcaEventHandler.d.ts +8 -6
- package/src/controller/ControlClasses/OcaEventHandler.js +9 -6
- package/src/controller/ControlClasses/OcaFilterArbitraryCurve.d.ts +13 -9
- package/src/controller/ControlClasses/OcaFilterArbitraryCurve.js +15 -12
- package/src/controller/ControlClasses/OcaFilterClassical.d.ts +43 -30
- package/src/controller/ControlClasses/OcaFilterClassical.js +40 -31
- package/src/controller/ControlClasses/OcaFilterFIR.d.ts +12 -8
- package/src/controller/ControlClasses/OcaFilterFIR.js +19 -14
- package/src/controller/ControlClasses/OcaFilterParametric.d.ts +34 -25
- package/src/controller/ControlClasses/OcaFilterParametric.js +39 -33
- package/src/controller/ControlClasses/OcaFilterPolynomial.d.ts +6 -6
- package/src/controller/ControlClasses/OcaFilterPolynomial.js +11 -10
- package/src/controller/ControlClasses/OcaFirmwareManager.d.ts +71 -21
- package/src/controller/ControlClasses/OcaFirmwareManager.js +71 -22
- package/src/controller/ControlClasses/OcaFloat32Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaFloat32Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaFloat32Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaFloat32Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaFloat64Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaFloat64Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaFloat64Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaFloat64Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaFrequencyActuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaFrequencyActuator.js +6 -4
- package/src/controller/ControlClasses/OcaFrequencySensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaFrequencySensor.js +4 -3
- package/src/controller/ControlClasses/OcaGain.d.ts +6 -5
- package/src/controller/ControlClasses/OcaGain.js +6 -4
- package/src/controller/ControlClasses/OcaGainSensor.d.ts +6 -5
- package/src/controller/ControlClasses/OcaGainSensor.js +6 -4
- package/src/controller/ControlClasses/OcaGrouper.d.ts +138 -58
- package/src/controller/ControlClasses/OcaGrouper.js +139 -61
- package/src/controller/ControlClasses/OcaIdentificationActuator.d.ts +9 -10
- package/src/controller/ControlClasses/OcaIdentificationActuator.js +10 -10
- package/src/controller/ControlClasses/OcaIdentificationSensor.d.ts +6 -4
- package/src/controller/ControlClasses/OcaIdentificationSensor.js +5 -3
- package/src/controller/ControlClasses/OcaImpedanceSensor.d.ts +8 -8
- package/src/controller/ControlClasses/OcaImpedanceSensor.js +7 -6
- package/src/controller/ControlClasses/OcaInt16Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaInt16Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaInt16Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaInt16Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaInt32Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaInt32Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaInt32Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaInt32Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaInt64Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaInt64Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaInt64Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaInt64Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaInt8Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaInt8Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaInt8Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaInt8Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaLevelSensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaLevelSensor.js +4 -3
- package/src/controller/ControlClasses/OcaLibrary.d.ts +50 -25
- package/src/controller/ControlClasses/OcaLibrary.js +54 -26
- package/src/controller/ControlClasses/OcaLibraryManager.d.ts +22 -16
- package/src/controller/ControlClasses/OcaLibraryManager.js +22 -17
- package/src/controller/ControlClasses/OcaManager.d.ts +4 -1
- package/src/controller/ControlClasses/OcaManager.js +4 -1
- package/src/controller/ControlClasses/OcaMatrix.d.ts +69 -20
- package/src/controller/ControlClasses/OcaMatrix.js +86 -38
- package/src/controller/ControlClasses/OcaMediaClock.d.ts +33 -19
- package/src/controller/ControlClasses/OcaMediaClock.js +30 -19
- package/src/controller/ControlClasses/OcaMediaClock3.d.ts +37 -22
- package/src/controller/ControlClasses/OcaMediaClock3.js +39 -27
- package/src/controller/ControlClasses/OcaMediaClockManager.d.ts +15 -9
- package/src/controller/ControlClasses/OcaMediaClockManager.js +28 -23
- package/src/controller/ControlClasses/OcaMediaTransportNetwork.d.ts +106 -74
- package/src/controller/ControlClasses/OcaMediaTransportNetwork.js +121 -111
- package/src/controller/ControlClasses/OcaMute.d.ts +7 -7
- package/src/controller/ControlClasses/OcaMute.js +7 -5
- package/src/controller/ControlClasses/OcaNetwork.d.ts +38 -20
- package/src/controller/ControlClasses/OcaNetwork.js +58 -42
- package/src/controller/ControlClasses/OcaNetworkManager.d.ts +20 -9
- package/src/controller/ControlClasses/OcaNetworkManager.js +33 -23
- package/src/controller/ControlClasses/OcaNetworkSignalChannel.d.ts +43 -19
- package/src/controller/ControlClasses/OcaNetworkSignalChannel.js +67 -44
- package/src/controller/ControlClasses/OcaNumericObserver.d.ts +77 -38
- package/src/controller/ControlClasses/OcaNumericObserver.js +95 -59
- package/src/controller/ControlClasses/OcaNumericObserverList.d.ts +96 -45
- package/src/controller/ControlClasses/OcaNumericObserverList.js +129 -80
- package/src/controller/ControlClasses/OcaPanBalance.d.ts +10 -7
- package/src/controller/ControlClasses/OcaPanBalance.js +14 -11
- package/src/controller/ControlClasses/OcaPhysicalPosition.d.ts +31 -18
- package/src/controller/ControlClasses/OcaPhysicalPosition.js +43 -18
- package/src/controller/ControlClasses/OcaPolarity.d.ts +10 -7
- package/src/controller/ControlClasses/OcaPolarity.js +7 -5
- package/src/controller/ControlClasses/OcaPowerManager.d.ts +20 -14
- package/src/controller/ControlClasses/OcaPowerManager.js +27 -21
- package/src/controller/ControlClasses/OcaPowerSupply.d.ts +24 -15
- package/src/controller/ControlClasses/OcaPowerSupply.js +31 -23
- package/src/controller/ControlClasses/OcaRamper.d.ts +55 -34
- package/src/controller/ControlClasses/OcaRamper.js +58 -37
- package/src/controller/ControlClasses/OcaRoot.d.ts +28 -14
- package/src/controller/ControlClasses/OcaRoot.js +32 -24
- package/src/controller/ControlClasses/OcaSecurityManager.d.ts +29 -13
- package/src/controller/ControlClasses/OcaSecurityManager.js +31 -14
- package/src/controller/ControlClasses/OcaSensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaSensor.js +6 -5
- package/src/controller/ControlClasses/OcaSignalGenerator.d.ts +48 -38
- package/src/controller/ControlClasses/OcaSignalGenerator.js +57 -46
- package/src/controller/ControlClasses/OcaSignalInput.d.ts +4 -1
- package/src/controller/ControlClasses/OcaSignalInput.js +4 -1
- package/src/controller/ControlClasses/OcaSignalOutput.d.ts +4 -1
- package/src/controller/ControlClasses/OcaSignalOutput.js +4 -1
- package/src/controller/ControlClasses/OcaStreamConnector.d.ts +59 -24
- package/src/controller/ControlClasses/OcaStreamConnector.js +80 -48
- package/src/controller/ControlClasses/OcaStreamNetwork.d.ts +100 -27
- package/src/controller/ControlClasses/OcaStreamNetwork.js +124 -54
- package/src/controller/ControlClasses/OcaStringActuator.d.ts +5 -4
- package/src/controller/ControlClasses/OcaStringActuator.js +7 -5
- package/src/controller/ControlClasses/OcaStringSensor.d.ts +7 -5
- package/src/controller/ControlClasses/OcaStringSensor.js +10 -7
- package/src/controller/ControlClasses/OcaSubscriptionManager.d.ts +73 -46
- package/src/controller/ControlClasses/OcaSubscriptionManager.js +78 -51
- package/src/controller/ControlClasses/OcaSummingPoint.d.ts +2 -1
- package/src/controller/ControlClasses/OcaSummingPoint.js +2 -1
- package/src/controller/ControlClasses/OcaSwitch.d.ts +23 -15
- package/src/controller/ControlClasses/OcaSwitch.js +31 -23
- package/src/controller/ControlClasses/OcaTaskManager.d.ts +47 -38
- package/src/controller/ControlClasses/OcaTaskManager.js +48 -37
- package/src/controller/ControlClasses/OcaTemperatureActuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaTemperatureActuator.js +6 -4
- package/src/controller/ControlClasses/OcaTemperatureSensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaTemperatureSensor.js +4 -3
- package/src/controller/ControlClasses/OcaTimeIntervalSensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaTimeIntervalSensor.js +4 -3
- package/src/controller/ControlClasses/OcaTimeSource.d.ts +38 -22
- package/src/controller/ControlClasses/OcaTimeSource.js +41 -27
- package/src/controller/ControlClasses/OcaUint16Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaUint16Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaUint16Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaUint16Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaUint32Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaUint32Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaUint32Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaUint32Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaUint64Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaUint64Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaUint64Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaUint64Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaUint8Actuator.d.ts +6 -5
- package/src/controller/ControlClasses/OcaUint8Actuator.js +6 -4
- package/src/controller/ControlClasses/OcaUint8Sensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaUint8Sensor.js +4 -3
- package/src/controller/ControlClasses/OcaVoltageSensor.d.ts +4 -4
- package/src/controller/ControlClasses/OcaVoltageSensor.js +4 -3
- package/src/controller/ControlClasses/OcaWorker.d.ts +38 -28
- package/src/controller/ControlClasses/OcaWorker.js +50 -40
- package/src/controller/abstract_udp_connection.js +11 -7
- package/src/controller/client_connection.d.ts +1 -1
- package/src/controller/node_udp.js +2 -3
- package/src/controller/property_event.js +1 -1
- package/src/types/OcaBlockMember.d.ts +1 -2
- package/src/types/OcaClassAuthorityID.d.ts +14 -3
- package/src/types/OcaClassAuthorityID.js +8 -2
- package/src/types/OcaClassIdentification.d.ts +4 -3
- package/src/types/OcaClassIdentification.js +2 -2
- package/src/types/OcaComponent.d.ts +3 -1
- package/src/types/OcaComponent.js +3 -1
- package/src/types/OcaDBr.d.ts +6 -4
- package/src/types/OcaDBr.js +3 -2
- package/src/types/OcaDelayValue.d.ts +1 -2
- package/src/types/OcaDeviceState.d.ts +4 -1
- package/src/types/OcaDeviceState.js +4 -1
- package/src/types/OcaDynamicsFunction.d.ts +2 -1
- package/src/types/OcaDynamicsFunction.js +2 -1
- package/src/types/OcaEvent.d.ts +3 -3
- package/src/types/OcaEvent.js +2 -1
- package/src/types/OcaEventID.d.ts +3 -1
- package/src/types/OcaEventID.js +3 -1
- package/src/types/OcaGlobalTypeIdentifier.d.ts +10 -4
- package/src/types/OcaGlobalTypeIdentifier.js +5 -2
- package/src/types/OcaGrouperCitizen.d.ts +7 -5
- package/src/types/OcaGrouperCitizen.js +4 -2
- package/src/types/OcaGrouperEnrollment.d.ts +8 -4
- package/src/types/OcaGrouperEnrollment.js +4 -2
- package/src/types/OcaGrouperGroup.d.ts +4 -2
- package/src/types/OcaGrouperGroup.js +2 -1
- package/src/types/OcaGrouperMode.d.ts +1 -1
- package/src/types/OcaGrouperMode.js +1 -1
- package/src/types/OcaGrouperStatusChangeEventData.d.ts +7 -19
- package/src/types/OcaGrouperStatusChangeEventData.js +5 -8
- package/src/types/OcaGrouperStatusChangeType.d.ts +2 -1
- package/src/types/OcaGrouperStatusChangeType.js +2 -1
- package/src/types/OcaLevelDetectionLaw.d.ts +2 -1
- package/src/types/OcaLevelDetectionLaw.js +2 -1
- package/src/types/OcaLibParamSetAssignment.d.ts +3 -3
- package/src/types/OcaLibParamSetAssignment.js +2 -1
- package/src/types/OcaLibVol.d.ts +3 -3
- package/src/types/OcaLibVol.js +3 -2
- package/src/types/OcaLibVolChangedEventData.d.ts +4 -21
- package/src/types/OcaLibVolChangedEventData.js +3 -7
- package/src/types/OcaLibVolData_ParamSet.d.ts +13 -3
- package/src/types/OcaLibVolData_ParamSet.js +11 -3
- package/src/types/OcaLibVolMetadata.d.ts +4 -5
- package/src/types/OcaLibVolMetadata.js +1 -1
- package/src/types/OcaLibVolType.d.ts +12 -4
- package/src/types/OcaLibVolType.js +6 -2
- package/src/types/OcaLibraryIdentifier.d.ts +3 -3
- package/src/types/OcaLibraryIdentifier.js +2 -1
- package/src/types/OcaManagerDefaultObjectNumbers.d.ts +58 -116
- package/src/types/OcaManagerDefaultObjectNumbers.js +2 -2
- package/src/types/OcaManagerDescriptor.d.ts +4 -0
- package/src/types/OcaManagerDescriptor.js +2 -0
- package/src/types/OcaMediaClockRate.d.ts +12 -6
- package/src/types/OcaMediaClockRate.js +6 -3
- package/src/types/OcaMediaCoding.d.ts +4 -2
- package/src/types/OcaMediaCoding.js +2 -1
- package/src/types/OcaMediaConnection.d.ts +21 -8
- package/src/types/OcaMediaConnection.js +18 -5
- package/src/types/OcaMediaConnectorStatus.d.ts +5 -4
- package/src/types/OcaMediaConnectorStatus.js +2 -1
- package/src/types/OcaMediaConnectorStatusChangedEventData.d.ts +2 -17
- package/src/types/OcaMediaConnectorStatusChangedEventData.js +1 -7
- package/src/types/OcaMediaSinkConnector.d.ts +43 -15
- package/src/types/OcaMediaSinkConnector.js +23 -7
- package/src/types/OcaMediaSinkConnectorChangedEventData.d.ts +20 -30
- package/src/types/OcaMediaSinkConnectorChangedEventData.js +8 -11
- package/src/types/OcaMediaSourceConnector.d.ts +33 -13
- package/src/types/OcaMediaSourceConnector.js +17 -7
- package/src/types/OcaMediaSourceConnectorChangedEventData.d.ts +20 -30
- package/src/types/OcaMediaSourceConnectorChangedEventData.js +8 -11
- package/src/types/OcaMethod.d.ts +8 -5
- package/src/types/OcaMethod.js +5 -2
- package/src/types/OcaMethodID.d.ts +3 -1
- package/src/types/OcaMethodID.js +3 -1
- package/src/types/OcaModelGUID.d.ts +4 -2
- package/src/types/OcaModelGUID.js +5 -4
- package/src/types/OcaNetworkMediaSourceOrSink.d.ts +2 -1
- package/src/types/OcaNetworkMediaSourceOrSink.js +2 -1
- package/src/types/OcaNetworkSystemInterfaceDescriptor.d.ts +2 -1
- package/src/types/OcaNetworkSystemInterfaceDescriptor.js +3 -2
- package/src/types/OcaNetworkSystemInterfaceID.d.ts +2 -1
- package/src/types/OcaNetworkSystemInterfaceID.js +3 -2
- package/src/types/OcaNotificationDeliveryMode.d.ts +2 -1
- package/src/types/OcaNotificationDeliveryMode.js +2 -1
- package/src/types/OcaOPath.d.ts +2 -1
- package/src/types/OcaOPath.js +2 -1
- package/src/types/OcaObjectIdentification.d.ts +3 -3
- package/src/types/OcaObjectIdentification.js +2 -1
- package/src/types/OcaObjectListEventData.d.ts +3 -16
- package/src/types/OcaObjectListEventData.js +4 -8
- package/src/types/OcaObjectSearchResult.d.ts +5 -3
- package/src/types/OcaObjectSearchResult.js +4 -1
- package/src/types/OcaObjectSearchResultFlags.d.ts +1 -1
- package/src/types/OcaObjectSearchResultFlags.js +1 -1
- package/src/types/OcaObservationEventData.d.ts +8 -16
- package/src/types/OcaObservationEventData.js +8 -7
- package/src/types/OcaObservationListEventData.d.ts +8 -16
- package/src/types/OcaObservationListEventData.js +9 -8
- package/src/types/OcaParameterMask.d.ts +13 -0
- package/src/types/OcaParameterMask.js +11 -0
- package/src/types/OcaPilotToneDetectorSpec.d.ts +1 -2
- package/src/types/OcaPort.d.ts +3 -3
- package/src/types/OcaPort.js +2 -1
- package/src/types/OcaPortID.d.ts +4 -3
- package/src/types/OcaPortID.js +3 -1
- package/src/types/OcaPositionCoordinateSystem.d.ts +2 -1
- package/src/types/OcaPositionCoordinateSystem.js +2 -1
- package/src/types/OcaPositionDescriptor.d.ts +21 -20
- package/src/types/OcaPositionDescriptor.js +12 -14
- package/src/types/OcaPositionDescriptorFieldFlags.d.ts +13 -0
- package/src/types/OcaPositionDescriptorFieldFlags.js +11 -0
- package/src/types/OcaPowerState.d.ts +2 -1
- package/src/types/OcaPowerState.js +2 -1
- package/src/types/OcaPresentationUnit.d.ts +8 -1
- package/src/types/OcaPresentationUnit.js +8 -1
- package/src/types/OcaProperty.d.ts +3 -3
- package/src/types/OcaProperty.js +2 -1
- package/src/types/OcaPropertyDescriptor.d.ts +9 -9
- package/src/types/OcaPropertyDescriptor.js +4 -3
- package/src/types/OcaPropertyID.d.ts +3 -1
- package/src/types/OcaPropertyID.js +3 -1
- package/src/types/OcaProtoObjectIdentification.d.ts +3 -3
- package/src/types/OcaProtoObjectIdentification.js +2 -1
- package/src/types/OcaProtoPort.d.ts +9 -5
- package/src/types/OcaProtoPort.js +5 -2
- package/src/types/OcaProtoPortID.d.ts +4 -3
- package/src/types/OcaProtoPortID.js +3 -1
- package/src/types/OcaProtoSignalPath.d.ts +1 -2
- package/src/types/OcaRamperCommand.d.ts +1 -1
- package/src/types/OcaRamperCommand.js +1 -1
- package/src/types/OcaRamperState.d.ts +15 -10
- package/src/types/OcaRamperState.js +15 -10
- package/src/types/OcaSensorReadingState.d.ts +2 -1
- package/src/types/OcaSensorReadingState.js +2 -1
- package/src/types/OcaSignalPath.d.ts +1 -2
- package/src/types/OcaStream.d.ts +23 -10
- package/src/types/OcaStream.js +17 -5
- package/src/types/OcaStreamConnectorIdentification.d.ts +17 -7
- package/src/types/OcaStreamConnectorIdentification.js +15 -6
- package/src/types/OcaSubscriptionManagerState.d.ts +1 -1
- package/src/types/OcaSubscriptionManagerState.js +1 -1
- package/src/types/OcaTask.d.ts +27 -13
- package/src/types/OcaTask.js +14 -6
- package/src/types/OcaTaskManagerState.d.ts +13 -9
- package/src/types/OcaTaskManagerState.js +13 -9
- package/src/types/OcaTaskState.d.ts +3 -1
- package/src/types/OcaTaskState.js +3 -1
- package/src/types/OcaTaskStateChangedEventData.d.ts +6 -6
- package/src/types/OcaTaskStateChangedEventData.js +2 -2
- package/src/types/OcaTaskStatus.d.ts +6 -5
- package/src/types/OcaTaskStatus.js +5 -3
- package/src/types/OcaTimeMode.d.ts +1 -1
- package/src/types/OcaTimeMode.js +1 -1
- package/src/types/OcaTimePTP.d.ts +8 -3
- package/src/types/OcaTimePTP.js +6 -2
- package/src/types/OcaTransferFunction.js +3 -3
- package/src/types/OcaUnitOfMeasure.d.ts +5 -1
- package/src/types/OcaUnitOfMeasure.js +5 -1
- package/src/types/OcaVersion.d.ts +7 -5
- package/src/types/OcaVersion.js +4 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { make_control_class } from '../make_control_class.js';
|
|
2
|
-
import { OcaActuator } from './OcaActuator.js';
|
|
3
1
|
import { OcaBoolean } from '../../OCP1/OcaBoolean.js';
|
|
4
2
|
import { OcaList } from '../../OCP1/OcaList.js';
|
|
5
3
|
import { OcaString } from '../../OCP1/OcaString.js';
|
|
6
4
|
import { OcaUint16 } from '../../OCP1/OcaUint16.js';
|
|
5
|
+
import { make_control_class } from '../make_control_class.js';
|
|
6
|
+
import { OcaActuator } from './OcaActuator.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* (n)-position single-pole switch.
|
|
@@ -37,7 +37,9 @@ export const OcaSwitch = make_control_class(
|
|
|
37
37
|
);
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Gets the value of the Position property and, optionally, its implementation
|
|
40
|
+
* Gets the value of the Position property and, optionally, its implementation
|
|
41
|
+
* min and max. The return value indicates whether the data was successfully
|
|
42
|
+
* retrieved.
|
|
41
43
|
* The return values of this method are
|
|
42
44
|
*
|
|
43
45
|
* - position of type ``number``
|
|
@@ -48,7 +50,8 @@ export const OcaSwitch = make_control_class(
|
|
|
48
50
|
* @returns {Promise<Arguments<number,number,number>>}
|
|
49
51
|
*/
|
|
50
52
|
/**
|
|
51
|
-
* Sets the value of the Position property. The return value indicates whether
|
|
53
|
+
* Sets the value of the Position property. The return value indicates whether
|
|
54
|
+
* the property was successfully set.
|
|
52
55
|
*
|
|
53
56
|
* @method OcaSwitch#SetPosition
|
|
54
57
|
* @param {number} position
|
|
@@ -56,7 +59,8 @@ export const OcaSwitch = make_control_class(
|
|
|
56
59
|
* @returns {Promise<void>}
|
|
57
60
|
*/
|
|
58
61
|
/**
|
|
59
|
-
* Gets the name assigned to a given switch position. The return value indicates
|
|
62
|
+
* Gets the name assigned to a given switch position. The return value indicates
|
|
63
|
+
* whether the name was successfully retrieved.
|
|
60
64
|
*
|
|
61
65
|
* @method OcaSwitch#GetPositionName
|
|
62
66
|
* @param {number} Index
|
|
@@ -65,24 +69,26 @@ export const OcaSwitch = make_control_class(
|
|
|
65
69
|
* A promise which resolves to a single value of type ``string``.
|
|
66
70
|
*/
|
|
67
71
|
/**
|
|
68
|
-
* Assigns a name to a given switch position. The return value indicates whether
|
|
72
|
+
* Assigns a name to a given switch position. The return value indicates whether
|
|
73
|
+
* the name was successfully assigned.
|
|
69
74
|
*
|
|
70
75
|
* @method OcaSwitch#SetPositionName
|
|
71
76
|
* @param {number} Index
|
|
72
|
-
*
|
|
73
77
|
* @param {string} Name
|
|
74
78
|
*
|
|
75
79
|
* @returns {Promise<void>}
|
|
76
80
|
*/
|
|
77
81
|
/**
|
|
78
|
-
* Gets list of names assigned to the switch's positions. The return value
|
|
82
|
+
* Gets list of names assigned to the switch's positions. The return value
|
|
83
|
+
* indicates whether the names were successfully retrieved.
|
|
79
84
|
*
|
|
80
85
|
* @method OcaSwitch#GetPositionNames
|
|
81
86
|
* @returns {Promise<string[]>}
|
|
82
87
|
* A promise which resolves to a single value of type ``string[]``.
|
|
83
88
|
*/
|
|
84
89
|
/**
|
|
85
|
-
* Assigns names to the switch's positions. The return value indicates whether
|
|
90
|
+
* Assigns names to the switch's positions. The return value indicates whether
|
|
91
|
+
* the names were successfully assigned.
|
|
86
92
|
*
|
|
87
93
|
* @method OcaSwitch#SetPositionNames
|
|
88
94
|
* @param {string[]} Names
|
|
@@ -90,7 +96,8 @@ export const OcaSwitch = make_control_class(
|
|
|
90
96
|
* @returns {Promise<void>}
|
|
91
97
|
*/
|
|
92
98
|
/**
|
|
93
|
-
* Gets the Enabled flag assigned to a given switch position. The return value
|
|
99
|
+
* Gets the Enabled flag assigned to a given switch position. The return value
|
|
100
|
+
* indicates whether the flag was successfully retrieved.
|
|
94
101
|
*
|
|
95
102
|
* @method OcaSwitch#GetPositionEnabled
|
|
96
103
|
* @param {number} Index
|
|
@@ -99,24 +106,26 @@ export const OcaSwitch = make_control_class(
|
|
|
99
106
|
* A promise which resolves to a single value of type ``boolean``.
|
|
100
107
|
*/
|
|
101
108
|
/**
|
|
102
|
-
* Sets the Enabled flag assigned to a given switch position. The return value
|
|
109
|
+
* Sets the Enabled flag assigned to a given switch position. The return value
|
|
110
|
+
* indicates whether the flag was successfully set.
|
|
103
111
|
*
|
|
104
112
|
* @method OcaSwitch#SetPositionEnabled
|
|
105
113
|
* @param {number} Index
|
|
106
|
-
*
|
|
107
114
|
* @param {boolean} enabled
|
|
108
115
|
*
|
|
109
116
|
* @returns {Promise<void>}
|
|
110
117
|
*/
|
|
111
118
|
/**
|
|
112
|
-
* Gets list of Enabled flags assigned to the switch's positions. The return
|
|
119
|
+
* Gets list of Enabled flags assigned to the switch's positions. The return
|
|
120
|
+
* value indicates whether the flags were successfully retrieved.
|
|
113
121
|
*
|
|
114
122
|
* @method OcaSwitch#GetPositionEnableds
|
|
115
123
|
* @returns {Promise<boolean[]>}
|
|
116
124
|
* A promise which resolves to a single value of type ``boolean[]``.
|
|
117
125
|
*/
|
|
118
126
|
/**
|
|
119
|
-
* Sets list of Enabled flags for the switch's positions. The return value
|
|
127
|
+
* Sets list of Enabled flags for the switch's positions. The return value
|
|
128
|
+
* indicates whether the flags were successfully set.
|
|
120
129
|
*
|
|
121
130
|
* @method OcaSwitch#SetPositionEnableds
|
|
122
131
|
* @param {boolean[]} enableds
|
|
@@ -124,28 +133,27 @@ export const OcaSwitch = make_control_class(
|
|
|
124
133
|
* @returns {Promise<void>}
|
|
125
134
|
*/
|
|
126
135
|
/**
|
|
127
|
-
* This event is emitted when the property Position changes in the remote object.
|
|
136
|
+
* This event is emitted when the property ``Position`` changes in the remote object.
|
|
128
137
|
* The property ``Position`` is described in the AES70 standard as follows.
|
|
129
138
|
* The current position of the switch. Positions shall be numbered from
|
|
130
|
-
* minPosition to (including) maxPosition. If the object does not return
|
|
131
|
-
*
|
|
132
|
-
*
|
|
139
|
+
* minPosition to (including) maxPosition. If the object does not return the
|
|
140
|
+
* optional parameters minPosition and maxPosition in its GetPosition method the
|
|
141
|
+
* positions shall be numbered from 1 to n.
|
|
133
142
|
*
|
|
134
143
|
* @member {PropertyEvent<number>} OcaSwitch#OnPositionChanged
|
|
135
144
|
*/
|
|
136
145
|
/**
|
|
137
|
-
* This event is emitted when the property PositionNames changes in the remote object.
|
|
146
|
+
* This event is emitted when the property ``PositionNames`` changes in the remote object.
|
|
138
147
|
* The property ``PositionNames`` is described in the AES70 standard as follows.
|
|
139
148
|
* Vector of switch position names. Supplied by controller.
|
|
140
149
|
*
|
|
141
150
|
* @member {PropertyEvent<string[]>} OcaSwitch#OnPositionNamesChanged
|
|
142
151
|
*/
|
|
143
152
|
/**
|
|
144
|
-
* This event is emitted when the property PositionEnableds changes in the remote object.
|
|
153
|
+
* This event is emitted when the property ``PositionEnableds`` changes in the remote object.
|
|
145
154
|
* The property ``PositionEnableds`` is described in the AES70 standard as follows.
|
|
146
|
-
* Vector of booleans which enable or disable corresponding switch
|
|
147
|
-
*
|
|
148
|
-
* default value is True.
|
|
155
|
+
* Vector of booleans which enable or disable corresponding switch positions.
|
|
156
|
+
* Default values are a construction parameter. The usual default value is True.
|
|
149
157
|
*
|
|
150
158
|
* @member {PropertyEvent<boolean[]>} OcaSwitch#OnPositionEnabledsChanged
|
|
151
159
|
*/
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OcaManager } from './OcaManager';
|
|
3
|
-
import { Event } from '../event';
|
|
4
|
-
|
|
5
|
-
import { PropertyEvent } from '../property_event';
|
|
6
|
-
import { IOcaTask } from '../../types/OcaTask';
|
|
1
|
+
import { IOcaTask, OcaTask } from '../../types/OcaTask';
|
|
7
2
|
import { IOcaTaskCommand } from '../../types/OcaTaskCommand';
|
|
8
|
-
import { OcaTask } from '../../types/OcaTask';
|
|
9
3
|
import { OcaTaskManagerState } from '../../types/OcaTaskManagerState';
|
|
10
4
|
import { OcaTaskStatus } from '../../types/OcaTaskStatus';
|
|
5
|
+
import { Event } from '../event';
|
|
6
|
+
import { PropertyEvent } from '../property_event';
|
|
7
|
+
import { RemoteDevice } from '../remote_device';
|
|
8
|
+
import { OcaManager } from './OcaManager';
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* Optional manager that collects OcaTask and OcaProgram objects.
|
|
14
12
|
*
|
|
15
13
|
* - May be instantiated once in any device.
|
|
16
14
|
*
|
|
17
|
-
*
|
|
18
15
|
* - If instantiated, object number must be 11.
|
|
19
|
-
* Tasks shall be device execution threads that start, execute, and (normally) stop. The action of an **OcaTask** is defined by an **OcaProgram** . The idea is that **OcaTasks** shall execute **OcaPrograms** . **OcaTaskManager** offers global control over tasks in the device.
|
|
20
16
|
*
|
|
21
|
-
* - Device task processing state is **Enabled** by default. In **Enabled** state, tasks may be running.
|
|
22
17
|
*
|
|
18
|
+
* Tasks shall be device execution threads that start, execute, and (normally)
|
|
19
|
+
* stop. The action of an **OcaTask** is defined by an **OcaProgram**. The idea
|
|
20
|
+
* is that **OcaTasks** shall execute **OcaPrograms**. **OcaTaskManager** offers
|
|
21
|
+
* global control over tasks in the device.
|
|
23
22
|
*
|
|
24
|
-
* - Device task processing state
|
|
23
|
+
* - Device task processing state is **Enabled** by default. In **Enabled**
|
|
24
|
+
* state, tasks may be running.
|
|
25
25
|
*
|
|
26
|
+
* - Device task processing state may be **Disabled** by the **OcaTaskManager
|
|
27
|
+
* Disable** command.
|
|
26
28
|
*
|
|
27
|
-
* - The
|
|
28
|
-
*
|
|
29
|
+
* - The **Disable** command will succeed only if no tasks are running.
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* Tasks may be stopped by: passing the **OcaTaskManager** a **Stop** or
|
|
33
|
+
* **Abort** command, which will stop designated tasks in the device;.
|
|
29
34
|
* @extends OcaManager
|
|
30
35
|
* @class OcaTaskManager
|
|
31
36
|
*/
|
|
32
37
|
export declare class OcaTaskManager extends OcaManager {
|
|
33
38
|
/**
|
|
34
|
-
* This was not documented in the OCA standard.
|
|
35
39
|
* @member OcaTaskManager#OnTaskStateChanged {Event}
|
|
36
40
|
*/
|
|
37
41
|
OnTaskStateChanged: Event;
|
|
38
|
-
|
|
39
42
|
/**
|
|
40
43
|
* This event is emitted whenever State changes.
|
|
41
44
|
*/
|
|
@@ -49,7 +52,10 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
49
52
|
constructor(objectNumber: number, device: RemoteDevice);
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
|
-
* Enables (parameter =TRUE) or disables (parameter = FALSE) the running of
|
|
55
|
+
* Enables (parameter =TRUE) or disables (parameter = FALSE) the running of
|
|
56
|
+
* tasks. Changes value of property State from Disabled to Enabled and vice
|
|
57
|
+
* versa. All tasks running when Enable is called with parameter = FALSE are
|
|
58
|
+
* immediately aborted.
|
|
53
59
|
*
|
|
54
60
|
* @method OcaTaskManager#Enable
|
|
55
61
|
* @param {boolean} Enable
|
|
@@ -59,11 +65,11 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
59
65
|
Enable(Enable: boolean): Promise<void>;
|
|
60
66
|
|
|
61
67
|
/**
|
|
62
|
-
* Controls all tasks in device. Return value indicates whether tasks were
|
|
68
|
+
* Controls all tasks in device. Return value indicates whether tasks were
|
|
69
|
+
* successfully controlled.
|
|
63
70
|
*
|
|
64
71
|
* @method OcaTaskManager#ControlAllTasks
|
|
65
|
-
* @param {
|
|
66
|
-
*
|
|
72
|
+
* @param {IOcaTaskCommand} Command
|
|
67
73
|
* @param {Uint8Array} ApplicationTaskParameter
|
|
68
74
|
*
|
|
69
75
|
* @returns {Promise<void>}
|
|
@@ -74,13 +80,12 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
74
80
|
): Promise<void>;
|
|
75
81
|
|
|
76
82
|
/**
|
|
77
|
-
* Controls all tasks in the given group. Return value indicates whether tasks
|
|
83
|
+
* Controls all tasks in the given group. Return value indicates whether tasks
|
|
84
|
+
* were successfully controlled.
|
|
78
85
|
*
|
|
79
86
|
* @method OcaTaskManager#ControlTaskGroup
|
|
80
87
|
* @param {number} GroupID
|
|
81
|
-
*
|
|
82
|
-
* @param {OcaTaskCommand} Command
|
|
83
|
-
*
|
|
88
|
+
* @param {IOcaTaskCommand} Command
|
|
84
89
|
* @param {Uint8Array} ApplicationTaskParameter
|
|
85
90
|
*
|
|
86
91
|
* @returns {Promise<void>}
|
|
@@ -92,13 +97,12 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
92
97
|
): Promise<void>;
|
|
93
98
|
|
|
94
99
|
/**
|
|
95
|
-
* Controls a specified task. Return value indicates whether tasks were
|
|
100
|
+
* Controls a specified task. Return value indicates whether tasks were
|
|
101
|
+
* successfully controlled.
|
|
96
102
|
*
|
|
97
103
|
* @method OcaTaskManager#ControlTask
|
|
98
104
|
* @param {number} TaskID
|
|
99
|
-
*
|
|
100
|
-
* @param {OcaTaskCommand} Command
|
|
101
|
-
*
|
|
105
|
+
* @param {IOcaTaskCommand} Command
|
|
102
106
|
* @param {Uint8Array} ApplicationTaskParameter
|
|
103
107
|
*
|
|
104
108
|
* @returns {Promise<void>}
|
|
@@ -110,7 +114,8 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
110
114
|
): Promise<void>;
|
|
111
115
|
|
|
112
116
|
/**
|
|
113
|
-
* Gets value of property
|
|
117
|
+
* Gets value of property **State**. Return value indicates whether value was
|
|
118
|
+
* successfully retrieved.
|
|
114
119
|
*
|
|
115
120
|
* @method OcaTaskManager#GetState
|
|
116
121
|
* @returns {Promise<OcaTaskManagerState>}
|
|
@@ -119,7 +124,6 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
119
124
|
GetState(): Promise<OcaTaskManagerState>;
|
|
120
125
|
|
|
121
126
|
/**
|
|
122
|
-
* This was not documented in the OCA standard.
|
|
123
127
|
*
|
|
124
128
|
* @method OcaTaskManager#GetTaskStatuses
|
|
125
129
|
* @returns {Promise<OcaTaskStatus>}
|
|
@@ -128,7 +132,6 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
128
132
|
GetTaskStatuses(): Promise<OcaTaskStatus>;
|
|
129
133
|
|
|
130
134
|
/**
|
|
131
|
-
* This was not documented in the OCA standard.
|
|
132
135
|
*
|
|
133
136
|
* @method OcaTaskManager#GetTaskStatus
|
|
134
137
|
* @param {number} TaskID
|
|
@@ -139,10 +142,13 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
139
142
|
GetTaskStatus(TaskID: number): Promise<OcaTaskStatus>;
|
|
140
143
|
|
|
141
144
|
/**
|
|
142
|
-
* Creates a Task. Parameters of the new Task are given in the Task parameter;
|
|
145
|
+
* Creates a Task. Parameters of the new Task are given in the Task parameter;
|
|
146
|
+
* device returns the same parameter with the new Task ID filled in. Initial
|
|
147
|
+
* task state is set to Disabled. Return value indicates whether Task was
|
|
148
|
+
* successfully created.
|
|
143
149
|
*
|
|
144
150
|
* @method OcaTaskManager#AddTask
|
|
145
|
-
* @param {
|
|
151
|
+
* @param {IOcaTask} Task
|
|
146
152
|
*
|
|
147
153
|
* @returns {Promise<OcaTask>}
|
|
148
154
|
* A promise which resolves to a single value of type :class:`OcaTask`.
|
|
@@ -150,7 +156,8 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
150
156
|
AddTask(Task: IOcaTask): Promise<OcaTask>;
|
|
151
157
|
|
|
152
158
|
/**
|
|
153
|
-
* Gets map of Tasks in the device. Return value indicates whether map was
|
|
159
|
+
* Gets map of Tasks in the device. Return value indicates whether map was
|
|
160
|
+
* successfully retrieved.
|
|
154
161
|
*
|
|
155
162
|
* @method OcaTaskManager#GetTasks
|
|
156
163
|
* @returns {Promise<Map<number, OcaTask>>}
|
|
@@ -159,7 +166,8 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
159
166
|
GetTasks(): Promise<Map<number, OcaTask>>;
|
|
160
167
|
|
|
161
168
|
/**
|
|
162
|
-
* Retrieves a Task. Return value indicates whether Task was successfully
|
|
169
|
+
* Retrieves a Task. Return value indicates whether Task was successfully
|
|
170
|
+
* retrieved.
|
|
163
171
|
*
|
|
164
172
|
* @method OcaTaskManager#GetTask
|
|
165
173
|
* @param {number} ID
|
|
@@ -170,19 +178,20 @@ export declare class OcaTaskManager extends OcaManager {
|
|
|
170
178
|
GetTask(ID: number): Promise<OcaTask>;
|
|
171
179
|
|
|
172
180
|
/**
|
|
173
|
-
* Updates a Task. Return value indicates whether Task was successfully
|
|
181
|
+
* Updates a Task. Return value indicates whether Task was successfully
|
|
182
|
+
* updated.
|
|
174
183
|
*
|
|
175
184
|
* @method OcaTaskManager#SetTask
|
|
176
185
|
* @param {number} ID
|
|
177
|
-
*
|
|
178
|
-
* @param {OcaTask} Task
|
|
186
|
+
* @param {IOcaTask} Task
|
|
179
187
|
*
|
|
180
188
|
* @returns {Promise<void>}
|
|
181
189
|
*/
|
|
182
190
|
SetTask(ID: number, Task: IOcaTask): Promise<void>;
|
|
183
191
|
|
|
184
192
|
/**
|
|
185
|
-
* Deletes a task. Return value indicates whether task was successfully
|
|
193
|
+
* Deletes a task. Return value indicates whether task was successfully
|
|
194
|
+
* deleted. Method fails with status=ProcessingFailed if task is running.
|
|
186
195
|
*
|
|
187
196
|
* @method OcaTaskManager#DeleteTask
|
|
188
197
|
* @param {number} ID
|
|
@@ -1,33 +1,40 @@
|
|
|
1
|
-
import { make_control_class } from '../make_control_class.js';
|
|
2
|
-
import { OcaManager } from './OcaManager.js';
|
|
3
1
|
import { OcaBlob } from '../../OCP1/OcaBlob.js';
|
|
4
2
|
import { OcaBoolean } from '../../OCP1/OcaBoolean.js';
|
|
5
|
-
import { OcaLibVolIdentifier } from '../../OCP1/OcaLibVolIdentifier.js';
|
|
6
3
|
import { OcaMap } from '../../OCP1/OcaMap.js';
|
|
7
4
|
import { OcaTask } from '../../OCP1/OcaTask.js';
|
|
8
5
|
import { OcaTaskCommand } from '../../OCP1/OcaTaskCommand.js';
|
|
9
6
|
import { OcaTaskManagerState } from '../../OCP1/OcaTaskManagerState.js';
|
|
7
|
+
import { OcaTaskStateChangedEventData } from '../../OCP1/OcaTaskStateChangedEventData.js';
|
|
10
8
|
import { OcaTaskStatus } from '../../OCP1/OcaTaskStatus.js';
|
|
11
9
|
import { OcaUint16 } from '../../OCP1/OcaUint16.js';
|
|
12
10
|
import { OcaUint32 } from '../../OCP1/OcaUint32.js';
|
|
11
|
+
import { make_control_class } from '../make_control_class.js';
|
|
12
|
+
import { OcaManager } from './OcaManager.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Optional manager that collects OcaTask and OcaProgram objects.
|
|
16
16
|
*
|
|
17
17
|
* - May be instantiated once in any device.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
19
|
* - If instantiated, object number must be 11.
|
|
21
|
-
* Tasks shall be device execution threads that start, execute, and (normally) stop. The action of an **OcaTask** is defined by an **OcaProgram** . The idea is that **OcaTasks** shall execute **OcaPrograms** . **OcaTaskManager** offers global control over tasks in the device.
|
|
22
20
|
*
|
|
23
|
-
* - Device task processing state is **Enabled** by default. In **Enabled** state, tasks may be running.
|
|
24
21
|
*
|
|
22
|
+
* Tasks shall be device execution threads that start, execute, and (normally)
|
|
23
|
+
* stop. The action of an **OcaTask** is defined by an **OcaProgram**. The idea
|
|
24
|
+
* is that **OcaTasks** shall execute **OcaPrograms**. **OcaTaskManager** offers
|
|
25
|
+
* global control over tasks in the device.
|
|
26
|
+
*
|
|
27
|
+
* - Device task processing state is **Enabled** by default. In **Enabled**
|
|
28
|
+
* state, tasks may be running.
|
|
29
|
+
*
|
|
30
|
+
* - Device task processing state may be **Disabled** by the **OcaTaskManager
|
|
31
|
+
* Disable** command.
|
|
25
32
|
*
|
|
26
|
-
* -
|
|
33
|
+
* - The **Disable** command will succeed only if no tasks are running.
|
|
27
34
|
*
|
|
28
35
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
36
|
+
* Tasks may be stopped by: passing the **OcaTaskManager** a **Stop** or
|
|
37
|
+
* **Abort** command, which will stop designated tasks in the device;.
|
|
31
38
|
* @extends OcaManager
|
|
32
39
|
* @class OcaTaskManager
|
|
33
40
|
*/
|
|
@@ -55,11 +62,14 @@ export const OcaTaskManager = make_control_class(
|
|
|
55
62
|
['State', [OcaTaskManagerState], 3, 1, false, false, null],
|
|
56
63
|
['Tasks', [OcaMap(OcaUint32, OcaTask)], 3, 2, false, false, null],
|
|
57
64
|
],
|
|
58
|
-
[['TaskStateChanged', 3, 1, [
|
|
65
|
+
[['TaskStateChanged', 3, 1, [OcaTaskStateChangedEventData]]]
|
|
59
66
|
);
|
|
60
67
|
|
|
61
68
|
/**
|
|
62
|
-
* Enables (parameter =TRUE) or disables (parameter = FALSE) the running of
|
|
69
|
+
* Enables (parameter =TRUE) or disables (parameter = FALSE) the running of
|
|
70
|
+
* tasks. Changes value of property State from Disabled to Enabled and vice
|
|
71
|
+
* versa. All tasks running when Enable is called with parameter = FALSE are
|
|
72
|
+
* immediately aborted.
|
|
63
73
|
*
|
|
64
74
|
* @method OcaTaskManager#Enable
|
|
65
75
|
* @param {boolean} Enable
|
|
@@ -67,55 +77,52 @@ export const OcaTaskManager = make_control_class(
|
|
|
67
77
|
* @returns {Promise<void>}
|
|
68
78
|
*/
|
|
69
79
|
/**
|
|
70
|
-
* Controls all tasks in device. Return value indicates whether tasks were
|
|
80
|
+
* Controls all tasks in device. Return value indicates whether tasks were
|
|
81
|
+
* successfully controlled.
|
|
71
82
|
*
|
|
72
83
|
* @method OcaTaskManager#ControlAllTasks
|
|
73
|
-
* @param {
|
|
74
|
-
*
|
|
84
|
+
* @param {IOcaTaskCommand} Command
|
|
75
85
|
* @param {Uint8Array} ApplicationTaskParameter
|
|
76
86
|
*
|
|
77
87
|
* @returns {Promise<void>}
|
|
78
88
|
*/
|
|
79
89
|
/**
|
|
80
|
-
* Controls all tasks in the given group. Return value indicates whether tasks
|
|
90
|
+
* Controls all tasks in the given group. Return value indicates whether tasks
|
|
91
|
+
* were successfully controlled.
|
|
81
92
|
*
|
|
82
93
|
* @method OcaTaskManager#ControlTaskGroup
|
|
83
94
|
* @param {number} GroupID
|
|
84
|
-
*
|
|
85
|
-
* @param {OcaTaskCommand} Command
|
|
86
|
-
*
|
|
95
|
+
* @param {IOcaTaskCommand} Command
|
|
87
96
|
* @param {Uint8Array} ApplicationTaskParameter
|
|
88
97
|
*
|
|
89
98
|
* @returns {Promise<void>}
|
|
90
99
|
*/
|
|
91
100
|
/**
|
|
92
|
-
* Controls a specified task. Return value indicates whether tasks were
|
|
101
|
+
* Controls a specified task. Return value indicates whether tasks were
|
|
102
|
+
* successfully controlled.
|
|
93
103
|
*
|
|
94
104
|
* @method OcaTaskManager#ControlTask
|
|
95
105
|
* @param {number} TaskID
|
|
96
|
-
*
|
|
97
|
-
* @param {OcaTaskCommand} Command
|
|
98
|
-
*
|
|
106
|
+
* @param {IOcaTaskCommand} Command
|
|
99
107
|
* @param {Uint8Array} ApplicationTaskParameter
|
|
100
108
|
*
|
|
101
109
|
* @returns {Promise<void>}
|
|
102
110
|
*/
|
|
103
111
|
/**
|
|
104
|
-
* Gets value of property
|
|
112
|
+
* Gets value of property **State**. Return value indicates whether value was
|
|
113
|
+
* successfully retrieved.
|
|
105
114
|
*
|
|
106
115
|
* @method OcaTaskManager#GetState
|
|
107
116
|
* @returns {Promise<OcaTaskManagerState>}
|
|
108
117
|
* A promise which resolves to a single value of type :class:`OcaTaskManagerState`.
|
|
109
118
|
*/
|
|
110
119
|
/**
|
|
111
|
-
* This was not documented in the OCA standard.
|
|
112
120
|
*
|
|
113
121
|
* @method OcaTaskManager#GetTaskStatuses
|
|
114
122
|
* @returns {Promise<OcaTaskStatus>}
|
|
115
123
|
* A promise which resolves to a single value of type :class:`OcaTaskStatus`.
|
|
116
124
|
*/
|
|
117
125
|
/**
|
|
118
|
-
* This was not documented in the OCA standard.
|
|
119
126
|
*
|
|
120
127
|
* @method OcaTaskManager#GetTaskStatus
|
|
121
128
|
* @param {number} TaskID
|
|
@@ -124,23 +131,28 @@ export const OcaTaskManager = make_control_class(
|
|
|
124
131
|
* A promise which resolves to a single value of type :class:`OcaTaskStatus`.
|
|
125
132
|
*/
|
|
126
133
|
/**
|
|
127
|
-
* Creates a Task. Parameters of the new Task are given in the Task parameter;
|
|
134
|
+
* Creates a Task. Parameters of the new Task are given in the Task parameter;
|
|
135
|
+
* device returns the same parameter with the new Task ID filled in. Initial
|
|
136
|
+
* task state is set to Disabled. Return value indicates whether Task was
|
|
137
|
+
* successfully created.
|
|
128
138
|
*
|
|
129
139
|
* @method OcaTaskManager#AddTask
|
|
130
|
-
* @param {
|
|
140
|
+
* @param {IOcaTask} Task
|
|
131
141
|
*
|
|
132
142
|
* @returns {Promise<OcaTask>}
|
|
133
143
|
* A promise which resolves to a single value of type :class:`OcaTask`.
|
|
134
144
|
*/
|
|
135
145
|
/**
|
|
136
|
-
* Gets map of Tasks in the device. Return value indicates whether map was
|
|
146
|
+
* Gets map of Tasks in the device. Return value indicates whether map was
|
|
147
|
+
* successfully retrieved.
|
|
137
148
|
*
|
|
138
149
|
* @method OcaTaskManager#GetTasks
|
|
139
150
|
* @returns {Promise<Map<number, OcaTask>>}
|
|
140
151
|
* A promise which resolves to a single value of type ``Map<number, OcaTask>``.
|
|
141
152
|
*/
|
|
142
153
|
/**
|
|
143
|
-
* Retrieves a Task. Return value indicates whether Task was successfully
|
|
154
|
+
* Retrieves a Task. Return value indicates whether Task was successfully
|
|
155
|
+
* retrieved.
|
|
144
156
|
*
|
|
145
157
|
* @method OcaTaskManager#GetTask
|
|
146
158
|
* @param {number} ID
|
|
@@ -153,13 +165,13 @@ export const OcaTaskManager = make_control_class(
|
|
|
153
165
|
*
|
|
154
166
|
* @method OcaTaskManager#SetTask
|
|
155
167
|
* @param {number} ID
|
|
156
|
-
*
|
|
157
|
-
* @param {OcaTask} Task
|
|
168
|
+
* @param {IOcaTask} Task
|
|
158
169
|
*
|
|
159
170
|
* @returns {Promise<void>}
|
|
160
171
|
*/
|
|
161
172
|
/**
|
|
162
|
-
* Deletes a task. Return value indicates whether task was successfully deleted.
|
|
173
|
+
* Deletes a task. Return value indicates whether task was successfully deleted.
|
|
174
|
+
* Method fails with status=ProcessingFailed if task is running.
|
|
163
175
|
*
|
|
164
176
|
* @method OcaTaskManager#DeleteTask
|
|
165
177
|
* @param {number} ID
|
|
@@ -167,19 +179,18 @@ export const OcaTaskManager = make_control_class(
|
|
|
167
179
|
* @returns {Promise<void>}
|
|
168
180
|
*/
|
|
169
181
|
/**
|
|
170
|
-
* This was not documented in the OCA standard.
|
|
171
182
|
* @member OcaTaskManager#OnTaskStateChanged {Event}
|
|
172
183
|
*/
|
|
173
184
|
/**
|
|
174
|
-
* This event is emitted when the property State changes in the remote object.
|
|
185
|
+
* This event is emitted when the property ``State`` changes in the remote object.
|
|
175
186
|
* The property ``State`` is described in the AES70 standard as follows.
|
|
176
|
-
* Current state of task processing. State is Disabled after a Disable
|
|
177
|
-
*
|
|
187
|
+
* Current state of task processing. State is Disabled after a Disable command
|
|
188
|
+
* has been received, Enabled otherwise.
|
|
178
189
|
*
|
|
179
190
|
* @member {PropertyEvent<OcaTaskManagerState>} OcaTaskManager#OnStateChanged
|
|
180
191
|
*/
|
|
181
192
|
/**
|
|
182
|
-
* This event is emitted when the property Tasks changes in the remote object.
|
|
193
|
+
* This event is emitted when the property ``Tasks`` changes in the remote object.
|
|
183
194
|
* The property ``Tasks`` is described in the AES70 standard as follows.
|
|
184
195
|
* Task collection
|
|
185
196
|
*
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { RemoteDevice } from '../remote_device';
|
|
2
|
-
import { OcaActuator } from './OcaActuator';
|
|
3
1
|
import { Arguments } from '../arguments';
|
|
4
|
-
|
|
5
2
|
import { PropertyEvent } from '../property_event';
|
|
3
|
+
import { RemoteDevice } from '../remote_device';
|
|
4
|
+
import { OcaActuator } from './OcaActuator';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* A temperature actuator. Works in Celsius.
|
|
@@ -18,7 +17,8 @@ export declare class OcaTemperatureActuator extends OcaActuator {
|
|
|
18
17
|
constructor(objectNumber: number, device: RemoteDevice);
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
|
-
* Gets the value of the Temperature property. The return value indicates
|
|
20
|
+
* Gets the value of the Temperature property. The return value indicates
|
|
21
|
+
* whether the property was successfully retrieved.
|
|
22
22
|
* The return values of this method are
|
|
23
23
|
*
|
|
24
24
|
* - temperature of type ``number``
|
|
@@ -31,7 +31,8 @@ export declare class OcaTemperatureActuator extends OcaActuator {
|
|
|
31
31
|
GetTemperature(): Promise<Arguments<[number, number, number]>>;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Sets the value of the Temperature property. The return value indicates
|
|
34
|
+
* Sets the value of the Temperature property. The return value indicates
|
|
35
|
+
* whether the property was successfully set.
|
|
35
36
|
*
|
|
36
37
|
* @method OcaTemperatureActuator#SetTemperature
|
|
37
38
|
* @param {number} temperature
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { OcaFloat32 } from '../../OCP1/OcaFloat32.js';
|
|
1
2
|
import { make_control_class } from '../make_control_class.js';
|
|
2
3
|
import { OcaActuator } from './OcaActuator.js';
|
|
3
|
-
import { OcaFloat32 } from '../../OCP1/OcaFloat32.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A temperature actuator. Works in Celsius.
|
|
@@ -22,7 +22,8 @@ export const OcaTemperatureActuator = make_control_class(
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Gets the value of the Temperature property. The return value indicates
|
|
25
|
+
* Gets the value of the Temperature property. The return value indicates
|
|
26
|
+
* whether the property was successfully retrieved.
|
|
26
27
|
* The return values of this method are
|
|
27
28
|
*
|
|
28
29
|
* - temperature of type ``number``
|
|
@@ -33,7 +34,8 @@ export const OcaTemperatureActuator = make_control_class(
|
|
|
33
34
|
* @returns {Promise<Arguments<number,number,number>>}
|
|
34
35
|
*/
|
|
35
36
|
/**
|
|
36
|
-
* Sets the value of the Temperature property. The return value indicates
|
|
37
|
+
* Sets the value of the Temperature property. The return value indicates
|
|
38
|
+
* whether the property was successfully set.
|
|
37
39
|
*
|
|
38
40
|
* @method OcaTemperatureActuator#SetTemperature
|
|
39
41
|
* @param {number} temperature
|
|
@@ -41,7 +43,7 @@ export const OcaTemperatureActuator = make_control_class(
|
|
|
41
43
|
* @returns {Promise<void>}
|
|
42
44
|
*/
|
|
43
45
|
/**
|
|
44
|
-
* This event is emitted when the property Temperature changes in the remote object.
|
|
46
|
+
* This event is emitted when the property ``Temperature`` changes in the remote object.
|
|
45
47
|
* The property ``Temperature`` is described in the AES70 standard as follows.
|
|
46
48
|
* The temperature.
|
|
47
49
|
*
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { RemoteDevice } from '../remote_device';
|
|
2
|
-
import { OcaSensor } from './OcaSensor';
|
|
3
1
|
import { Arguments } from '../arguments';
|
|
4
|
-
|
|
5
2
|
import { PropertyEvent } from '../property_event';
|
|
3
|
+
import { RemoteDevice } from '../remote_device';
|
|
4
|
+
import { OcaSensor } from './OcaSensor';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Basic temperature sensor.
|
|
@@ -18,7 +17,8 @@ export declare class OcaTemperatureSensor extends OcaSensor {
|
|
|
18
17
|
constructor(objectNumber: number, device: RemoteDevice);
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
|
-
* Gets the value and limits of the
|
|
20
|
+
* Gets the value and limits of the **Reading** property. The return value
|
|
21
|
+
* indicates whether the data was successfully retrieved.
|
|
22
22
|
* The return values of this method are
|
|
23
23
|
*
|
|
24
24
|
* - Reading of type ``number``
|