Class CsvCameraOffsetCalibrationStore
java.lang.Object
uk.ac.gda.client.live.stream.calibration.CsvCameraOffsetCalibrationStore
- All Implemented Interfaces:
CalibrationStore
A
CalibrationStore composed of CameraOffsetCalibrations
constructed from a CSV lookup table file.
The column headings in the CSV file are configurable,
but must be given in the following order:
($key), ($x scale), ($y scale), ($x offset), ($y offset),
-
Constructor Summary
ConstructorsConstructorDescriptionCsvCameraOffsetCalibrationStore(String csvFilePath, String keyHeading, String xScaleHeading, String yScaleHeading, String xOffsetHeading, String yOffsetHeading, Scannable xAxis, Scannable yAxis) This constructor takes the path of the files, the column header names, and the two scannables associated with theCameraOffsetCalibration -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String calibrationKey) Test whether a calibration associated with the given key existsRetrieve the calibration associated with the given keyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.gda.client.live.stream.calibration.CalibrationStore
getFallbackAxes
-
Constructor Details
-
CsvCameraOffsetCalibrationStore
public CsvCameraOffsetCalibrationStore(String csvFilePath, String keyHeading, String xScaleHeading, String yScaleHeading, String xOffsetHeading, String yOffsetHeading, Scannable xAxis, Scannable yAxis) This constructor takes the path of the files, the column header names, and the two scannables associated with theCameraOffsetCalibration
-
-
Method Details
-
get
Description copied from interface:CalibrationStoreRetrieve the calibration associated with the given key- Specified by:
getin interfaceCalibrationStore
-
containsKey
Description copied from interface:CalibrationStoreTest whether a calibration associated with the given key exists- Specified by:
containsKeyin interfaceCalibrationStore
-