Class Visit

    • Constructor Detail

      • Visit

        public Visit()
    • Method Detail

      • setLocation

        public void setLocation​(Location location)
      • getPreviousStandstill

        public Standstill getPreviousStandstill()
      • setPreviousStandstill

        public void setPreviousStandstill​(Standstill previousStandstill)
      • getDistanceFromPreviousStandstill

        public long getDistanceFromPreviousStandstill()
        Returns:
        a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
      • getDistanceFrom

        public long getDistanceFrom​(Standstill standstill)
        Parameters:
        standstill - never null
        Returns:
        a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
      • getDistanceTo

        public long getDistanceTo​(Standstill standstill)
        Specified by:
        getDistanceTo in interface Standstill
        Parameters:
        standstill - never null
        Returns:
        a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors