Browse Source

Service register for PDEVS takes address as parameter

Yentl Van Tendeloo 7 years ago
parent
commit
fe80ccaa14
2 changed files with 2 additions and 5 deletions
  1. 1 4
      services/DEVS/main.py
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 1 - 4
services/DEVS/main.py

@@ -5,15 +5,12 @@ import random, re, json, uuid
 from pprint import pprint
 from multiprocessing import Process, Pipe, freeze_support
 
-#address = "msdl.uantwerpen.be:8001"
-address = "localhost:8001"
-
 sys.path.append('services/DEVS/pypdevs/src')
 
 from simulator import Controller
 import threading, time
 
-init(address)
+init(sys.argv[1])
 login("pypdevs_service", "my_password")
 
 def pypdevs_service(port):

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
-Date:   Thu Nov  9 10:44:33 2017
+Date:   Thu Nov  9 11:12:35 2017
 
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server