Package gda.scan

Interface ScanPositionProvider

All Superinterfaces:
Iterable<Object>
All Known Implementing Classes:
BimorphUtils.BimorphPositionProvider, ScanPositionsTwoWay, XesScanPositionProvider

public interface ScanPositionProvider extends Iterable<Object>
Interface of object that supplied points for a scannable to be used in a ConcurrentScan
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int index)
    Returns the element at the specified position in this list.
    default Iterator<Object>
     
    int
    Returns the number of elements in this list.

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Method Details

    • get

      Object get(int index)
      Returns the element at the specified position in this list.
      Parameters:
      index - index of the element to return
      Returns:
      the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • size

      int size()
      Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
      Returns:
      the number of elements in this list
    • iterator

      default Iterator<Object> iterator()
      Specified by:
      iterator in interface Iterable<Object>