org.onebusaway.transit_data.model.trips
public final class TripStatusBean extends Object implements Serializable
Constructor and Description |
---|
TripStatusBean() |
Modifier and Type | Method and Description |
---|---|
TripBean |
getActiveTrip() |
int |
getBlockTripSequence() |
StopBean |
getClosestStop() |
int |
getClosestStopTimeOffset()
The time offset, in seconds, from the closest stop to the current position
of the transit vehicle among the stop times of the current trip.
|
double |
getDistanceAlongTrip()
The vehicle's distance along the trip.
|
FrequencyBean |
getFrequency() |
double |
getLastKnownDistanceAlongTrip() |
CoordinatePoint |
getLastKnownLocation() |
double |
getLastKnownOrientation() |
long |
getLastLocationUpdateTime() |
long |
getLastUpdateTime() |
CoordinatePoint |
getLocation() |
StopBean |
getNextStop() |
double |
getNextStopDistanceFromVehicle() |
int |
getNextStopTimeOffset()
The time offset, in seconds, from the next stop to the current position of
the transit vehicle according to the schedule.
|
double |
getOrientation()
In degrees, 0º is East, 90º is North, 180º is West, and 270º is South
|
String |
getPhase() |
StopBean |
getPreviousStop() |
double |
getPreviousStopDistanceFromVehicle() |
int |
getPreviousStopTimeOffset() |
double |
getScheduledDistanceAlongTrip()
The vehicle's scheduled distance along the trip.
|
double |
getScheduleDeviation() |
long |
getServiceDate() |
List<ServiceAlertBean> |
getSituations() |
String |
getStatus() |
double |
getTotalDistanceAlongTrip() |
String |
getVehicleId() |
boolean |
isDistanceAlongTripSet() |
boolean |
isLastKnownDistanceAlongTripSet() |
boolean |
isLastKnownOrientationSet() |
boolean |
isOrientationSet() |
boolean |
isPredicted() |
boolean |
isScheduleDeviationSet() |
void |
setActiveTrip(TripBean activeTrip) |
void |
setBlockTripSequence(int blockTripSequence) |
void |
setClosestStop(StopBean closestStop) |
void |
setClosestStopTimeOffset(int closestStopTimeOffset)
See description in
getClosestStopTimeOffset() . |
void |
setDistanceAlongTrip(double distanceAlongTrip)
See description in
getDistanceAlongTrip() . |
void |
setFrequency(FrequencyBean frequency) |
void |
setLastKnownDistanceAlongTrip(double lastKnownDistanceAlongTrip) |
void |
setLastKnownLocation(CoordinatePoint lastKnownLocation) |
void |
setLastKnownOrientation(double lastKnownOrientation) |
void |
setLastLocationUpdateTime(long lastLocationUpdateTime) |
void |
setLastUpdateTime(long time) |
void |
setLocation(CoordinatePoint location) |
void |
setNextStop(StopBean nextStop) |
void |
setNextStopDistanceFromVehicle(double d) |
void |
setNextStopTimeOffset(int nextStopTimeOffset) |
void |
setOrientation(double orientation) |
void |
setPhase(String phase) |
void |
setPredicted(boolean predicted) |
void |
setPreviousStop(StopBean previousStop) |
void |
setPreviousStopDistanceFromVehicle(double previousStopDistanceFromVehicle) |
void |
setPreviousStopTimeOffset(int previousStopTimeOffset) |
void |
setScheduledDistanceAlongTrip(double scheduledDistanceAlongTrip) |
void |
setScheduleDeviation(double scheduleDeviation) |
void |
setServiceDate(long serviceDate) |
void |
setSituations(List<ServiceAlertBean> situations) |
void |
setStatus(String status) |
void |
setTotalDistanceAlongTrip(double totalDistanceAlongTrip) |
void |
setVehicleId(String vehicleId) |
public TripBean getActiveTrip()
public void setActiveTrip(TripBean activeTrip)
public int getBlockTripSequence()
public void setBlockTripSequence(int blockTripSequence)
public long getServiceDate()
public void setServiceDate(long serviceDate)
public FrequencyBean getFrequency()
public void setFrequency(FrequencyBean frequency)
public double getScheduledDistanceAlongTrip()
public void setScheduledDistanceAlongTrip(double scheduledDistanceAlongTrip)
public double getTotalDistanceAlongTrip()
public void setTotalDistanceAlongTrip(double totalDistanceAlongTrip)
public String getPhase()
public void setPhase(String phase)
public String getStatus()
public void setStatus(String status)
public boolean isDistanceAlongTripSet()
getDistanceAlongTrip()
has been setpublic void setDistanceAlongTrip(double distanceAlongTrip)
getDistanceAlongTrip()
.distanceAlongTrip
- public double getDistanceAlongTrip()
public CoordinatePoint getLocation()
public void setLocation(CoordinatePoint location)
public boolean isOrientationSet()
public double getOrientation()
public void setOrientation(double orientation)
public StopBean getClosestStop()
public void setClosestStop(StopBean closestStop)
public int getClosestStopTimeOffset()
public void setClosestStopTimeOffset(int closestStopTimeOffset)
getClosestStopTimeOffset()
.closestStopTimeOffset
- the time offset from the closest stop, in
secondspublic StopBean getNextStop()
public void setNextStop(StopBean nextStop)
public int getNextStopTimeOffset()
public void setNextStopTimeOffset(int nextStopTimeOffset)
public double getNextStopDistanceFromVehicle()
public void setNextStopDistanceFromVehicle(double d)
public StopBean getPreviousStop()
public void setPreviousStop(StopBean previousStop)
public int getPreviousStopTimeOffset()
public void setPreviousStopTimeOffset(int previousStopTimeOffset)
public double getPreviousStopDistanceFromVehicle()
public void setPreviousStopDistanceFromVehicle(double previousStopDistanceFromVehicle)
public boolean isPredicted()
public void setPredicted(boolean predicted)
public void setLastUpdateTime(long time)
public long getLastUpdateTime()
public long getLastLocationUpdateTime()
public void setLastLocationUpdateTime(long lastLocationUpdateTime)
public boolean isLastKnownDistanceAlongTripSet()
public double getLastKnownDistanceAlongTrip()
public void setLastKnownDistanceAlongTrip(double lastKnownDistanceAlongTrip)
public CoordinatePoint getLastKnownLocation()
public void setLastKnownLocation(CoordinatePoint lastKnownLocation)
public boolean isLastKnownOrientationSet()
public double getLastKnownOrientation()
public void setLastKnownOrientation(double lastKnownOrientation)
public boolean isScheduleDeviationSet()
public double getScheduleDeviation()
public void setScheduleDeviation(double scheduleDeviation)
public String getVehicleId()
public void setVehicleId(String vehicleId)
public List<ServiceAlertBean> getSituations()
public void setSituations(List<ServiceAlertBean> situations)
Copyright © 2014 OneBusAway. All Rights Reserved.