Class StifTask

  • All Implemented Interfaces:
    Runnable

    public class StifTask
    extends Object
    implements Runnable
    Load STIF data, including the mapping between destination sign codes and trip ids, into the database
    Author:
    bdferris
    • Constructor Detail

      • StifTask

        public StifTask()
    • Method Detail

      • setLogger

        @Autowired
        public void setLogger​(MultiCSVLogger logger)
      • setGtfsMutableRelationalDao

        @Autowired
        public void setGtfsMutableRelationalDao​(org.onebusaway.gtfs.services.GtfsMutableRelationalDao gtfsMutableRelationalDao)
      • setStifPath

        public void setStifPath​(File path)
        The path of the directory containing STIF files to process
      • setStifPaths

        public void setStifPaths​(List<File> paths)
      • setNotInServiceDsc

        public void setNotInServiceDsc​(String notInServiceDsc)
      • setTripToDSCOverridePath

        public void setTripToDSCOverridePath​(String path)
      • setNotInServiceDscs

        public void setNotInServiceDscs​(List<String> notInServiceDscs)
      • setNotInServiceDscPath

        public void setNotInServiceDscPath​(File notInServiceDscPath)
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • addToMapSet

        public static final <T,​U> void addToMapSet​(Map<T,​Set<U>> mapList,
                                                         T key,
                                                         U value)
        An extremely common pattern: add an item to a set in a hash value, creating that set if necessary; based on code from OTP with permission of copyright holder (OpenPlans).
      • usesFallBackToStifBlocks

        public boolean usesFallBackToStifBlocks()
        Whether blocks should come be computed from runs (true) or read from the STIF (false)
        Returns:
      • setFallBackToStifBlocks

        public void setFallBackToStifBlocks​(boolean fallBackToStifBlocks)
      • setStifTripLoader

        public void setStifTripLoader​(StifTripLoader loader)