Class FileOutputFormatter

    • Constructor Detail

      • FileOutputFormatter

        protected FileOutputFormatter​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - , contiguous id generation within this group for instances of this class
    • Method Detail

      • generateOutputFileName

        protected String generateOutputFileName​(String outputDirectory,
                                                String nameRoot,
                                                String nameExtension,
                                                TimePeriod timePeriod,
                                                OutputType outputType,
                                                long runId,
                                                int iteration)
                                         throws PlanItException
        Generates the name of an output file. All output files have no spaces in them.
        Parameters:
        outputDirectory - location output files are to be written
        nameRoot - root name of the output files
        nameExtension - extension of the output files
        timePeriod - the time period
        outputType - the OutputType of the output
        runId - the id of the traffic assignment run
        iteration - current iteration
        Returns:
        the name of the output file
        Throws:
        PlanItException - thrown if the output directory cannot be opened
      • generateOutputFileName

        protected String generateOutputFileName​(String outputDirectory,
                                                String nameRoot,
                                                String nameExtension,
                                                TimePeriod timePeriod,
                                                OutputType outputType,
                                                long runId)
                                         throws PlanItException
        Generates the name of an output file.
        Parameters:
        outputDirectory - location output files are to be written
        nameRoot - root name of the output files
        nameExtension - extension of the output files
        timePeriod - timePeriod
        outputType - the OutputType of the output
        runId - the id of the traffic assignment run
        Returns:
        the name of the output file
        Throws:
        PlanItException - thrown if the output directory cannot be opened