Class PlanitDemandsWriterSettings

  • All Implemented Interfaces:
    ConverterWriterSettings

    public class PlanitDemandsWriterSettings
    extends PlanitXmlWriterSettings
    implements ConverterWriterSettings
    Configurable settings for the PLANit demands writer. Note that the default decimalformat used is a maximum of 4 digits to reduce the size of the OD matrices. This can however be altered by the user if desired.
    Author:
    markr
    • Field Detail

      • DEFAULT_ORIGIN_SEPARATOR

        public static String DEFAULT_ORIGIN_SEPARATOR
        default origin separator used in matrix values element
      • DEFAULT_DESTINATION_SEPARATOR

        public static String DEFAULT_DESTINATION_SEPARATOR
        default origin separator used in matrix values element
    • Constructor Detail

      • PlanitDemandsWriterSettings

        public PlanitDemandsWriterSettings()
        Default constructor
      • PlanitDemandsWriterSettings

        public PlanitDemandsWriterSettings​(String outputPathDirectory)
        Constructor, requires user to se file name
        Parameters:
        outputPathDirectory - to use
      • PlanitDemandsWriterSettings

        public PlanitDemandsWriterSettings​(String outputPathDirectory,
                                           String fileName)
        Constructor
        Parameters:
        outputPathDirectory - to use
        fileName - to use
    • Method Detail

      • validate

        protected boolean validate()
        Validate the settings
        Overrides:
        validate in class PlanitXmlWriterSettings
        Returns:
        true when valid, false otherwise
      • getOriginSeparator

        public String getOriginSeparator()
      • setOriginSeparator

        public void setOriginSeparator​(String originSeparator)
      • getDestinationSeparator

        public String getDestinationSeparator()
      • setDestinationSeparator

        public void setDestinationSeparator​(String destinationSeparator)