Package org.deltava.beans.wx
Class GRIBResult<T extends GeoLocation>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
org.deltava.beans.wx.GRIBResult<T>
- Type Parameters:
T
- the data type
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
,SequencedCollection<T>
,GeoLocation
A collection to store a gridded result from a GRIB file, tracking the corners of the grid.
- Since:
- 5.2
- Version:
- 7.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES
-
Constructor Summary
ConstructorDescriptionGRIBResult
(int w, int h, float dLat, float dLng) Initializes the collection. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the latitude of this location.double
Returns the longitude of this location.getNW()
getResult
(GeoLocation loc) getSE()
void
setStart
(float lat, float lng) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
Methods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
GRIBResult
public GRIBResult(int w, int h, float dLat, float dLng) Initializes the collection.- Parameters:
w
- the widthh
- the heightdLat
- the latitude delta in degreesdLng
- the longitude delta in degrees
-
-
Method Details
-
setStart
public void setStart(float lat, float lng) -
getLatitude
public double getLatitude()Description copied from interface:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in interfaceGeoLocation
- Returns:
- the longitude in degrees
-
getNW
-
getSE
-
getResult
-