Interface GeoPosition

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Position , it.unibo.alchemist.model.Position2D , java.io.Serializable

    
    public interface GeoPosition
     implements Position2D<P>
                        

    Represents a specific point on the Earth's surface.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract double getLatitude()
      abstract double getLongitude()
      abstract double getCoordinate(int dimension) Allows to access the value of a coordinate.
      abstract GeoPosition plus(GeoPosition other) Adds two GeoPosition.
      abstract GeoPosition minus(GeoPosition other) Subtracts the provided GeoPosition from this GeoPosition.
      • Methods inherited from class it.unibo.alchemist.model.Position2D

        getX, getY
      • Methods inherited from class it.unibo.alchemist.model.Position

        boundingBox, distanceTo, getCoordinates, getDimensions, minus, plus
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getLatitude

         abstract double getLatitude()
        Returns:

        the latitude

      • getLongitude

         abstract double getLongitude()
        Returns:

        the longitude

      • getCoordinate

        @Deprecated() abstract double getCoordinate(int dimension)

        Allows to access the value of a coordinate.

        Parameters:
        dimension -
        the dimension. E.g., in a 2-dimensional implementation, 0
        could be the X-axis and 1 the Y-axis
        Returns:

        the coordinate value