Package | Description |
---|---|
org.transitime.api.data |
This package contains the classes for the objects that are serialized into
JSON or XML.
|
org.transitime.avl |
Contains the classes associated with AVL feeds including reading data
from an AVL feed and providing it to the main application usually via JMS for live feeds
but also by reading data and then directly calling AvlProcessor.processAvlReport(avlReport) for
other feeds, especially batch feeds used for debugging or testing.
|
org.transitime.core |
Contains the core classes that process the AVL data and create predictions,
arrival/departure times, headway, etc.
|
org.transitime.custom.sfmta.delayTimes |
For determining how long delays are when a bus has to stop at
a 4-way stop instead of having a green traffic signal.
|
org.transitime.db.structs |
Contains the descriptions of the classes for the objects that are read
and written to the database.
|
org.transitime.gtfs |
Contains classes for reading and writing GTFS configuration data.
|
org.transitime.gtfs.gtfsStructs |
Contains the classes the correspond directly to the GTFS data.
|
org.transitime.ipc.data |
This package contains the low-level objects that are transmitted to
the clients via RMI.
|
org.transitime.ipc.interfaces |
Contains the Interfaces for communicating data via RMI between a server
and a client.
|
org.transitime.ipc.servers |
Contains the classes for the servers, such as the core prediction system,
that provide data via RMI.
|
org.transitime.utils |
Contains the utility classes that are used by many parts of the project.
|
Constructor and Description |
---|
ApiLocation(Location loc) |
Modifier and Type | Method and Description |
---|---|
Location |
NmeaGpsLocation.getLocation() |
Modifier and Type | Method and Description |
---|---|
static int |
TravelTimes.travelTimeFromLayoverArrivalToNewLoc(SpatialMatch spatialMatch,
Location newLoc)
Determines how long it should take as the crow flies from the the end of
the previous trip to the new location.
|
Modifier and Type | Method and Description |
---|---|
Location |
Loc.getLocation()
Member Functions
|
Modifier and Type | Method and Description |
---|---|
Location |
StopPath.getEndOfPathLocation()
Returns the end of the path, which is where the stop is.
|
Location |
Vector.getL1()
Returns the first Location of the Vector
|
Location |
Vector.getL2()
Returns the second Location of the Vector
|
Location |
Stop.getLoc() |
Location |
VehicleEvent.getLocation() |
Location |
AvlReport.getLocation() |
Location |
StopPath.getLocation(int index) |
Location |
Block.getStartLoc()
Returns the location of the first stop of the block.
|
Location |
StopPath.getStopLocation()
Returns the location of the stop at the end of the path.
|
Location |
Vector.locAlongVector(double length)
Returns the location that is the length specified
along the vector.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Location> |
StopPath.getLocations() |
Modifier and Type | Method and Description |
---|---|
void |
Extent.add(Location l)
Once an Extent has been constructed need to simply add
associated Locations (or Extents).
|
static VehicleEvent |
VehicleEvent.create(java.util.Date time,
java.util.Date avlTime,
java.lang.String vehicleId,
java.lang.String eventType,
java.lang.String description,
boolean predictable,
boolean becameUnpredictable,
java.lang.String supervisor,
Location location,
java.lang.String routeId,
java.lang.String routeShortName,
java.lang.String blockId,
java.lang.String serviceId,
java.lang.String tripId,
java.lang.String stopId)
Constructs a vehicle event and logs it and queues it to be stored in
database.
|
double |
Vector.distance(Location l)
Determines the distance between a location and this vector.
|
double |
Location.distance(Location l2)
Returns distance in meters between this location and the
location l2 passed in.
|
boolean |
Extent.isWithinDistance(Location loc,
double distance)
Returns true if the location is with the specified distance of this
extent.
|
double |
Vector.matchDistanceAlongVector(Location l)
Returns length along vector where this location is closest
to the vector.
|
Modifier and Type | Method and Description |
---|---|
void |
StopPath.setLocations(java.util.ArrayList<Location> locations)
Locations are not available when StopPath is first created so
need to be able to set them after construction.
|
Constructor and Description |
---|
AvlReport(java.lang.String vehicleId,
long time,
Location location,
float speed,
float heading,
java.lang.String source)
Constructor for an AvlReport object that is not yet being processed.
|
AvlReport(java.lang.String vehicleId,
long time,
Location location,
java.lang.String source)
For when speed and heading are not valid.
|
Vector(Location l1,
Location l2)
Member Functions
|
VectorWithHeading(Location l1,
Location l2)
Construct a vector and determine its heading.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<StopsByLoc.StopInfo> |
StopsByLoc.getStops(Location loc,
double maxDistance)
Gets list of stops that are within maxDistance of the specified location.
|
Modifier and Type | Method and Description |
---|---|
Location |
GtfsShape.getLocation() |
Modifier and Type | Method and Description |
---|---|
Location |
IpcStop.getLoc() |
Location |
IpcRoute.getLocationOfNextPredictedVehicle() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Location> |
IpcStopPath.getLocations() |
java.util.List<Location> |
IpcShape.getLocations() |
Modifier and Type | Method and Description |
---|---|
void |
IpcShape.add(java.util.List<Location> locs)
Adds list of locations for a stop path to the location member.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IpcPredictionsForRouteStopDest> |
PredictionsInterface.get(Location loc,
double maxDistance,
int predictionsPerStop)
Returns predictions based on the specified location.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IpcPredictionsForRouteStopDest> |
PredictionsServer.get(Location loc,
double maxDistance,
int predictionsPerStop) |
Modifier and Type | Method and Description |
---|---|
static Location |
Geo.offset(Location l,
double deltaX,
double deltaY)
Returns the Location l offset by deltaX and deltaY.
|
static Location |
Geo.rightOffsetBeginningLoc(Location l1,
Location l2,
double distance)
For determining an offset path that is the distance away from the
original path.
|
static Location |
Geo.rightOffsetEndLoc(Location l1,
Location l2,
double distance)
Just like rightOffsetBeginningLoc() except offsets l2 instead of l1.
|
static Location |
Geo.rightOffsetVertex(Location l1,
Location vertex,
Location l2,
double distance)
For shifting a path to the right.
|
Modifier and Type | Method and Description |
---|---|
static double |
Geo.distance(Location l1,
Location l2)
Returns the distance between two locations.
|
static double |
Geo.distance(Location loc,
Vector vector)
Determines the distance between a location and a vector.
|
static double |
Geo.distanceHaversine(Location l1,
Location l2)
Returns the distance between two locations.
|
static double |
Geo.distanceIfMatch(Location loc,
Vector vector)
Same as distance() but returns NaN if the location is not along the vector.
|
static double |
Geo.matchDistanceAlongVector(Location loc,
Vector vector)
Determines best match of location to the vector.
|
static Location |
Geo.offset(Location l,
double deltaX,
double deltaY)
Returns the Location l offset by deltaX and deltaY.
|
static Location |
Geo.rightOffsetBeginningLoc(Location l1,
Location l2,
double distance)
For determining an offset path that is the distance away from the
original path.
|
static Location |
Geo.rightOffsetEndLoc(Location l1,
Location l2,
double distance)
Just like rightOffsetBeginningLoc() except offsets l2 instead of l1.
|
static Location |
Geo.rightOffsetVertex(Location l1,
Location vertex,
Location l2,
double distance)
For shifting a path to the right.
|