Interface SampleEnvironmentIterator

All Known Implementing Classes:
B18SampleEnvironmentIterator, I18SampleEnvironmentIterator, I20SingleSampleIterator

public interface SampleEnvironmentIterator
To loop through a series of sample positions. At each node it is expected to perform the energy-scan data collection.

The change to the sample environment is performed within this iterator. So the next() method would be called before each energy scan.

  • Method Summary

    Modifier and Type
    Method
    Description
    Based on the current position of the iterator AFTER a call to moveToNext, what are the same details (descriptions) of the next sample to be run
    Based on the current position of the iterator AFTER a call to moveToNext, what is the name of the next sample to be run
    int
     
    void
    Move the sample environment to the next position in its array.
    void
    Do not operate hardware, but move the iteration back to the start.
  • Method Details

    • getNumberOfRepeats

      int getNumberOfRepeats()
      Returns:
      the total number of scans defined by the bean held by this object
    • next

      Move the sample environment to the next position in its array. Does not return until the sample environment change has completed.
      Throws:
      DeviceException
      InterruptedException
    • resetIterator

      void resetIterator()
      Do not operate hardware, but move the iteration back to the start. To be used when there is an external loop to the sample environment.
    • getNextSampleName

      String getNextSampleName()
      Based on the current position of the iterator AFTER a call to moveToNext, what is the name of the next sample to be run
    • getNextSampleDescriptions

      List<String> getNextSampleDescriptions()
      Based on the current position of the iterator AFTER a call to moveToNext, what are the same details (descriptions) of the next sample to be run
      Returns:
      String[]