Class DoctorDistance

java.lang.Object
com.ehealthsystem.map.DoctorDistance

public class DoctorDistance extends Object
  • Field Details

    • distance

      double distance
    • geoData

      String geoData
    • doctor

      Doctor doctor
  • Constructor Details

    • DoctorDistance

      public DoctorDistance()
      Needed for the FoundDoctorController the doctor doesn't have any values at the beginning assigned
    • DoctorDistance

      public DoctorDistance(double distance, String geodata, Doctor doctor)
      set the set distance from the doctor to the user, the geodata and the indication of which doctor is meant
      Parameters:
      distance - distance from doctor to user
      geodata - geo data of the doctor
      doctor - doctor object which indicates which doctor
  • Method Details

    • getDistance

      public double getDistance()
      get the distance from doctor to user
      Returns:
    • getGeoData

      public String getGeoData()
      get the doctors geodata
      Returns:
    • getDoctor

      public Doctor getDoctor()
      get the doctor
      Returns: