Package gda.px.humiditycontroller
Class HC1Dropsize
java.lang.Object
gda.factory.ConfigurableBase
gda.px.humiditycontroller.HC1DropsizeCalcBase
gda.px.humiditycontroller.HC1Dropsize
- All Implemented Interfaces:
Configurable,Findable,gda.observable.IObservable,HC1DropsizeCalc
@ServiceInterface(HC1DropsizeCalc.class)
public class HC1Dropsize
extends HC1DropsizeCalcBase
implements Configurable
HC1Dropsize utilising the OAV image processing to calculate the global min/max
of the drop curve on the sample loop, and hence from that the dropsize is calculated.
The drop size is re-calculated over time to give a drop size ratio - this represent relative drop de/rehydration.
A snap shot from the OAV is taken upon each calculation of the dropsize.
The I/O of OAV process blocks are: F1->F4->F5->F6.
OAV parameters required to do drop size calculation - including beamline specific environment parameters -
are re-set to their original values after each calculation.
-
Field Summary
Fields inherited from class gda.px.humiditycontroller.HC1DropsizeCalcBase
b, oc, t -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voidDisables the overlay on the OAVprotected voiddoubleCalculates the size of the drop on the OAVvoidEnables the overlay on the OAVgetImage()Gets the last drop imagedoubleCalculates the current dropsize divided by a previous drop size - value between 1 - 100%protected voidgetSize()booleanIndicates whether this object should be configured at startup.protected voidvoidRe-initialisation of values and states.protected voidprotected voidvoidSets the image of the dropvoidCalculates and sets the drop size on the sample in the OAVvoidsetROIasCrosshair(int width) Sets the size of the cross hair in the centre of the ROIvoidsetROIx(int lowLimit, int highLimit) Sets the coordinates that frames the Region of Interest of the Drop on the image using the explicit (x,y) coordinates of the bottom corner of rectangle, and its height and widthMethods inherited from class gda.px.humiditycontroller.HC1DropsizeCalcBase
addIObserver, deleteIObserver, deleteIObservers, getBeamdata, getDifAtxpos, getDropsize, getHighLimitX, getHighLimitY, getLowLimitX, getName, getSavedAcqPeriod, getSavedBrightness, getSavedExposure, getSavedGain, getSavedInput, getSavedZoom, getScale, getXpos, getxSize, getYpos, getySize, midpoint_x, setBackLight, setBacklightIntensity, setBeamdata, setBeamlineOAVPV, setCamera, setDifAtxpos, setDropsize, setHighLimitX, setHighLimitY, setLowLimitX, setName, setSavedAcqPeriod, setSavedBrightness, setSavedExposure, setSavedGain, setSavedInput, setSavedZoom, setXpos, setxSize, setYpos, setySizeMethods inherited from class gda.factory.ConfigurableBase
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigured
-
Constructor Details
-
HC1Dropsize
public HC1Dropsize()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
isConfigureAtStartup
public boolean isConfigureAtStartup()Description copied from interface:ConfigurableIndicates whether this object should be configured at startup.Moved from ConditionallyConfigurable which has been deleted
- Specified by:
isConfigureAtStartupin interfaceConfigurable- Overrides:
isConfigureAtStartupin classConfigurableBase
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classConfigurableBase- Throws:
FactoryException
-
enableOverlays
Description copied from interface:HC1DropsizeCalcEnables the overlay on the OAV- Specified by:
enableOverlaysin interfaceHC1DropsizeCalc- Throws:
IOException
-
disableOverlays
Description copied from interface:HC1DropsizeCalcDisables the overlay on the OAV- Specified by:
disableOverlaysin interfaceHC1DropsizeCalc- Throws:
IOException
-
setROIx
public void setROIx(int lowLimit, int highLimit) Description copied from interface:HC1DropsizeCalcSets the coordinates that frames the Region of Interest of the Drop on the image using the explicit (x,y) coordinates of the bottom corner of rectangle, and its height and width- Specified by:
setROIxin interfaceHC1DropsizeCalc
-
setROIasCrosshair
public void setROIasCrosshair(int width) Description copied from interface:HC1DropsizeCalcSets the size of the cross hair in the centre of the ROI- Specified by:
setROIasCrosshairin interfaceHC1DropsizeCalc
-
setOriginalSize
Description copied from interface:HC1DropsizeCalcCalculates and sets the drop size on the sample in the OAV- Specified by:
setOriginalSizein interfaceHC1DropsizeCalc- Throws:
IOExceptionDeviceExceptionInterruptedException
-
getRelativeSize
public double getRelativeSize()Description copied from interface:HC1DropsizeCalcCalculates the current dropsize divided by a previous drop size - value between 1 - 100%- Specified by:
getRelativeSizein interfaceHC1DropsizeCalc
-
dropsizeCalc
Description copied from interface:HC1DropsizeCalcCalculates the size of the drop on the OAV- Specified by:
dropsizeCalcin interfaceHC1DropsizeCalc- Returns:
- the drop size
- Throws:
IOExceptionDeviceExceptionInterruptedException
-
getSize
- Specified by:
getSizein classHC1DropsizeCalcBase- Throws:
IOException
-
load_arrays
protected void load_arrays()- Specified by:
load_arraysin classHC1DropsizeCalcBase
-
drawOverlay
- Specified by:
drawOverlayin classHC1DropsizeCalcBase- Throws:
IOException
-
saveOAVParameters
- Specified by:
saveOAVParametersin classHC1DropsizeCalcBase- Throws:
IOExceptionDeviceException
-
restoreOAVParameters
- Specified by:
restoreOAVParametersin classHC1DropsizeCalcBase- Throws:
IOExceptionDeviceException
-
setImage
Description copied from interface:HC1DropsizeCalcSets the image of the drop- Specified by:
setImagein interfaceHC1DropsizeCalc
-
getImage
Description copied from interface:HC1DropsizeCalcGets the last drop image- Specified by:
getImagein interfaceHC1DropsizeCalc
-