jAER project on SourceForge

net.sf.jaer.eventprocessing
Class EventFilterDataLogger

java.lang.Object
  extended by 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
           
 
Constructor Summary
EventFilterDataLogger(EventFilter2D filter, java.lang.String headerLineComment)
          Creates a new instance of EventFilterDataLogger for a filter.
 
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
 

Field Detail

logStream

protected java.io.PrintStream logStream
Constructor Detail

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
Method Detail

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.


jAER project on SourceForge