SimulatorStatusFrame¶
-
public class
SimulatorStatusFrame
extends javax.swing.JFrame¶ Frame that displays the current status and recent history of the simulation. The layout for the status frame was inspired by Karl Bellve’s pgFocus GUI: http://big.umassmed.edu/wiki/index.php/PgFocus
Author: Kyle M. Douglass
Constructors¶
SimulatorStatusFrame¶
-
public
SimulatorStatusFrame
(String groundTruthYLabel, String analyzerYLabel, String setpointYLabel, String outputYLabel)¶ Creates a new status frame.
Parameters: - groundTruthYLabel – The y-axis label for the ground truth signal.
- analyzerYLabel – The units output by the analyzer.
- setpointYLabel – The units of the controller setpoint.
- outputYLabel – The units output by the controller.
Methods¶
updateGraph¶
-
public void
updateGraph
(int frame, double trueCount, double estimate, double setpoint, double laser)¶ Adds a single new time point to the plot.
Parameters: - frame – The frame number
- trueCount – The true number of emitting molecules.
- estimate – Analyzer’s estimate of the number of emitting molecules.
- setpoint – The controller’s setpoint value.
- laser – The output of the laser.