Class SituationQueryBean

  • All Implemented Interfaces:
    Serializable

    public class SituationQueryBean
    extends Object
    implements Serializable
    A situation query has the following semantics. The semantics of specifying multiple ids within an SituationQueryBean.AffectsBean is an AND relationship. As an example, specifying routeId + directionId indicates a match against alerts affecting the specified route and direction. By the same token, specifying tripId + stopId would indicate a match against alerts affecting the specified trip and stop. The semantics of specifying multiple AffectsBeans in the query is an OR relationship. To find an alert affecting any stop in a collection of stops, you'd create an SituationQueryBean.AffectsBean for each stop with stopId set and add them all to the query.
    Author:
    bdferris
    See Also:
    Serialized Form