net.sf.jaer.eventprocessing
Class EventFilterDataLogger
java.lang.Object
net.sf.jaer.eventprocessing.EventFilterDataLogger
public class EventFilterDataLogger
- extends java.lang.Object
Eases writing data log files for a filter.
- Author:
- tobi
Field Summary |
protected java.io.PrintStream |
logStream
|
Method Summary |
java.io.File |
getFile()
Returns the logging file, or null if not initialized |
java.io.PrintStream |
getPrintStream()
Returns the PrintStream, or null if not initialized. |
boolean |
isEnabled()
|
void |
log(java.lang.String s)
|
void |
setEnabled(boolean logDataEnabled)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logStream
protected java.io.PrintStream logStream
EventFilterDataLogger
public EventFilterDataLogger(EventFilter2D filter,
java.lang.String headerLineComment)
- Creates a new instance of EventFilterDataLogger for a filter.
- Parameters:
filter
- the filter (used to make filename)headerLineComment
- a comment usuually specifying the contents and data fields
log
public void log(java.lang.String s)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean logDataEnabled)
getFile
public java.io.File getFile()
- Returns the logging file, or null if not initialized
getPrintStream
public java.io.PrintStream getPrintStream()
- Returns the PrintStream, or null if not initialized.