java.lang.Object
com.prog3.ipt.Model.LineRide.Ride
Ride is class which represents a ride stored into the system's database
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
private void
setRideEndingHour
(Time rideEndingHour) private void
private void
setRidePriority
(Integer ridePriority) private void
setRideStartingHour
(Time rideStartingHour) private void
setRideStatus
(String rideStatus) toString()
-
Field Details
-
rideID
-
rideStatus
-
rideStartingHour
-
rideEndingHour
-
ridePriority
-
-
Constructor Details
-
Ride
public Ride(String rideID, String rideStatus, Time rideStartingHour, Time rideEndingHour, Integer ridePriority) Ride constructor- Parameters:
rideID
- Index which uniquely identifies a riderideStatus
- Status of the ride meaning what ride is doingrideStartingHour
- Departure time of the riderideEndingHour
- Arrival time of the rideridePriority
- Ride priority
-
-
Method Details
-
setRideID
-
setRideStatus
-
setRideStartingHour
-
setRideEndingHour
-
setRidePriority
-
getRideID
-
getRideStatus
-
getRideStartingHour
-
getRideEndingHour
-
getRidePriority
-
equals
-
hashCode
public int hashCode() -
toString
-