java.lang.Object
com.prog3.ipt.Model.LineRide.Line
Line is a class that represents a line stored into the system's database
-
Field Summary
-
Constructor Summary
-
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) toString()
-
Field Details
-
lineID
-
lineLength
-
lineStartStation
-
lineStopStation
-
lineActivationDate
-
lineOpeningHour
-
lineClosingHour
-
-
Constructor Details
-
Line
public Line(String lineID, Integer lineLength, String lineStartStation, String lineStopStation, LocalDate lineActivationDate, Time lineOpeningHour, Time lineClosingHour) Line constructor- Parameters:
lineID
- 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
-
-
Method Details
-
setLineID
-
setLineLength
-
setLineStartStation
-
setLineStopStation
-
setLineActivationDate
-
setLineOpeningHour
-
setLineClosingHour
-
getLineID
-
getLineLength
-
getLineStartStation
-
getLineStopStation
-
getLineActivationDate
-
getLineOpeningHour
-
getLineClosingHour
-
equals
-
hashCode
public int hashCode() -
toString
-