- All Implemented Interfaces:
Direction<BusDirection>
,Location
,Reference.Route<Bus.Route>
,Reference.Stop<Bus.Stop>
,Reference.Trip<Bus.Trip>
,Updatable
,BusRouteTypes
- Enclosing class:
Bus
public abstract static class Bus.Vehicle
extends TransitVehicle<String,Bus.Route,Integer,Bus.Stop,Integer,Bus.Trip>
implements Location, Direction<BusDirection>, BusRouteTypes
Represents a bus vehicle.
- Since:
- 1.0.0
- Version:
- 2.0.0
- Author:
- Katsute
-
Constructor Summary
-
Method Summary
Methods inherited from class dev.katsute.onemta.types.TransitVehicle
getRouteID, getStopID, getVehicleID
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.katsute.onemta.bus.BusRouteTypes
isExpress, isLimited, isSelectBusService, isShuttle
Methods inherited from interface dev.katsute.onemta.attribute.Direction
getDirection
Methods inherited from interface dev.katsute.onemta.attribute.Location
getLatitude, getLongitude
Methods inherited from interface dev.katsute.onemta.attribute.Reference.Route
getRoute
Methods inherited from interface dev.katsute.onemta.attribute.Reference.Stop
getStop
Methods inherited from interface dev.katsute.onemta.attribute.Reference.Trip
getTrip
-
Constructor Details
-
Vehicle
public Vehicle()
-
-
Method Details
-
getBearing
Returns the vehicle bearing, 0 being North.- Returns:
- bearing
- Since:
- 1.0.0
-
getPassengers
Returns the estimated passenger count.- Returns:
- passenger count
- Since:
- 2.0.0
-