3.4. Process Unscheduled Trip Event
The process or execution of an unscheduled trip event depends on the type of event to execute. The following event types can be received:
x JPSegmentDisturbance, TripSegmentDisturbance, TripTravelerPosition: This three different types of events have in common that they notify a disturbance in one of the scheduled trip segments or in the expected traveler position. In this cases an evaluation of the possible consequences of these events is needed. Onces
this is evaluated the necessary actions are tacked in consequence. This is carried out by the function Manage
Trip Changes.
x TripModified: This event means that an existing trip has been modified or that a new trip has been created. It is also possible that the real-time options of the trip have been changed. In any of these cases the TripManager reloads the trip information from the DB and recalculates the list of scheduled trip events.
x TripNotificationAnswer: This event is the answer of the traveler to a previously received notification about the possible alternatives to a segment, scheduled in his trip, that has been disturbed. This answer specifies the alternative selected by the traveler. A new version of the trip is then created, substituting the disturbed segment with the selected alternative. Once the trip is recomposed, its list of scheduled events must be recalculated again.