Package com.ehealthsystem.map
Class DoctorDistance
java.lang.Object
com.ehealthsystem.map.DoctorDistance
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNeeded for the FoundDoctorController the doctor doesn't have any values at the beginning assignedDoctorDistance
(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 -
Method Summary
Modifier and TypeMethodDescriptiondouble
get the distance from doctor to userget the doctorget the doctors geodata
-
Field Details
-
Constructor Details
-
DoctorDistance
public DoctorDistance()Needed for the FoundDoctorController the doctor doesn't have any values at the beginning assigned -
DoctorDistance
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 usergeodata
- geo data of the doctordoctor
- doctor object which indicates which doctor
-
-
Method Details
-
getDistance
public double getDistance()get the distance from doctor to user- Returns:
-
getGeoData
get the doctors geodata- Returns:
-
getDoctor
get the doctor- Returns:
-