Class Ride

java.lang.Object
com.prog3.ipt.Model.LineRide.Ride

public class Ride extends Object
Ride is class which represents a ride stored into the system's database
  • Field Details

    • rideID

      private String rideID
    • rideStatus

      private String rideStatus
    • rideStartingHour

      private Time rideStartingHour
    • rideEndingHour

      private Time rideEndingHour
    • ridePriority

      private Integer 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 ride
      rideStatus - Status of the ride meaning what ride is doing
      rideStartingHour - Departure time of the ride
      rideEndingHour - Arrival time of the ride
      ridePriority - Ride priority
  • Method Details

    • setRideID

      private void setRideID(String rideID)
    • setRideStatus

      private void setRideStatus(String rideStatus)
    • setRideStartingHour

      private void setRideStartingHour(Time rideStartingHour)
    • setRideEndingHour

      private void setRideEndingHour(Time rideEndingHour)
    • setRidePriority

      private void setRidePriority(Integer ridePriority)
    • getRideID

      public String getRideID()
    • getRideStatus

      public String getRideStatus()
    • getRideStartingHour

      public Time getRideStartingHour()
    • getRideEndingHour

      public Time getRideEndingHour()
    • getRidePriority

      public Integer getRidePriority()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object