org.onebusaway.transit_data_federation.impl.realtime.orbcad
Class OrbcadRecord

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.realtime.orbcad.OrbcadRecord

public class OrbcadRecord
extends Object


Constructor Summary
OrbcadRecord()
           
 
Method Summary
 int getBlock()
           
 int getBlockNumber()
           
 int getDirection()
           
 double getLat()
           
 int getLogonRouteId()
           
 double getLon()
           
 String getNextSignTimepointId()
           
 int getOffRoute()
           
 int getRouteId()
           
 int getRunId()
           
 int getScheduleDeviation()
          Vehicle's schedule deviation, in seconds early [+XXXXX] or late [-XXXXX].
 int getServiceType()
           
 long getTime()
          Time of receipt of the last location report from the vehicle.
 int getTimepointArrivalTime()
           
 String getTimepointId()
           
 int getTimepointTime()
           
 int getVehicleId()
           
 boolean hasDirection()
           
 boolean hasLat()
           
 boolean hasLon()
           
 boolean hasScheduleDeviation()
           
 boolean hasServiceType()
           
 boolean hasTimepointArrivalTime()
           
 boolean hasTimepointTime()
           
 void setBlock(int block)
           
 void setBlockNumber(int blockNumber)
           
 void setDirection(int direction)
           
 void setLat(double lat)
           
 void setLogonRouteId(int logonRouteId)
           
 void setLon(double lon)
           
 void setNextSignTimepointId(String nextSignTimepointId)
           
 void setOffRoute(int offRoute)
           
 void setRouteId(int routeId)
           
 void setRunId(int runId)
           
 void setScheduleDeviation(int scheduleDeviation)
           
 void setServiceType(int serviceType)
           
 void setTime(long time)
           
 void setTimepointArrivalTime(int timepointArrivalTime)
           
 void setTimepointId(String timepointId)
           
 void setTimepointTime(int timepointTime)
           
 void setVehicleId(int vehicleId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrbcadRecord

public OrbcadRecord()
Method Detail

getVehicleId

public int getVehicleId()

setVehicleId

public void setVehicleId(int vehicleId)

getRouteId

public int getRouteId()

setRouteId

public void setRouteId(int routeId)

hasDirection

public boolean hasDirection()

getDirection

public int getDirection()

setDirection

public void setDirection(int direction)

getBlock

public int getBlock()

setBlock

public void setBlock(int block)

hasServiceType

public boolean hasServiceType()

getServiceType

public int getServiceType()

setServiceType

public void setServiceType(int serviceType)

hasScheduleDeviation

public boolean hasScheduleDeviation()

getScheduleDeviation

public int getScheduleDeviation()
Vehicle's schedule deviation, in seconds early [+XXXXX] or late [-XXXXX]. Schedule deviation resolution is in minutes not seconds. If schedule deviation is unknown (due to non-revenue service, Off-route, Logon, No Show, No Response, Deahead, NoResponse, RSA Disable, etc), this field is set to 99999.

Returns:
schedule deviation in seconds, where positive is early and negative is late

setScheduleDeviation

public void setScheduleDeviation(int scheduleDeviation)

hasTimepointArrivalTime

public boolean hasTimepointArrivalTime()

getTimepointArrivalTime

public int getTimepointArrivalTime()

setTimepointArrivalTime

public void setTimepointArrivalTime(int timepointArrivalTime)

getTimepointId

public String getTimepointId()

setTimepointId

public void setTimepointId(String timepointId)

hasTimepointTime

public boolean hasTimepointTime()

getTimepointTime

public int getTimepointTime()
Returns:
the time, in minutes past midnight, which the vehicle is scheduled to arrive at the next scheduling system timepoint

setTimepointTime

public void setTimepointTime(int timepointTime)
Parameters:
timepointTime - - the time, in minutes past midnight, which the vehicle is scheduled to arrive at the next scheduling system timepoint

hasLat

public boolean hasLat()

getLat

public double getLat()

setLat

public void setLat(double lat)

hasLon

public boolean hasLon()

getLon

public double getLon()

setLon

public void setLon(double lon)

getTime

public long getTime()
Time of receipt of the last location report from the vehicle.

Returns:
time in seconds since 00:00:00 GMT January 1, 1970

setTime

public void setTime(long time)

getLogonRouteId

public int getLogonRouteId()

setLogonRouteId

public void setLogonRouteId(int logonRouteId)

getBlockNumber

public int getBlockNumber()

setBlockNumber

public void setBlockNumber(int blockNumber)

getOffRoute

public int getOffRoute()

setOffRoute

public void setOffRoute(int offRoute)

getRunId

public int getRunId()

setRunId

public void setRunId(int runId)

getNextSignTimepointId

public String getNextSignTimepointId()

setNextSignTimepointId

public void setNextSignTimepointId(String nextSignTimepointId)


Copyright © 2012 OneBusAway. All Rights Reserved.