Class RideLineFX

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

public class RideLineFX extends Object
RideLineFX is a class made to display content in InfoView JavaFX object.
  • Field Details

    • rideID

      private String rideID
    • rideStatus

      private String rideStatus
    • rideStartingHour

      private Time rideStartingHour
    • rideEndingHour

      private Time rideEndingHour
    • ridePriority

      private Integer ridePriority
    • lineID

      private String lineID
    • lineLength

      private Integer lineLength
    • lineStartStation

      private String lineStartStation
    • lineStopStation

      private String lineStopStation
    • lineActivationDate

      private LocalDate lineActivationDate
    • lineOpeningHour

      private Time lineOpeningHour
    • lineClosingHour

      private Time lineClosingHour
  • Constructor Details

    • RideLineFX

      public RideLineFX(String rideID, String rideStatus, Time rideStartingHour, Time rideEndingHour, Integer ridePriority, String lineID, Integer lineLength, String lineStartStation, String lineStopStation, LocalDate lineActivationDate, Time lineOpeningHour, Time lineClosingHour)
      RideLineFX 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
      lineID - Index which uniquely identifies a line
      lineLength - Line length expressed in kilometers
      lineStartStation - Line start station
      lineStopStation - Line end station
      lineActivationDate - Line activation date
      lineOpeningHour - Departure time of the first ride of the line
      lineClosingHour - Arrival time of the last ride of the line
    • RideLineFX

      public RideLineFX(Ride ride)
      RideLineFX constructor Builds a RideLineFX object according to the Ride object
      Parameters:
      ride - A reference to a generic Ride object
    • RideLineFX

      public RideLineFX(Line line)
      RideLineFX constructor Builds a RideLineFX object according to the Line object
      Parameters:
      line - A reference to a generic Line object
  • 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)
    • setLineID

      private void setLineID(String lineID)
    • setLineLength

      private void setLineLength(Integer lineLength)
    • setLineStartStation

      private void setLineStartStation(String lineStartStation)
    • setLineStopStation

      private void setLineStopStation(String lineStopStation)
    • setLineActivationDate

      private void setLineActivationDate(LocalDate lineActivationDate)
    • setLineOpeningHour

      private void setLineOpeningHour(Time lineOpeningHour)
    • setLineClosingHour

      private void setLineClosingHour(Time lineClosingHour)
    • getRideID

      public String getRideID()
    • getRideStatus

      public String getRideStatus()
    • getRideStartingHour

      public Time getRideStartingHour()
    • getRideEndingHour

      public Time getRideEndingHour()
    • getRidePriority

      public Integer getRidePriority()
    • getLineID

      public String getLineID()
    • getLineLength

      public Integer getLineLength()
    • getLineStartStation

      public String getLineStartStation()
    • getLineStopStation

      public String getLineStopStation()
    • getLineActivationDate

      public LocalDate getLineActivationDate()
    • getLineOpeningHour

      public Time getLineOpeningHour()
    • getLineClosingHour

      public Time getLineClosingHour()
    • 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