|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.onebusaway.transit_data_federation.services.blocks.ScheduledBlockLocation
public class ScheduledBlockLocation
Constructor Summary | |
---|---|
ScheduledBlockLocation()
|
Method Summary | |
---|---|
BlockTripEntry |
getActiveTrip()
Should never be null, even if the trip is not in service. |
BlockStopTimeEntry |
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()
|
CoordinatePoint |
getLocation()
|
BlockStopTimeEntry |
getNextStop()
|
int |
getNextStopTimeOffset()
|
double |
getOrientation()
In degrees, 0º is East, 90º is North, 180º is West, and 270º is South |
int |
getScheduledTime()
|
int |
getStopTimeIndex()
|
boolean |
isInService()
A scheduled block location can exist but not be considered "in service" in the following cases: 1) The scheduled block location is requested for a scheduled time that is before the official start time of the block. |
void |
setActiveTrip(BlockTripEntry activeTrip)
|
void |
setClosestStop(BlockStopTimeEntry closestStop)
|
void |
setClosestStopTimeOffset(int closestStopTimeOffset)
|
void |
setDistanceAlongBlock(double distanceAlongBlock)
|
void |
setInService(boolean inService)
|
void |
setLocation(CoordinatePoint location)
|
void |
setNextStop(BlockStopTimeEntry nextStop)
|
void |
setNextStopTimeOffset(int nextStopTimeOffset)
|
void |
setOrientation(double orientation)
|
void |
setScheduledTime(int scheduledTime)
|
void |
setStopTimeIndex(int stopTimeIndex)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScheduledBlockLocation()
Method Detail |
---|
public BlockTripEntry getActiveTrip()
public void setActiveTrip(BlockTripEntry activeTrip)
public int getScheduledTime()
public void setScheduledTime(int scheduledTime)
public CoordinatePoint getLocation()
public void setLocation(CoordinatePoint location)
public double getOrientation()
public void setOrientation(double orientation)
public double getDistanceAlongBlock()
public void setDistanceAlongBlock(double distanceAlongBlock)
public BlockStopTimeEntry getClosestStop()
public void setClosestStop(BlockStopTimeEntry closestStop)
public int getClosestStopTimeOffset()
public void setClosestStopTimeOffset(int closestStopTimeOffset)
public BlockStopTimeEntry getNextStop()
public void setNextStop(BlockStopTimeEntry nextStop)
public int getNextStopTimeOffset()
public void setNextStopTimeOffset(int nextStopTimeOffset)
public boolean isInService()
public void setInService(boolean inService)
public int getStopTimeIndex()
public void setStopTimeIndex(int stopTimeIndex)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |