|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.onebusaway.transit_data_federation.services.realtime.BlockLocation
public class BlockLocation
Vehicle position information for a particular block.
Constructor Summary | |
---|---|
BlockLocation()
|
Method Summary | |
---|---|
boolean |
areScheduleDeviationsSet()
|
BlockTripEntry |
getActiveTrip()
|
BlockTripInstance |
getActiveTripInstance()
|
BlockInstance |
getBlockInstance()
|
BlockStopTimeEntry |
getClosestStop()
The closest stop to the current position of the transit vehicle among the stop times of the current trip. |
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 |
getDistanceAlongBlock()
If the trip is not in service (see isInService() ), this value will
be Double.NaN . |
int |
getEffectiveScheduleTime()
The effective schedule time measures the progress of the transit vehicle in serving the underlying schedule. |
double |
getLastKnownDistanceAlongBlock()
|
CoordinatePoint |
getLastKnownLocation()
|
double |
getLastKnownOrientation()
In degrees, 0º is East, 90º is North, 180º is West, and 270º is South |
long |
getLastLocationUpdateTime()
|
long |
getLastUpdateTime()
|
CoordinatePoint |
getLocation()
|
BlockStopTimeEntry |
getNextStop()
The next upcoming stop to the current position of the transit vehicle among the stop times of the current trip. |
int |
getNextStopTimeOffset()
The time offset, in seconds, from the next stop to the current position of the transit vehicle. |
double |
getOrientation()
In degrees, 0º is East, 90º is North, 180º is West, and 270º is South |
EVehiclePhase |
getPhase()
|
double |
getScheduledDistanceAlongBlock()
If the trip is not in service (see isInService() ), this value will
be Double.NaN . |
double |
getScheduleDeviation()
If no schedule deviation data is available, this value with be Double.NaN . |
ScheduleDeviationSamples |
getScheduleDeviations()
|
String |
getStatus()
|
long |
getTime()
|
org.onebusaway.gtfs.model.AgencyAndId |
getVehicleId()
|
boolean |
isDistanceAlongBlockSet()
If the trip is non in service (see isInService() , this value with
be false. |
boolean |
isInService()
|
boolean |
isLastKnownDistanceAlongBlockSet()
|
boolean |
isLastKnownOrientationSet()
|
boolean |
isOrientationSet()
|
boolean |
isPredicted()
If real-time data is available in any form (schedule deviation, distanceAlongBlock, last known location) for this vehicle |
boolean |
isScheduledDistanceAlongBlockSet()
|
boolean |
isScheduleDeviationSet()
|
void |
setActiveTrip(BlockTripEntry activeTrip)
|
void |
setBlockInstance(BlockInstance instance)
|
void |
setClosestStop(BlockStopTimeEntry closestStop)
|
void |
setClosestStopTimeOffset(int closestStopTimeOffset)
See description in getClosestStopTimeOffset() . |
void |
setDistanceAlongBlock(double distanceAlongBlock)
|
void |
setEffectiveScheduleTime(int effectiveScheduleTime)
|
void |
setInService(boolean inService)
|
void |
setLastKnownDistanceAlongBlock(double lastKnownDistanceAlongBlock)
|
void |
setLastKnownLocation(CoordinatePoint lastKnownLocation)
|
void |
setLastKnownOrientation(double lastKnownOrientation)
|
void |
setLastLocationUpdateTime(long lastLocationUpdateTime)
|
void |
setLastUpdateTime(long lastUpdateTime)
|
void |
setLocation(CoordinatePoint location)
|
void |
setNextStop(BlockStopTimeEntry nextStop)
|
void |
setNextStopTimeOffset(int nextStopTimeOffset)
See getNextStopTimeOffset() |
void |
setOrientation(double orientation)
|
void |
setPhase(EVehiclePhase phase)
|
void |
setPredicted(boolean predicted)
|
void |
setScheduledDistanceAlongBlock(double scheduledDistanceAlongBlock)
|
void |
setScheduleDeviation(double scheduleDeviation)
|
void |
setScheduleDeviations(ScheduleDeviationSamples scheduleDeviations)
|
void |
setStatus(String status)
|
void |
setTime(long time)
|
void |
setVehicleId(org.onebusaway.gtfs.model.AgencyAndId vehicleId)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BlockLocation()
Method Detail |
---|
public long getTime()
public void setTime(long time)
public BlockInstance getBlockInstance()
public void setBlockInstance(BlockInstance instance)
public BlockTripEntry getActiveTrip()
public void setActiveTrip(BlockTripEntry activeTrip)
public BlockTripInstance getActiveTripInstance()
public boolean isInService()
public void setInService(boolean inService)
public boolean isScheduledDistanceAlongBlockSet()
public double getScheduledDistanceAlongBlock()
isInService()
), this value will
be Double.NaN
.
public void setScheduledDistanceAlongBlock(double scheduledDistanceAlongBlock)
public int getEffectiveScheduleTime()
public void setEffectiveScheduleTime(int effectiveScheduleTime)
public boolean isDistanceAlongBlockSet()
isInService()
, this value with
be false.
public double getDistanceAlongBlock()
isInService()
), this value will
be Double.NaN
. See isDistanceAlongBlockSet()
.
public void setDistanceAlongBlock(double distanceAlongBlock)
public CoordinatePoint getLocation()
public void setLocation(CoordinatePoint location)
public boolean isOrientationSet()
public double getOrientation()
public void setOrientation(double orientation)
public BlockStopTimeEntry getClosestStop()
public void setClosestStop(BlockStopTimeEntry closestStop)
public int getClosestStopTimeOffset()
public void setClosestStopTimeOffset(int closestStopTimeOffset)
getClosestStopTimeOffset()
.
closestStopTimeOffset
- the time offset from the closest stop, in
secondspublic BlockStopTimeEntry getNextStop()
public void setNextStop(BlockStopTimeEntry nextStop)
public int getNextStopTimeOffset()
public void setNextStopTimeOffset(int nextStopTimeOffset)
getNextStopTimeOffset()
nextStopTimeOffset
- public EVehiclePhase getPhase()
public void setPhase(EVehiclePhase phase)
public String getStatus()
public void setStatus(String status)
public boolean isPredicted()
public void setPredicted(boolean predicted)
public long getLastUpdateTime()
public void setLastUpdateTime(long lastUpdateTime)
public long getLastLocationUpdateTime()
public void setLastLocationUpdateTime(long lastLocationUpdateTime)
public boolean isLastKnownDistanceAlongBlockSet()
public double getLastKnownDistanceAlongBlock()
public void setLastKnownDistanceAlongBlock(double lastKnownDistanceAlongBlock)
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()
Double.NaN
.
public void setScheduleDeviation(double scheduleDeviation)
scheduleDeviation
- schedule deviation, in seconds, (+deviation is
late, -deviation is early)public boolean areScheduleDeviationsSet()
public ScheduleDeviationSamples getScheduleDeviations()
public void setScheduleDeviations(ScheduleDeviationSamples scheduleDeviations)
public org.onebusaway.gtfs.model.AgencyAndId getVehicleId()
public void setVehicleId(org.onebusaway.gtfs.model.AgencyAndId vehicleId)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |