AbstractLogger

public abstract class AbstractLogger

Abstract class for logging simulation results.

Author:Kyle M. Douglass

Fields

filename

protected String filename

The name of the log file.

performLogging

protected boolean performLogging

Determines whether the StateLogger is active or not.

Methods

getFilename

public String getFilename()

Return the current filename for the log file.

Returns:The filename of the log file.

getPerformLogging

public boolean getPerformLogging()

Indicates whether the logger is active.

Returns:A boolean indicating whether the logger is active.

reset

public abstract void reset()

Resets the logger to its initial state.

saveLogFile

public abstract void saveLogFile()

Saves the state of the logger to a file.

Throws:

setFilename

public void setFilename(String inFilename)

Set the filename for logging the fluorophore state transitions and create the file.

Parameters:
  • inFilename – The full path and filename of the log file
Throws:
  • IOException

setPerformLogging

public void setPerformLogging(boolean isActive)

Activates and deactivates the logger.

Parameters:
  • isActive – Indicates whether the logger should be active.