.. 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 PositionLogger ============== .. java:package:: ch.epfl.leb.sass.loggers :noindex: .. java:type:: public class PositionLogger extends AbstractLogger Records the fluorophore positions to a file. Currently, the position logger logs the initial positions of emitters to a file, i.e. it will not track moving fluorophores. This feature may be added in the future if desired. The PositionLogger is a singleton. :author: Kyle M. Douglass Methods ------- getIds ^^^^^^ .. java:method:: public ArrayList getIds() :outertype: PositionLogger getInstance ^^^^^^^^^^^ .. java:method:: public static PositionLogger getInstance() :outertype: PositionLogger :return: An instance of the singleton. getX ^^^^ .. java:method:: public ArrayList getX() :outertype: PositionLogger getY ^^^^ .. java:method:: public ArrayList getY() :outertype: PositionLogger getZ ^^^^ .. java:method:: public ArrayList getZ() :outertype: PositionLogger logPosition ^^^^^^^^^^^ .. java:method:: public void logPosition(int id, double x, double y, double z) :outertype: PositionLogger Simple logger for positions and their times. :param id: The emitter's unique ID. :param x: x-position of the emitter :param y: y-position of the emitter :param z: z-position of the emitter reset ^^^^^ .. java:method:: @Override public void reset() :outertype: PositionLogger Resets the logger to its initial state. saveLogFile ^^^^^^^^^^^ .. java:method:: @Override public void saveLogFile() throws IOException :outertype: PositionLogger Saves the state of the logger to a file. :throws IOException: