Controller . MenuController - SeanSpires/Project1-306-Team-Stonks GitHub Wiki

Handles the communication between the GUI and algorithm when visualisation is required

Method Purpose
void initialize(URL location, ResourceBundle resources) This method runs when the GUI is first loaded and initialises variables
void getInputs() This method sets up the core and process labels using input parameters from Main
void initScrollPane() This method initialises the zoomable scroll pane.
void initGanttChart() Initialises the Gantt Chart.
Sets up the sizing of the chart as well as axis labels.
void initGanttChartYAxis() This method initialises the Y axis of the Gantt chart with however many processes is required
int runTimer() This method initialises and runs the timer
void handleRunButton(javafx.event.ActionEvent actionEvent) This method runs when the 'Run' button is pressed.
This method will start the timer and will run the algorithm in the background while updating the GUI.
void updateGraph(LinkedHashMap<Task, Integer> scheduledTasks) This method is called by the algorithm when a new schedule is created.
Tasks with their values will be extracted from scheduledTasks and be placed onto the chart
⚠️ **GitHub.com Fallback** ⚠️