Package csw.params.events
Class OpticalDetectorEvent
java.lang.Object
csw.params.events.OpticalDetectorEvent
The optical science detector system Observe Events
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObserveEventcreate(Prefix sourcePrefix, ExposureId exposureId, EventName eventName) static ObserveEventcreate(Prefix sourcePrefix, ExposureId exposureId, EventName eventName, String filename) static ObserveEventdataWriteEnd(Prefix sourcePrefix, ExposureId exposureId, String filename) static ObserveEventdataWriteStart(Prefix sourcePrefix, ExposureId exposureId, String filename) static ObserveEventexposureAborted(Prefix sourcePrefix, ExposureId exposureId) static ObserveEventexposureData(Prefix sourcePrefix, ExposureId exposureId, int coaddsInExposure, int coaddsDone, long exposureTime, long remainingExposureTime) This event contains faster changing data about the internals of the current exposure.static ObserveEventexposureEnd(Prefix sourcePrefix, ExposureId exposureId) static ObserveEventexposureStart(Prefix sourcePrefix, ExposureId exposureId) static ObserveEventexposureState(Prefix sourcePrefix, ExposureId exposureId, boolean exposureInProgress, boolean abortInProgress, boolean isAborted, String errorMessage, OperationalState operationalState) static ObserveEventobserveEnd(Prefix sourcePrefix) static ObserveEventobserveEnd(Prefix sourcePrefix, ObsId obsId) static ObserveEventobserveStart(Prefix sourcePrefix) static ObserveEventobserveStart(Prefix sourcePrefix, ObsId obsId) static ObserveEventprepareStart(Prefix sourcePrefix, ExposureId exposureId) static ObserveEventreadoutEnd(Prefix sourcePrefix, ExposureId exposureId) static ObserveEventreadoutFailed(Prefix sourcePrefix, ExposureId exposureId)
-
Constructor Details
-
OpticalDetectorEvent
public OpticalDetectorEvent()
-
-
Method Details
-
prepareStart
-
exposureData
public static ObserveEvent exposureData(Prefix sourcePrefix, ExposureId exposureId, int coaddsInExposure, int coaddsDone, long exposureTime, long remainingExposureTime) This event contains faster changing data about the internals of the current exposure. This data is useful for user interfaces and Sequencers. This event should be published at 1 Hz during an ongoing exposure. This event does not have much information compared to the IR use case and is primarily for tracking the remaining current exposure time in user interfaces or sequencers.- 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.coaddsInExposure- The integer total number of coadds in the current exposure. Value should be constant during an exposurecoaddsDone- Integer number of completed coadds from 1 to coaddsInExposure. Should be reset to 0 at the start of every exposure.exposureTime- Length in milliseconds of the current exposureremainingExposureTime- Number of milliseconds remaining in current exposure • Should count down in seconds – no faster than 1 Hz- Returns:
ObserveEvent]
-
observeStart
-
observeStart
-
observeEnd
-
observeEnd
-
exposureStart
-
exposureEnd
-
readoutEnd
-
readoutFailed
-
dataWriteStart
public static ObserveEvent dataWriteStart(Prefix sourcePrefix, ExposureId exposureId, String filename) -
dataWriteEnd
public static ObserveEvent dataWriteEnd(Prefix sourcePrefix, ExposureId exposureId, String filename) -
exposureAborted
-
exposureState
public static ObserveEvent exposureState(Prefix sourcePrefix, ExposureId exposureId, boolean exposureInProgress, boolean abortInProgress, boolean isAborted, String errorMessage, OperationalState operationalState) -
create
-
create
public static ObserveEvent create(Prefix sourcePrefix, ExposureId exposureId, EventName eventName, String filename)
-