TripModelManager

public interface TripModelManager

Manages active trips for Journey Sharing.

Use getTripModel(String) to get a TripModel object used to monitor that trip.

Public Method Summary

abstract Set<TripModel>
getActiveTripModels()
Returns the set of all trips that are active.
abstract Set<TripModel>
getAllTripModels()
Returns the set of all trips managed by TripModelManager that is active or has a strong reference.
abstract TripModel
getTripModel(String tripName)
Returns the TripModel object that can be used to track the given tripName.

Public Methods

public abstract Set<TripModel> getActiveTripModels ()

Returns the set of all trips that are active. A trip that is "active" means it has at least one callback registered and is receiving updates from Fleet Engine.

public abstract Set<TripModel> getAllTripModels ()

Returns the set of all trips managed by TripModelManager that is active or has a strong reference. If there are no active strong references to an inactive trip, the trip object may be garbage collected.

public abstract TripModel getTripModel (String tripName)

Returns the TripModel object that can be used to track the given tripName. Will return an existing TripModel object for the given trip name when possible.

Parameters
tripName Name of the trip the returned object will track.
Returns
  • TripModel object