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.gtfs |
Contains classes for reading and writing GTFS configuration data.
|
org.transitime.ipc.data |
This package contains the low-level objects that are transmitted to
the clients via RMI.
|
Modifier and Type | Method and Description |
---|---|
Block |
VehicleState.getBlock()
The current block assignment.
|
Block |
SpatialMatch.getBlock() |
Block |
BlockAssigner.getBlockAssignment(AvlReport avlReport)
Gets the appropriate block associated with the AvlReport.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Block> |
BlocksInfo.getBlocksAboutToStart(int beforeStartTimeSecs)
Looks at all blocks that are for the current service ID and returns list
of ones that will start within beforeStartTimeSecs.
|
static java.util.List<Block> |
BlocksInfo.getCurrentlyActiveBlocks()
Returns list of blocks that are currently active.
|
static java.util.List<Block> |
BlocksInfo.getCurrentlyActiveBlocks(java.util.Collection<java.lang.String> routeIds,
java.util.Set<java.lang.String> blockIdsToIgnore,
int allowableBeforeTimeSecs,
int allowableAfterStartTimeSecs)
Returns list of blocks that are currently active for the specified
routes.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<SpatialMatch> |
SpatialMatcher.getSpatialMatches(AvlReport avlReport,
Block block,
java.util.List<Trip> tripsToInvestigate)
Goes through the Block assignment data and determines the closest spatial
matches.
|
static java.util.List<SpatialMatch> |
SpatialMatcher.getSpatialMatchesIgnoringLayovers(AvlReport avlReport,
Block block,
java.util.List<Trip> tripsToInvestigate)
Goes through the Block assignment data and determines the closest spatial
matches that are not for layovers.
|
void |
VehicleState.setBlock(Block newBlock,
BlockAssignmentMethod assignmentMethod,
java.lang.String assignmentId,
boolean predictable)
Sets the block assignment for vehicle.
|
Constructor and Description |
---|
SpatialMatch(long avlTime,
Block block,
int tripIndex,
int stopPathIndex,
int segmentIndex,
double distanceToSegment,
double distanceAlongSegment)
Member Functions
|
VehicleAtStopInfo(Block block,
int tripIndex,
int stopPathIndex) |
Modifier and Type | Method and Description |
---|---|
Block |
Trip.getBlock()
Returns the Block that the Trip is associated with.
|
Block |
ArrivalDeparture.getBlock()
Note that the block is a transient element so will not be available if
this object was read from the database.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Block> |
Block.getBlocks(org.hibernate.Session session,
int configRev)
Returns list of Block objects for the specified configRev
|
Constructor and Description |
---|
Arrival(java.lang.String vehicleId,
java.util.Date time,
java.util.Date avlTime,
Block block,
int tripIndex,
int pathIndex)
Simple constructor
|
Departure(java.lang.String vehicleId,
java.util.Date time,
java.util.Date avlTime,
Block block,
int tripIndex,
int stopPathIndex)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
Block |
DbConfig.getBlock(java.lang.String serviceId,
java.lang.String blockId)
Returns the block specified by the service and block ID parameters.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Block> |
GtfsData.getBlocks() |
java.util.List<Block> |
DbConfig.getBlocks()
Returns unmodifiable list of blocks for the agency.
|
java.util.Collection<Block> |
DbConfig.getBlocks(java.lang.String serviceId)
Returns unmodifiable collection of blocks associated with the specified
serviceId.
|
java.util.Collection<Block> |
DbConfig.getBlocksForAllServiceIds(java.lang.String blockId)
Returns blocks for the specified blockId for all service IDs.
|
java.util.List<Block> |
DbConfig.getBlocksForRoute(java.lang.String routeId)
Returns List of Blocks associated with the routeId for all service IDs.
|
java.util.List<Block> |
DbConfig.getBlocksForRoute(java.lang.String serviceId,
java.lang.String routeId)
Returns List of Blocks associated with the serviceId and routeId.
|
java.util.List<Block> |
BlocksProcessor.process(int configRev)
Actually processes the trips into block assignments.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<IpcSchedule> |
IpcSchedule.createSchedules(Route route,
java.util.List<Block> blocksForRoute)
Creates a IpcSchedule for each service ID and each direction for the
blocks for the route.
|
Constructor and Description |
---|
IpcBlock(Block dbBlock)
Member Functions
|