Package | Description |
---|---|
org.transitime.core |
Contains the core classes that process the AVL data and create predictions,
arrival/departure times, headway, etc.
|
org.transitime.db.structs |
Contains the descriptions of the classes for the objects that are read
and written to the database.
|
org.transitime.utils |
Contains the utility classes that are used by many parts of the project.
|
Modifier and Type | Method and Description |
---|---|
Vector |
SpatialMatch.getSegmentVector()
Returns the vector for the segment for this SpatialMatch.
|
Modifier and Type | Class and Description |
---|---|
class |
VectorWithHeading
Inherits from Vector but automatically calculates the heading.
|
Modifier and Type | Method and Description |
---|---|
Vector |
Vector.beginning(double beginningLength)
Returns the first part of the vector that is the length specified.
|
Vector |
Vector.end(double beginningLength)
Returns the last part of the vector, starting after the beginningLength
|
Vector |
Block.getSegmentVector(int tripIndex,
int stopPathIndex,
int segmentIndex)
Returns the Vector of the segment specified.
|
Vector |
Vector.middle(double length1,
double length2)
Returns the middle of this vector that starts at length1 and
ends at length2.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Vector> |
Route.getPathSegments()
Returns unordered collection of path vectors associated with route
|
Modifier and Type | Method and Description |
---|---|
double |
Location.distance(Vector v)
Returns distance in meters between location and the
closest match to the specified Vector.
|
double |
Location.matchDistanceAlongVector(Vector v)
Returns length along vector where this location is closest
to the vector.
|
Modifier and Type | Method and Description |
---|---|
static double |
Geo.distance(Location loc,
Vector vector)
Determines the distance between a location and a vector.
|
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.
|