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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()private voidsetLineActivationDate(LocalDate lineActivationDate) private voidsetLineClosingHour(Time lineClosingHour) private voidprivate voidsetLineLength(Integer lineLength) private voidsetLineOpeningHour(Time lineOpeningHour) private voidsetLineStartStation(String lineStartStation) private voidsetLineStopStation(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
-