Class MatsimPtServicesWriterSettings

    • Field Detail

      • AWAIT_DEPARTURE_DEFAULT

        public static final boolean AWAIT_DEPARTURE_DEFAULT
        default value aligned with MATSim default
        See Also:
        Constant Field Values
    • Constructor Detail

      • MatsimPtServicesWriterSettings

        public MatsimPtServicesWriterSettings()
        Default constructor using default output file name and Global country name
      • MatsimPtServicesWriterSettings

        public MatsimPtServicesWriterSettings​(String countryName)
        Default constructor
        Parameters:
        countryName - to use
      • MatsimPtServicesWriterSettings

        public MatsimPtServicesWriterSettings​(String outputDirectory,
                                              String countryName)
        Constructor
        Parameters:
        outputDirectory - to use
        countryName - to use
      • MatsimPtServicesWriterSettings

        public MatsimPtServicesWriterSettings​(String outputDirectory,
                                              String outputFileName,
                                              String countryName)
        Constructor
        Parameters:
        outputDirectory - to use
        outputFileName - to use
        countryName - to use
      • MatsimPtServicesWriterSettings

        public MatsimPtServicesWriterSettings​(PlanitMatsimWriterModeMappingSettings settings)
        Copy Constructor based on PlanitMatsimWriterModeMappingSettings
        Parameters:
        settings - to apply
    • Method Detail

      • logSettingsWithoutModeMapping

        protected void logSettingsWithoutModeMapping()
        Log settings but do not use parent class log settings as it is assumed this writer is always used in conjunction with MATsim network writer and we shared the mode mapping with these settings which will already be logged. todo: in future if there is a use case for the pt services to be persisted stand alone, then we can because we already have the mode mapping as part of its settings, but then we would want to log this mapping to the user in which case this method needs adjusting to be configurable, either do or do not log the mode mapping depending on the use case. Currently this mapping is simply not logged.
      • isAwaitDepartures

        public boolean isAwaitDepartures()
        Returns:
        await departures flag
      • setAwaitDepartures

        public void setAwaitDepartures​(boolean awaitDepartures)
        when set to true all transit lines by default will be flagged to await departure based on their schedule
        Parameters:
        awaitDepartures - set await departures flag