Class DataLocationIteratorFactory

java.lang.Object
noaa.coastwatch.util.DataLocationIteratorFactory

public class DataLocationIteratorFactory extends Object
The DataLocationIteratorFactory class creates a DataLocationIterator instance based on a set of parameters that specify the desired iterator behaviour.
Since:
3.3.2
Author:
Peter Hollemans
  • Method Details

    • getInstance

      public static DataLocationIteratorFactory getInstance()
      Gets an instance of this factory.
    • create

      public DataLocationIterator create(DataLocationConstraints constraints)
      Creates a new iterator.
      Parameters:
      constraints - the data location bounds and sparseness contraints.
      Returns:
      the data iterator. The number of values iterated over is determined by the constraint values.
      Throws:
      IllegalArgumentException - if inconsistencies are found in the constraints.
    • main

      public static void main(String[] argv) throws Exception
      Tests this class.
      Parameters:
      argv - the array of command line parameters.
      Throws:
      Exception