Class JSimLoggerFactory
java.lang.Object
log.JSimLoggerFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CSVLoggergetCSVLogger(File file, String[] columns, boolean append, String colSep, String digitSep) Returns an instance of CSVLogger on a given filestatic voidRemoves a logger from the list of all loggers and disposes it.static voidRemoves all the loggers built by this factory.
-
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 tocolumns- the columns for the log fileappend- true to append to an existing file. False to create a new filecolSep- the column separatordigitSep- the decimal digit separator- Returns:
- the logger instance
-
remove
Removes a logger from the list of all loggers and disposes it.- Parameters:
logger- the logger that should be removed- Throws:
IOException
-
removeAllLoggers
Removes all the loggers built by this factory.- Throws:
IOException- if an IO problem occurs
-