Package csw.params.events
Class WFSDetectorEvent
- java.lang.Object
-
- csw.params.events.WFSDetectorEvent
-
public class WFSDetectorEvent extends java.lang.ObjectWavefront detector system Observe events
-
-
Constructor Summary
Constructors Constructor Description WFSDetectorEvent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObserveEventexposureState(Prefix sourcePrefix, ExposureId exposureId, boolean exposureInProgress, boolean abortInProgress, boolean isAborted, OperationalState operationalState, java.lang.String errorMessage)A state variable to indicate the current state of the detector system.static ObserveEventpublishFail(Prefix sourcePrefix)This event indicates that a WFS or guider detector system has failed while publishing an image to VBDS.static ObserveEventpublishSuccess(Prefix sourcePrefix)This event indicates the WFS or guider detector system has successfully published an image to VBDS.
-
-
-
Method Detail
-
publishSuccess
public static ObserveEvent publishSuccess(Prefix sourcePrefix)
This event indicates the WFS or guider detector system has successfully published an image to VBDS.- Parameters:
sourcePrefix-Prefixthe prefix identifier of the source which is generating this event.- Returns:
ObserveEvent
-
publishFail
public static ObserveEvent publishFail(Prefix sourcePrefix)
This event indicates that a WFS or guider detector system has failed while publishing an image to VBDS.- Parameters:
sourcePrefix-Prefixthe prefix identifier of the source which is generating this event.- Returns:
ObserveEvent
-
exposureState
public static ObserveEvent exposureState(Prefix sourcePrefix, ExposureId exposureId, boolean exposureInProgress, boolean abortInProgress, boolean isAborted, OperationalState operationalState, java.lang.String errorMessage)
A state variable to indicate the current state of the detector system. The Exposure State Event groups parameters that change relatively slowly, and this event should be published whenever any of its parameters changes.- Parameters:
sourcePrefix-Prefixthe prefix identifier of the source which is generating this event.exposureId-ExposureIdis an identifier in ESW/DMS for a single exposure. The ExposureId follows the structure: 2020A-001-123-WFOS-IMG1-SCI0-0001 with an included ObsId or when no ObsId is present, in the standalone format: 20200706-190204-WFOS-IMG1-SCI0-0001 with a UTC time when the ExposureId is created.exposureInProgress-Booleanindicating if detector system is acquiring an exposure. Delimited by exposureStart and exposureEnd. exposureInProgress should be false if abortInProgress is true (TBD)abortInProgress-Booleanindicates that an abort has been requested and is underway.isAborted-BooleanIndicates that an abort has occurred and is completed. abortInProgress should be false when isAborted is true. isAborted should be set to false with the next exposureerrorMessage-StringAn parameter that can be included when the detector system is in the ERROR operationalState. This value should be cleared and removed from the state when the operationalState returns to READYoperationalState-OperationalStateindicating if the detector system is available and operational.- Returns:
ObserveEvent
-
-