public class FareRuleSet extends Object implements Serializable
Constructor and Description |
---|
FareRuleSet(FareAttribute fareAttribute) |
Modifier and Type | Method and Description |
---|---|
void |
addContains(String containsId) |
void |
addOriginDestination(String origin,
String destination) |
void |
addRoute(FeedScopedId route) |
void |
addTrip(FeedScopedId trip) |
String |
getAgency() |
FareAttribute |
getFareAttribute() |
Set<P2<String>> |
getOriginDestinations() |
Set<FeedScopedId> |
getRoutes() |
Set<FeedScopedId> |
getTrips() |
boolean |
hasAgencyDefined() |
boolean |
matches(Set<String> agencies,
String startZone,
String endZone,
Set<String> zonesVisited,
Set<FeedScopedId> routesVisited,
Set<FeedScopedId> tripsVisited) |
void |
setAgency(String agency) |
public FareRuleSet(FareAttribute fareAttribute)
public void setAgency(String agency)
public String getAgency()
public void addContains(String containsId)
public void addRoute(FeedScopedId route)
public Set<FeedScopedId> getRoutes()
public FareAttribute getFareAttribute()
public boolean hasAgencyDefined()
public void addTrip(FeedScopedId trip)
public Set<FeedScopedId> getTrips()
public boolean matches(Set<String> agencies, String startZone, String endZone, Set<String> zonesVisited, Set<FeedScopedId> routesVisited, Set<FeedScopedId> tripsVisited)
Copyright © 2019. All rights reserved.