Class JSimLoggerFactory

java.lang.Object
log.JSimLoggerFactory

public class JSimLoggerFactory extends Object

Name: JSimLoggerFactory

Description: Provides a factory for loggers used to write to a CSV file during the simulation

Date: 11/dic/2009 Time: 17.09.03

Version:
1.0
Author:
Bertoli Marco
  • Constructor Details

    • JSimLoggerFactory

      public JSimLoggerFactory()
  • Method Details

    • getCSVLogger

      public static CSVLogger getCSVLogger(File file, String[] columns, boolean append, String colSep, String digitSep)
      Returns an instance of CSVLogger on a given file
      Parameters:
      file - the file we should write to
      columns - the columns for the log file
      append - true to append to an existing file. False to create a new file
      colSep - the column separator
      digitSep - the decimal digit separator
      Returns:
      the logger instance
    • remove

      public static void remove(CSVLogger logger) throws IOException
      Removes a logger from the list of all loggers and disposes it.
      Parameters:
      logger - the logger that should be removed
      Throws:
      IOException
    • removeAllLoggers

      public static void removeAllLoggers() throws IOException
      Removes all the loggers built by this factory.
      Throws:
      IOException - if an IO problem occurs