|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.onebusaway.transit_data.model.blocks.BlockStatusBean
public final class BlockStatusBean
Status of a particular block instance, including real-time location information when available.
BlockDetailsBean
,
Serialized FormConstructor Summary | |
---|---|
BlockStatusBean()
|
Method Summary | |
---|---|
double |
computeBestDistanceAlongBlock()
|
BlockTripBean |
getActiveTrip()
|
BlockBean |
getBlock()
|
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 block. |
double |
getDistanceAlongBlock()
The vehicle's distance along the block. |
long |
getLastUpdateTime()
|
CoordinatePoint |
getLocation()
|
double |
getScheduledDistanceAlongBlock()
The vehicle's scheduled distance along the block. |
double |
getScheduleDeviation()
|
long |
getServiceDate()
|
String |
getStatus()
|
double |
getTotalDistanceAlongBlock()
|
String |
getVehicleId()
|
boolean |
isDistanceAlongBlockSet()
|
boolean |
isInService()
|
boolean |
isPredicted()
|
boolean |
isScheduleDeviationSet()
|
void |
setActiveTrip(BlockTripBean activeTrip)
|
void |
setBlock(BlockBean block)
|
void |
setClosestStop(StopBean closestStop)
|
void |
setClosestStopTimeOffset(int closestStopTimeOffset)
See description in getClosestStopTimeOffset() . |
void |
setDistanceAlongBlock(double distanceAlongBlock)
See description in getDistanceAlongBlock() . |
void |
setInService(boolean inService)
|
void |
setLastUpdateTime(long lastUpdateTime)
|
void |
setLocation(CoordinatePoint location)
|
void |
setPredicted(boolean predicted)
|
void |
setScheduledDistanceAlongBlock(double scheduledDistanceAlongBlock)
|
void |
setScheduleDeviation(double scheduleDeviation)
|
void |
setServiceDate(long serviceDate)
|
void |
setStatus(String status)
|
void |
setTotalDistanceAlongBlock(double totalDistanceAlongBlock)
|
void |
setVehicleId(String vehicleId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockStatusBean()
Method Detail |
---|
public BlockBean getBlock()
public void setBlock(BlockBean block)
public long getServiceDate()
public void setServiceDate(long serviceDate)
public double getScheduledDistanceAlongBlock()
public void setScheduledDistanceAlongBlock(double scheduledDistanceAlongBlock)
public double getTotalDistanceAlongBlock()
public void setTotalDistanceAlongBlock(double totalDistanceAlongBlock)
public boolean isInService()
public void setInService(boolean inService)
public String getStatus()
public void setStatus(String status)
public CoordinatePoint getLocation()
public void setLocation(CoordinatePoint location)
public BlockTripBean getActiveTrip()
public void setActiveTrip(BlockTripBean activeTrip)
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 boolean isPredicted()
public void setPredicted(boolean predicted)
public void setLastUpdateTime(long lastUpdateTime)
public long getLastUpdateTime()
public boolean isScheduleDeviationSet()
public double getScheduleDeviation()
public void setScheduleDeviation(double scheduleDeviation)
public boolean isDistanceAlongBlockSet()
getDistanceAlongBlock()
has been setpublic double getDistanceAlongBlock()
public void setDistanceAlongBlock(double distanceAlongBlock)
getDistanceAlongBlock()
.
distanceAlongBlock
- public String getVehicleId()
public void setVehicleId(String vehicleId)
public double computeBestDistanceAlongBlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |