Class SituationQueryBean
- java.lang.Object
-
- org.onebusaway.transit_data.model.service_alerts.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 anSituationQueryBean.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 anSituationQueryBean.AffectsBean
for each stop with stopId set and add them all to the query.- Author:
- bdferris
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SituationQueryBean.AffectsBean
-
Constructor Summary
Constructors Constructor Description SituationQueryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SituationQueryBean.AffectsBean>
getAffects()
long
getTime()
void
setAffects(List<SituationQueryBean.AffectsBean> affects)
void
setTime(long time)
-
-
-
Method Detail
-
getTime
public long getTime()
-
setTime
public void setTime(long time)
-
getAffects
public List<SituationQueryBean.AffectsBean> getAffects()
-
setAffects
public void setAffects(List<SituationQueryBean.AffectsBean> affects)
-
-