public class TimeoutHandlerModule extends Module
Note: only predictable vehicles are timed out. This is because vehicles that are not in service are likely to get turned off and not report their position for a long period of time. Plus since they are already not predictable there is no need to be make them unpredictable when there is a timeout.
Constructor and Description |
---|
TimeoutHandlerModule(java.lang.String agencyId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
handlePossibleTimeouts()
Goes through all vehicles and finds ones that have timed out
|
void |
run() |
void |
storeAvlReport(AvlReport avlReport)
Stores the specified AVL report into map so know the last time received
AVL data for the vehicle.
|
public TimeoutHandlerModule(java.lang.String agencyId)
public void storeAvlReport(AvlReport avlReport)
avlReport
- AVL report to storepublic void handlePossibleTimeouts()
public void run()