Class SampleChangerLoadTask

java.lang.Object
gda.px.sampleChanger.SampleChangerLoadTask

public final class SampleChangerLoadTask extends Object
  • 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 plate
      sample - identifier, within holder, of sample position
      minTimeSeconds - minimum amount of time accepted for valid pin detection
      timeoutSeconds - time out for load and wait
      pinMountedScannable - getPosition is to return pinMountedValue when loaded
      pinMountedValue - e.g. Loaded
      Throws:
      InterruptedException
      ExecutionException
    • 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 plate
      sample - identifier, within holder, of sample position
      minTimeSeconds - minimum amount of time accepted for valid pin detection
      timeoutSeconds - time out for load and wait
      sampleNumberSupplier - readout of mounted pin on robot according to epics
      Throws:
      InterruptedException
      ExecutionException
    • setSampleChanger

      public void setSampleChanger(SampleChanger sampleChanger)
    • wasSampleLoaded

      public boolean wasSampleLoaded() throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException
    • wasPinDetected

      public boolean wasPinDetected() throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException
    • wasSampleLoadSuccessful

      public boolean wasSampleLoadSuccessful() throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException