public abstract class MultipleFareServiceFactory extends Object implements FareServiceFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipleFareServiceFactory.AddingMultipleFareServiceFactory |
| Constructor and Description |
|---|
MultipleFareServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.fasterxml.jackson.databind.JsonNode config)
Accept several ways to define fares to compose.
|
FareService |
makeFareService() |
protected abstract FareService |
makeMultipleFareService(List<FareService> subServices) |
void |
processGtfs(org.onebusaway.gtfs.services.GtfsRelationalDao dao) |
public FareService makeFareService()
makeFareService in interface FareServiceFactoryprotected abstract FareService makeMultipleFareService(List<FareService> subServices)
public void processGtfs(org.onebusaway.gtfs.services.GtfsRelationalDao dao)
processGtfs in interface FareServiceFactorypublic void configure(com.fasterxml.jackson.databind.JsonNode config)
{ combinationStrategy : "additive",
// An array of 'fares'
fares : [ "seattle", { ... } ]
}
--------------------------
{ combinationStrategy : "additive",
// All properties starting with 'fare'
fare1 : "seattle",
fare2 : { type: "bike-rental-time-based",
prices : { ... }
} }
configure in interface FareServiceFactoryCopyright © 2018. All rights reserved.