Skip to content
Snippets Groups Projects
Commit b7b5a002 authored by vitawrap's avatar vitawrap
Browse files

Java: Link avec tout le code C

parent 5944ae24
Branches
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ public class ProjetController {
TextField _filename;
@FXML
Spinner _machineCount;
TextField _machineCount;
@FXML
CheckBox _balanced;
......@@ -28,6 +28,13 @@ public class ProjetController {
@FXML
public void submitToDiagram(ActionEvent event)
{
Scheduling.runSchedule("STRING 1", "MESSAGE", 0, 0, 0);
int preempt = _preemptive.isSelected()? 1 : 0;
int balance = _balanced.isSelected()? 1 : 0;
int machines = Integer.parseInt(_machineCount.getText());
Scheduling.runSchedule(
_filename.getText(),
"out",
machines,
preempt, balance);
}
}
\ No newline at end of file
......@@ -5,7 +5,6 @@
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.Spinner?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
......@@ -27,7 +26,7 @@
<TextField fx:id="_filename" promptText="Scheduling instance file" />
<Separator prefWidth="200.0" />
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Machine count:" />
<Spinner fx:id="_machineCount" editable="true" />
<TextField fx:id="_machineCount" />
<Separator prefWidth="200.0" />
<CheckBox fx:id="_balanced" mnemonicParsing="false" selected="true" text="Use balanced trees" />
<CheckBox fx:id="_preemptive" mnemonicParsing="false" text="Use SRPT over SPT" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment