Package gda.px.sampleChanger
Class SampleChangerLoadTask
java.lang.Object
gda.px.sampleChanger.SampleChangerLoadTask
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSampleChanger(SampleChanger sampleChanger) voidstartLoadAndWaitForNonZeroSample(int holder, int sample, long minTimeSeconds, long timeoutSeconds, IntSupplier sampleNumberSupplier) Always call wasSampleLoaded to determine if sample load has completed If pin detection fails this function will wait until the load has completed or an exception is thrownvoidstartLoadAndWaitForPinOrSample(int holder, int sample, long minTimeSeconds, long timeoutSeconds, Scannable pinMountedScannable, String pinMountedValue) Always call wasSampleLoaded to determine if sample load has completed If pin detection fails this function will wait until the load has completed or an exception is thrownbooleanbooleanboolean
-
Constructor Details
-
SampleChangerLoadTask
public SampleChangerLoadTask()
-
-
Method Details
-
startLoadAndWaitForPinOrSample
public void startLoadAndWaitForPinOrSample(int holder, int sample, long minTimeSeconds, long timeoutSeconds, Scannable pinMountedScannable, String pinMountedValue) throws InterruptedException, ExecutionException Always call wasSampleLoaded to determine if sample load has completed If pin detection fails this function will wait until the load has completed or an exception is thrown- Parameters:
holder- index identifying sample puck or platesample- identifier, within holder, of sample positionminTimeSeconds- minimum amount of time accepted for valid pin detectiontimeoutSeconds- time out for load and waitpinMountedScannable- getPosition is to return pinMountedValue when loadedpinMountedValue- e.g. Loaded- Throws:
InterruptedExceptionExecutionException
-
startLoadAndWaitForNonZeroSample
public void startLoadAndWaitForNonZeroSample(int holder, int sample, long minTimeSeconds, long timeoutSeconds, IntSupplier sampleNumberSupplier) throws InterruptedException, ExecutionException Always call wasSampleLoaded to determine if sample load has completed If pin detection fails this function will wait until the load has completed or an exception is thrown- Parameters:
holder- index identifying sample puck or platesample- identifier, within holder, of sample positionminTimeSeconds- minimum amount of time accepted for valid pin detectiontimeoutSeconds- time out for load and waitsampleNumberSupplier- readout of mounted pin on robot according to epics- Throws:
InterruptedExceptionExecutionException
-
setSampleChanger
-
wasSampleLoaded
-
wasPinDetected
-
wasSampleLoadSuccessful
-