PositionLogger

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

public ArrayList<Integer> getIds()

getInstance

public static PositionLogger getInstance()
Returns:An instance of the singleton.

getX

public ArrayList<Double> getX()

getY

public ArrayList<Double> getY()

getZ

public ArrayList<Double> getZ()

logPosition

public void logPosition(int id, double x, double y, double z)

Simple logger for positions and their times.

Parameters:
  • id – The emitter’s unique ID.
  • x – x-position of the emitter
  • y – y-position of the emitter
  • z – z-position of the emitter

reset

public void reset()

Resets the logger to its initial state.

saveLogFile

public void saveLogFile()

Saves the state of the logger to a file.

Throws:
  • IOException