BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
Classes | Public Member Functions | List of all members
ui.controllers.ResultController Class Reference
Inheritance diagram for ui.controllers.ResultController:
Inheritance graph
[legend]
Collaboration diagram for ui.controllers.ResultController:
Collaboration graph
[legend]

Public Member Functions

void initialize ()
 
void handleRefreshButtonClicked ()
 
void execute (@NotNull Runnable command)
 

Detailed Description

Responsible for updating the results panel with results of the bakeout

Definition at line 27 of file ResultController.java.

Member Function Documentation

void ui.controllers.ResultController.execute ( @NotNull Runnable  command)

Run the command given to it on the JavaFX application thread

Parameters
commandThe command to run

Definition at line 123 of file ResultController.java.

123  {
124  Platform.runLater(command);
125  }
void ui.controllers.ResultController.handleRefreshButtonClicked ( )

Called if the refresh button is clicked on the UI

Definition at line 107 of file ResultController.java.

107  {
108  if (kernel.getVariableProvidersView().hasPressureProvider()){
109  log.info("Found pressure provider. Using this for reports");
110  configurePressureProvider();
111  }
112  if (kernel.getVariableProvidersView().hasVoltageProvider()){
113  log.info("Found voltage provider. Using this for reports");
114  configureVoltageProvider();
115  }
116  }
void ui.controllers.ResultController.initialize ( )

Find the pressure and voltage providers, and attach a listener to both of them

Definition at line 89 of file ResultController.java.

89  {
90  configurePressureSeries();
91  if (kernel.getVariableProvidersView().hasPressureProvider()){
92  log.info("Found pressure provider. Reporting");
93  configurePressureProvider();
94  }
95 
96  configureVoltageSeries();
97  if (kernel.getVariableProvidersView().hasVoltageProvider()){
98  log.info("Found voltage provider. Reporting");
99  configureVoltageProvider();
100  }
101  }

The documentation for this class was generated from the following file:
Git Repo