Package uk.ac.starlink.ttools.plot2
Class DataPosSequence
java.lang.Object
uk.ac.starlink.ttools.plot2.DataPosSequence
- All Implemented Interfaces:
CoordSequence
,uk.ac.starlink.util.Sequence
,uk.ac.starlink.util.Splittable<CoordSequence>
Splittable iterator over the data positions in a list of PositionClouds.
- Since:
- 13 Sep 2019
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Adaptor interface defining a cloud of positions for use with DataPosSequence. -
Constructor Summary
ConstructorsConstructorDescriptionDataPosSequence
(int ndim, DataPosSequence.PositionCloud[] clouds, DataStore dataStore) Constructor. -
Method Summary
-
Constructor Details
-
DataPosSequence
Constructor.- Parameters:
ndim
- coordinate dimensionalityclouds
- list of point clouds providing positions over which to iteratedataStore
- data storage object
-
-
Method Details
-
getCoords
public double[] getCoords()Description copied from interface:CoordSequence
Returns the array used to store the coordinates for the current position in this sequence. It contains the coordinates corresponding to the last call of theCoordSequence.next()
method. Its contents before the first call or after a call returning false are undefined.This method returns the same value throughout the lifetime of this sequence, it's only the contents that change to reflect the current state of the iteration.
- Specified by:
getCoords
in interfaceCoordSequence
-
next
public boolean next()Description copied from interface:CoordSequence
Advances to the next entry. No exception is thrown.- Specified by:
next
in interfaceCoordSequence
- Specified by:
next
in interfaceuk.ac.starlink.util.Sequence
-
split
- Specified by:
split
in interfaceuk.ac.starlink.util.Splittable<CoordSequence>
-
splittableSize
public long splittableSize()- Specified by:
splittableSize
in interfaceuk.ac.starlink.util.Splittable<CoordSequence>
-