Package gda.px.camera
Class CameraStatus
java.lang.Object
gda.px.camera.CameraStatus
- All Implemented Interfaces:
Serializable
Object for communicating the current status of a PX Camera object
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructorCameraStatus(double beamXinMM, double beamYinMM) CameraStatus(String filename) Constructor using a file holding the status infoCameraStatus(String shutterState, String raState, String expoState, double currentPosition, double detectorDistanceValue, boolean distanceValid) Constrcutor with values explicitly defined. -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublebooleanvoidGet the persisted information from a filevoidPersist this object to a filevoidsetCurrentPosition(double currentPosition) voidsetDetectorDistanceValue(double detectorDistanceValue) voidsetExpoState(String state) Sets the exposure statevoidsetRAState(String state) Sets the rotation axis statevoidsetShutterState(String state) Sets the shutter statustoString()
-
Field Details
-
beamXinMM
public double beamXinMM -
beamYinMM
public double beamYinMM
-
-
Constructor Details
-
CameraStatus
public CameraStatus(double beamXinMM, double beamYinMM) - Parameters:
beamXinMM-beamYinMM-
-
CameraStatus
public CameraStatus()Constructor -
CameraStatus
Constructor using a file holding the status info- Parameters:
filename-
-
CameraStatus
public CameraStatus(String shutterState, String raState, String expoState, double currentPosition, double detectorDistanceValue, boolean distanceValid) Constrcutor with values explicitly defined.- Parameters:
shutterState-raState-expoState-currentPosition-detectorDistanceValue-distanceValid-
-
-
Method Details
-
toString
-
getShutterState
- Returns:
- string - the shutter state
-
setShutterState
Sets the shutter status- Parameters:
state-
-
getRAState
- Returns:
- string - the rotation axis state
-
setRAState
Sets the rotation axis state- Parameters:
state-
-
getExpoState
- Returns:
- string - the exposure state
-
setExpoState
Sets the exposure state- Parameters:
state-
-
getCurrentPosition
public double getCurrentPosition()- Returns:
- current position
-
setCurrentPosition
public void setCurrentPosition(double currentPosition) - Parameters:
currentPosition-
-
getDetectorDistanceValue
public double getDetectorDistanceValue()- Returns:
- detectorDistanceValue
-
setDetectorDistanceValue
public void setDetectorDistanceValue(double detectorDistanceValue) - Parameters:
detectorDistanceValue-
-
isDistanceValid
public boolean isDistanceValid()- Returns:
- true if distance is valid
-
save
Persist this object to a file- Parameters:
filename-
-
load
Get the persisted information from a file- Parameters:
filename-
-