-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.GPSPoint,it.unibo.alchemist.model.interfaces.GeoPosition,it.unibo.alchemist.model.interfaces.Position,it.unibo.alchemist.model.interfaces.Position2D,java.io.Serializable,java.lang.Comparable
public final class GPSPointImpl implements GPSPoint
-
-
Constructor Summary
Constructors Constructor Description GPSPointImpl(double latitude, double longitude, Time time)GPSPointImpl(LatLongPosition latlong, Time time)
-
Method Summary
Modifier and Type Method Description GPSPointImpladdTime(Time t)List<GeoPosition>boundingBox(double range)intcompareTo(GPSPoint p)booleanequals(Object obj)Array<double>getCoordinates()doublegetCoordinate(int dim)GeoPositionplus(GeoPosition other)GeoPositionplus(@Nonnull() Array<double> other)GeoPositionminus(GeoPosition other)GeoPositionminus(@Nonnull() Array<double> other)intgetDimensions()doubledistanceTo(GeoPosition otherPosition)doublegetLatitude()doublegetLongitude()TimegetTime()doublegetX()doublegetY()inthashCode()GPSPointImplsubtractTime(Time t)StringtoString()-
-
Constructor Detail
-
GPSPointImpl
GPSPointImpl(double latitude, double longitude, Time time)
- Parameters:
latitude- latitudelongitude- longitudetime- time
-
GPSPointImpl
GPSPointImpl(LatLongPosition latlong, Time time)
- Parameters:
latlong- latitude and longitudetime- time
-
-
Method Detail
-
addTime
GPSPointImpl addTime(Time t)
- Parameters:
t- time to add to the point's time
-
boundingBox
List<GeoPosition> boundingBox(double range)
-
getCoordinates
Array<double> getCoordinates()
-
getCoordinate
double getCoordinate(int dim)
-
plus
GeoPosition plus(GeoPosition other)
-
plus
@Nonnull() GeoPosition plus(@Nonnull() Array<double> other)
-
minus
GeoPosition minus(GeoPosition other)
-
minus
@Nonnull() GeoPosition minus(@Nonnull() Array<double> other)
-
getDimensions
int getDimensions()
-
distanceTo
double distanceTo(GeoPosition otherPosition)
-
getLatitude
double getLatitude()
-
getLongitude
double getLongitude()
-
getX
double getX()
-
getY
double getY()
-
hashCode
int hashCode()
-
subtractTime
GPSPointImpl subtractTime(Time t)
- Parameters:
t- time to subtract to the point's time
-
-
-
-