ScheduleListenerpublic class Controller extends java.lang.Object implements ScheduleListener
| Constructor | Description |
|---|---|
Controller() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getColour(int i) |
Get the color associated with a value for the gantt chart
|
double |
getProcessCpuLoad() |
This method retrieves the current load on the CPU.
|
void |
initalizeColour() |
Set up the colors for the gantt chart color assignment
|
void |
initialize() |
The gui initiazation after all fxml objects have been placed
|
void |
update(ScheduleEvent event,
int iterations,
double memory) |
Update the listener for the GUI stats display
|
void |
updateGraph(ScheduleEvent event,
int iterations,
PartialScheduleGrph a) |
Update the listener for the current best schedule gantt chart display
|
void |
viewGraph(ZoomableScrollPane display,
ScheduleGrph graph) |
This method deals with the visualization of the input graph on the GUI.
|
public void initialize()
public void update(ScheduleEvent event, int iterations, double memory)
update in interface ScheduleListenerevent - The event that has occurrediterations - The current number of iterations performed by the algorithmmemory - The current used memory of the processpublic void updateGraph(ScheduleEvent event, int iterations, PartialScheduleGrph a)
updateGraph in interface ScheduleListenerevent - The event that has occurrediterations - The current number of iterations performed by the algorithma - The schedule graph (current best) to display on the gantt chartpublic java.lang.String getColour(int i)
i - The value to get the color ofpublic void initalizeColour()
public double getProcessCpuLoad()
throws java.lang.Exception
java.lang.Exceptionpublic void viewGraph(ZoomableScrollPane display, ScheduleGrph graph)
display - graph -