public final class CoverageResults extends Object
Constructor and Description |
---|
CoverageResults(List<CoverageGridPointWithResults> gridPoints)
Create a new instance based on the given grid points.
|
CoverageResults(Scalar totalWeight,
List<CoverageGridPointWithResults> gridPoints)
Create a new instance based on the given grid points and total statistical weight.
|
Modifier and Type | Method and Description |
---|---|
CoverageResults |
applyFilter(CoverageFilter filter)
Applies the given filter to this result and returns a new result.
|
CoverageGridPointWithResults |
findNearestGridPoint(Cartesian cartesianLocation)
Given a cartesian location find the nearest grid point according to physical distance.
|
CoverageGridPointWithResults |
findNearestGridPoint(Cartographic location)
Given a planetodetic cartographic location, find the nearest grid point according to physical distance.
|
CoverageGridPointWithResults |
findNearestGridPoint(Point location,
JulianDate date)
Given a
Point and a date, find the nearest grid point according to physical distance. |
CoverageGridPointWithResults |
findNearestGridPointAtTime(Cartesian cartesianLocation,
JulianDate date)
Given a cartesian location and date, find the nearest grid point according to physical distance.
|
List<CoverageGridPointWithResults> |
getGridPoints()
Gets a list of grid points.
|
Scalar |
getTotalWeight()
Gets a
Scalar representing the total weight for all the points. |
public CoverageResults(@Nonnull List<CoverageGridPointWithResults> gridPoints)
gridPoints
- The list of grid points with their coverage results.public CoverageResults(Scalar totalWeight, List<CoverageGridPointWithResults> gridPoints)
totalWeight
- The sum of the individual weights of the points in the grid.gridPoints
- The list of grid points with their coverage results.public final List<CoverageGridPointWithResults> getGridPoints()
public final Scalar getTotalWeight()
Scalar
representing the total weight for all the points.@Nullable public final CoverageGridPointWithResults findNearestGridPoint(@Nonnull Cartographic location)
This method only works for static grids in the reference frame where the grid is created.
location
- The planetodetic location at which to search.GridPoints
(get
) is empty or the CentralBody
is null
on the grid points, this returns null
.@Nullable public final CoverageGridPointWithResults findNearestGridPoint(@Nonnull Cartesian cartesianLocation)
This method only works for static grids in the reference frame where the grid is created. The grid point position will be evaluated at the start of availability.
cartesianLocation
- The location at which to search.GridPoints
(get
) is empty, this returns null.IllegalStateException
- Thrown if the points do not have overlapping availability.@Nullable public final CoverageGridPointWithResults findNearestGridPointAtTime(@Nonnull Cartesian cartesianLocation, @Nonnull JulianDate date)
cartesianLocation
- The location at which to search.date
- The date at which to query the grid's location.GridPoints
(get
) is empty, this returns null.@Nullable public final CoverageGridPointWithResults findNearestGridPoint(Point location, @Nonnull JulianDate date)
Point
and a date, find the nearest grid point according to physical distance.
This method observes all grid points in the input query point's reference frame.
location
- The location at which to search.date
- The date at which to query the grid's location.GridPoints
(get
) is empty, this returns null.@Nonnull public final CoverageResults applyFilter(CoverageFilter filter)
filter
- The filter indicating whether any given interval satisfies coverage.