toolbox
Class Logger

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bytoolbox.Logger
All Implemented Interfaces:
ParameterizedObject

public class Logger
extends ParameterizedObjectAdaptor

Log Strings into a file

Author:
Hendrik Dahlkamp

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
private  Experiment ex
           
private  java.lang.String fileName
           
private  java.io.FileWriter fileWrite
           
private  boolean isClosed
           
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
Logger(java.lang.String _fileName, Experiment _ex)
           
 
Method Summary
 void close()
           
 void finalize()
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 void log(java.lang.String s)
           
 void logNoLineFeed(java.lang.String s)
           
private  void open()
           
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 
Methods inherited from class parameter.ParameterizedObjectAdaptor
addParameterChangedListener, fireParameterChanged, parameterEdited, removeParameterChangedListener
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileWrite

private java.io.FileWriter fileWrite

fileName

private java.lang.String fileName

isClosed

private boolean isClosed

ex

private Experiment ex
Constructor Detail

Logger

public Logger(java.lang.String _fileName,
              Experiment _ex)
Method Detail

open

private void open()

close

public void close()

finalize

public void finalize()
Overrides:
finalize in class ParameterizedObjectAdaptor

getParameters

public ParameterSet getParameters()
Description copied from interface: ParameterizedObject
Get a Vector of Strings with a description of each Parameter

Specified by:
getParameters in interface ParameterizedObject
Overrides:
getParameters in class ParameterizedObjectAdaptor

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject
Overrides:
setParameters in class ParameterizedObjectAdaptor

log

public void log(java.lang.String s)

logNoLineFeed

public void logNoLineFeed(java.lang.String s)