java.lang.Object
com.prog3.ipt.Model.LineRide.RideLineFX
RideLineFX is a class made to display content in InfoView JavaFX object.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRideLineFX
(Line line) RideLineFX constructor Builds a RideLineFX object according to the Line objectRideLineFX
(Ride ride) RideLineFX constructor Builds a RideLineFX object according to the Ride objectRideLineFX
(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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
private void
setLineActivationDate
(LocalDate lineActivationDate) private void
setLineClosingHour
(Time lineClosingHour) private void
private void
setLineLength
(Integer lineLength) private void
setLineOpeningHour
(Time lineOpeningHour) private void
setLineStartStation
(String lineStartStation) private void
setLineStopStation
(String lineStopStation) 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
-
lineID
-
lineLength
-
lineStartStation
-
lineStopStation
-
lineActivationDate
-
lineOpeningHour
-
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 riderideStatus
- Status of the ride meaning what ride is doingrideStartingHour
- Departure time of the riderideEndingHour
- Arrival time of the rideridePriority
- Ride prioritylineID
- Index which uniquely identifies a linelineLength
- Line length expressed in kilometerslineStartStation
- Line start stationlineStopStation
- Line end stationlineActivationDate
- Line activation datelineOpeningHour
- Departure time of the first ride of the linelineClosingHour
- Arrival time of the last ride of the line
-
RideLineFX
RideLineFX constructor Builds a RideLineFX object according to the Ride object- Parameters:
ride
- A reference to a generic Ride object
-
RideLineFX
RideLineFX constructor Builds a RideLineFX object according to the Line object- Parameters:
line
- A reference to a generic Line object
-
-
Method Details
-
setRideID
-
setRideStatus
-
setRideStartingHour
-
setRideEndingHour
-
setRidePriority
-
setLineID
-
setLineLength
-
setLineStartStation
-
setLineStopStation
-
setLineActivationDate
-
setLineOpeningHour
-
setLineClosingHour
-
getRideID
-
getRideStatus
-
getRideStartingHour
-
getRideEndingHour
-
getRidePriority
-
getLineID
-
getLineLength
-
getLineStartStation
-
getLineStopStation
-
getLineActivationDate
-
getLineOpeningHour
-
getLineClosingHour
-
equals
-
hashCode
public int hashCode() -
toString
-