-
public final class BusLocationRepresents the location of a bus on the map.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringvehicleCodeprivate final LocalDateTimetimeprivate final Coordinatescoordinatesprivate final IntegerrouteID
-
Constructor Summary
Constructors Constructor Description BusLocation(String vehicleCode, LocalDateTime time, Coordinates coordinates, Integer routeID)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final LocalDateTimecomponent2()final Coordinatescomponent3()final Integercomponent4()final BusLocationcopy(String vehicleCode, LocalDateTime time, Coordinates coordinates, Integer routeID)final StringgetVehicleCode()final LocalDateTimegetTime()final CoordinatesgetCoordinates()final IntegergetRouteID()-
-
Constructor Detail
-
BusLocation
BusLocation(String vehicleCode, LocalDateTime time, Coordinates coordinates, Integer routeID)
- Parameters:
vehicleCode- Code of the bus.time- Time the location was reported.coordinates- Coordinates of the bus location.routeID- Internal ID of the route the bus is performing.
-
-
Method Detail
-
component1
final String component1()
-
component2
final LocalDateTime component2()
-
component3
final Coordinates component3()
-
component4
final Integer component4()
-
copy
final BusLocation copy(String vehicleCode, LocalDateTime time, Coordinates coordinates, Integer routeID)
- Parameters:
vehicleCode- Code of the bus.time- Time the location was reported.coordinates- Coordinates of the bus location.routeID- Internal ID of the route the bus is performing.
-
getVehicleCode
final String getVehicleCode()
-
getTime
final LocalDateTime getTime()
-
getCoordinates
final Coordinates getCoordinates()
-
getRouteID
final Integer getRouteID()
-
-
-
-