.. java:import:: java.io File .. java:import:: java.io IOException .. java:import:: java.io FileWriter .. java:import:: java.io PrintWriter .. java:import:: java.util ArrayList StateLogger =========== .. java:package:: ch.epfl.leb.sass.loggers :noindex: .. java:type:: public class StateLogger extends AbstractLogger Records the fluorophore states to a file. The StateLogger is a singleton. :author: Kyle M. Douglass Methods ------- getElapsedTimes ^^^^^^^^^^^^^^^ .. java:method:: public ArrayList getElapsedTimes() :outertype: StateLogger getFilename ^^^^^^^^^^^ .. java:method:: public String getFilename() :outertype: StateLogger Return the current filename for the log file. :return: filename getIds ^^^^^^ .. java:method:: public ArrayList getIds() :outertype: StateLogger getInitialStates ^^^^^^^^^^^^^^^^ .. java:method:: public ArrayList getInitialStates() :outertype: StateLogger getInstance ^^^^^^^^^^^ .. java:method:: public static StateLogger getInstance() :outertype: StateLogger :return: An instance of the singleton. getNextStates ^^^^^^^^^^^^^ .. java:method:: public ArrayList getNextStates() :outertype: StateLogger logStateTransition ^^^^^^^^^^^^^^^^^^ .. java:method:: public void logStateTransition(int id, double timeElapsed, int initialState, int nextState) :outertype: StateLogger Simple logger for state transitions and their times. :param id: integer ID of the emitter :param timeElapsed: The time spent in the current state :param initialState: integer ID of the original state :param nextState: integer ID for the new fluorophore state reset ^^^^^ .. java:method:: @Override public void reset() :outertype: StateLogger Resets the logger to its initial state. saveLogFile ^^^^^^^^^^^ .. java:method:: @Override public void saveLogFile() throws IOException :outertype: StateLogger Saves the state of the logger to a file. :throws IOException: