Class FuzzyPosition
java.lang.Object
org.deltava.beans.schedule.GeoPosition
org.deltava.beans.stats.FuzzyPosition
- All Implemented Interfaces:
Serializable, GeoLocation, GeospaceLocation
A bean to store a location with a predetermined error value.
- Since:
- 5.4
- Version:
- 5.4
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from interface GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in miles. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class GeoPosition
equals, getAltitude, getDegrees, getLatitude, getLongitude, getMinutes, getSeconds, hashCode, midPoint, setAltitude, setLatitude, setLatitude, setLongitude, setLongitude, toStringModifier and TypeMethodDescriptionbooleanCalculates equality by determining if the two positions are within 1 mile of each other.intReturns the altitude of this position.static intgetDegrees(double latlon) Helper method to return back the degrees component of a latitude or longitude.doubleGet the latitude of this position.doubleGet the longitude of this position.static intgetMinutes(double latlon) Helper method to return back the minutes component of a latitude or longitude.static doublegetSeconds(double latlon) Helper method to return back the seconds component of a latitude or longitude.inthashCode()midPoint(GeoLocation gp2) Calculates the midpoint of a Great Circle route between two GeoPositions.voidsetAltitude(int alt) Updates the altitude of this position.voidsetLatitude(double lat) Sets the latitude and ensures its validity.voidsetLatitude(int deg, int min, int sec) Set the latitude using a degree/minute/second combo.voidsetLongitude(double lng) Sets the longitude and ensures its validity.voidsetLongitude(int deg, int min, int sec) Set the longitude using a degree/minute/second combo.toString()Methods inherited from interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.
-
Constructor Details
-
FuzzyPosition
Creates the bean.- Parameters:
loc- the GeoLocationh- the error value
-
-
Method Details
-
getH
public float getH()Returns the error value for this location.- Returns:
- the error value in miles
-