Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
* update tutorial
authorkbaati <kbaati@realopt-Latitude-E6530>
Mon, 27 Jul 2015 15:18:24 +0000 (17:18 +0200)
committerkbaati <kbaati@realopt-Latitude-E6530>
Mon, 27 Jul 2015 15:18:24 +0000 (17:18 +0200)
* fix bug: add a control on the controlStepMap size

contrib/psg/src/psgsim/PSGSimulator.java
contrib/psg/tutorial.pdf

index 4d45d4e..cd60973 100644 (file)
@@ -85,8 +85,9 @@ public class PSGSimulator {
 
                /** Process Controller **/
                PSGPlatform.control();
 
                /** Process Controller **/
                PSGPlatform.control();
-               new PSGProcessController(PSGPlatform.hostList[0],
-                               PSGPlatform.hostList[0].getName(), null).start();
+               if (!PSGPlatform.controlStepMap.isEmpty())
+                       new PSGProcessController(PSGPlatform.hostList[0],
+                                       PSGPlatform.hostList[0].getName(), null).start();
 
                /** Load and execute the initializers classes in the configuration file **/
                PSGPlatform.init();
 
                /** Load and execute the initializers classes in the configuration file **/
                PSGPlatform.init();
index 591649f..faf141b 100644 (file)
Binary files a/contrib/psg/tutorial.pdf and b/contrib/psg/tutorial.pdf differ