Package noaa.coastwatch.util
Class DataLocationIteratorFactory
java.lang.Object
noaa.coastwatch.util.DataLocationIteratorFactory
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 Summary
Modifier and TypeMethodDescriptioncreate
(DataLocationConstraints constraints) Creates a new iterator.static DataLocationIteratorFactory
Gets an instance of this factory.static void
Tests this class.
-
Method Details
-
getInstance
Gets an instance of this factory. -
create
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
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-