|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfg.oc.logfileanalyzer.LogFileAnalyzer
public class LogFileAnalyzer
The LogFileAnalyzer
is the program's main class. It determines
how log-files are imported and how histograms are created. Furthermore, it
defines the column names used in the program's tables. A
LogFileAnalyzer
is a singleton, its instance can be obtained by
using the static getInstance()
-method of this class. To adapt
the program to your needs, use the setDataImporter()
-,
setHistograms()
, and setColumnNames()
-methods. To
run the program, call its startLogFileAnalyzer()
-method.
Field Summary | |
---|---|
private boolean |
autoChart
Determines if histograms are automatically created for each table column. |
private boolean |
autoResize
Controls the auto-resize behavior of all tables. |
private String[] |
columnNames
Column names used in the table header |
private DataImporterInterface |
dataImporter
Importer responsible for reading log-files |
private Vector<ChoosableFileFilter> |
fileOpenFilters
A list of filters that are applied to mask files in the "Open"-dialog |
private Vector<AbstractHistogram> |
histograms
A list of classes that are available for displaying histograms |
private static LogFileAnalyzer |
lfa
Singleton-Instance of the LogFileAnalyzer |
private static double |
VERSION
Version number |
Constructor Summary | |
---|---|
private |
LogFileAnalyzer()
Constructor. |
Method Summary | |
---|---|
void |
addFileFilter(ChoosableFileFilter _filter)
Adds a new file filter to the list of filters used in the Open-dialog. |
void |
addHistogram(AbstractHistogram _histogram)
Adds a new histogram to the list of available histograms. |
boolean |
getAutoChart()
Returns true if histograms are automatically created for all
table columns. |
boolean |
getAutoResize()
Returns the auto-resize behavior of all tables. |
String[] |
getColumnNames()
Returns the column names of classifier tables. |
DataImporterInterface |
getDataImporter()
Returns the dataImporter used for reading log-files. |
Vector<ChoosableFileFilter> |
getFileOpenFilters()
Returns a list of file filters that are used in the "Open"-dialog. |
Vector<AbstractHistogram> |
getHistograms()
Returns the histograms that are available for visualization. |
static LogFileAnalyzer |
getInstance()
Returns the singleton instance of the LogFileAnalyzer . |
static double |
getVERSION()
Returns the version number. |
static void |
main(String[] args)
Starts the program. |
void |
setAutoChart(boolean _autoChart)
Determines if histograms are automatically created for all table columns. |
void |
setAutoResize(boolean _autoResize)
Sets the auto-resize behavior of all tables. |
void |
setColumnNames(String[] _columnNames)
Sets the column names for all tables. |
void |
setDataImporter(DataImporterInterface _dataImporter)
Sets the dataImporter used for reading log-files. |
void |
setFileOpenFilters(Vector<ChoosableFileFilter> _fileOpenFilters)
Sets a list of file filters that will used in the "Open"-dialog. |
void |
setHistograms(Vector<AbstractHistogram> _histograms)
Sets the histograms that will be available for visualization. |
void |
startLogFileAnalyzer()
Creates a new GUI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static LogFileAnalyzer lfa
private static final double VERSION
private String[] columnNames
private DataImporterInterface dataImporter
private Vector<AbstractHistogram> histograms
private Vector<ChoosableFileFilter> fileOpenFilters
private boolean autoChart
private boolean autoResize
true
every column gets the size it needs; if set to
false
the columns are sized to fit the window.
Constructor Detail |
---|
private LogFileAnalyzer()
set()
-methods.
Method Detail |
---|
public void setColumnNames(String[] _columnNames)
_columnNames
- a String[]
containing column-headerspublic String[] getColumnNames()
public void setDataImporter(DataImporterInterface _dataImporter)
dataImporter
used for reading log-files.
_dataImporter
- dataImporter
that needs to implement the
DataImporterInterface
public DataImporterInterface getDataImporter()
dataImporter
used for reading log-files.
dataImporter
used for reading log-filespublic void setHistograms(Vector<AbstractHistogram> _histograms)
_histograms
- a Vector
containing the histogramspublic Vector<AbstractHistogram> getHistograms()
public void setAutoChart(boolean _autoChart)
_autoChart
- true
to automatically create histogramspublic boolean getAutoChart()
true
if histograms are automatically created for all
table columns.
true
if histograms are automatically created for all
table columnspublic void setAutoResize(boolean _autoResize)
_autoResize
- if set to true
, every column gets the size it
needs; if set to false
the columns are sized to
fit the windowpublic boolean getAutoResize()
true
if every column gets the size it needs;
false
if the columns are sized to fit the windowpublic void setFileOpenFilters(Vector<ChoosableFileFilter> _fileOpenFilters)
_fileOpenFilters
- a list of file filters that will used in the "Open"-dialogpublic Vector<ChoosableFileFilter> getFileOpenFilters()
public void startLogFileAnalyzer()
public void addHistogram(AbstractHistogram _histogram)
_histogram
- a new histogram that is added to the list of available
histogramspublic void addFileFilter(ChoosableFileFilter _filter)
_filter
- file filter that will be added to the list of filterspublic static LogFileAnalyzer getInstance()
LogFileAnalyzer
.
LogFileAnalyzer
public static double getVERSION()
public static void main(String[] args)
args
- command line arguments are currently not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |