Browse Source

Modif mineure

Paul Faure 3 years ago
parent
commit
9d63fad2e3
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/main/java/app/insa/clav/Main.java

+ 4
- 4
src/main/java/app/insa/clav/Main.java View File

@@ -13,10 +13,10 @@ public class Main extends Application{
13 13
 
14 14
     @Override
15 15
     public void start(Stage primaryStage) throws Exception{
16
-        //String[] args = this.getParameters().getUnnamed().toArray(new String[0]);
17
-        int inputPort = 5000;//Integer.parseInt(args[0]);
18
-        int outPutPort = 6000; //Integer.parseInt(args[1]);
19
-        int tcpListenerPort = 7000; //Integer.parseInt(args[2]);
16
+        String[] args = this.getParameters().getUnnamed().toArray(new String[0]);
17
+        int inputPort = Integer.parseInt(args[0]);
18
+        int outPutPort = Integer.parseInt(args[1]);
19
+        int tcpListenerPort = Integer.parseInt(args[2]);
20 20
 
21 21
         Model model = Model.getInstance(inputPort, outPutPort,tcpListenerPort);
22 22
 

Loading…
Cancel
Save