All Implemented Interfaces:
Standstill

public class Visit extends AbstractPersistable implements Standstill
  • Constructor Details

    • Visit

      public Visit()
    • Visit

      public Visit(long id, Location location)
  • Method Details

    • getLocation

      public Location getLocation()
      Specified by:
      getLocation in interface Standstill
      Returns:
      never null
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPersistable