|
@@ -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: Tue May 29 16:14:19 2018
|
|
|
+Date: Tue May 29 16:19:29 2018
|
|
|
|
|
|
Model author: Yentl Van Tendeloo
|
|
|
Model name: MvK Server
|
|
@@ -2463,7 +2463,7 @@ class Modelverse(RuntimeClassBase):
|
|
|
def _initialized_http_mapper_init_0_exec(self, parameters):
|
|
|
value = parameters[0]
|
|
|
self.big_step.outputEventOM(Event("narrow_cast", None, [self, self.http_clients[0], Event("HTTP_input", None, [urlencode({"op": "set_input", "data": json.dumps(value), "taskname": self.taskname}), None])]))
|
|
|
- print("Request: " + str(value))
|
|
|
+ #print("Request: " + str(value))
|
|
|
|
|
|
def _initialized_http_mapper_init_0_guard(self, parameters):
|
|
|
value = parameters[0]
|
|
@@ -2472,7 +2472,7 @@ class Modelverse(RuntimeClassBase):
|
|
|
def _initialized_http_mapper_init_1_exec(self, parameters):
|
|
|
value = parameters[0]
|
|
|
self.big_step.outputEventOM(Event("narrow_cast", None, [self, self.http_clients[0], Event("HTTP_input", None, [urlencode({"op": "set_input", "value": json.dumps(value), "taskname": self.taskname}), None])]))
|
|
|
- print("Request: " + str(value))
|
|
|
+ #print("Request: " + str(value))
|
|
|
|
|
|
def _initialized_http_mapper_init_1_guard(self, parameters):
|
|
|
value = parameters[0]
|
|
@@ -2488,7 +2488,7 @@ class Modelverse(RuntimeClassBase):
|
|
|
data = parameters[0]
|
|
|
self.big_step.outputEventOM(Event("narrow_cast", None, [self, self.http_clients[1], Event("HTTP_input", None, [urlencode({"op": "get_output", "taskname": self.taskname}), "parent"])]))
|
|
|
self.responses.append(json.loads(data))
|
|
|
- print("Got data at %s: %s" % (self.controller.taskname, str(json.loads(data))))
|
|
|
+ #print("Got data at %s: %s" % (self.controller.taskname, str(json.loads(data))))
|
|
|
|
|
|
def _initialized_http_mapper_init_3_guard(self, parameters):
|
|
|
data = parameters[0]
|
|
@@ -2970,14 +2970,12 @@ class Modelverse(RuntimeClassBase):
|
|
|
return self.expect_response('Success')
|
|
|
|
|
|
def _initialized_behaviour_operations_attr_assign_code_sent_0_exec(self, parameters):
|
|
|
- print("UPLOAD CODE")
|
|
|
self.raiseInternalEvent(Event("request", None, [[self.parameters[3]]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_attr_assign_code_sent_0_guard(self, parameters):
|
|
|
return self.expect_response('Waiting for code constructors...')
|
|
|
|
|
|
def _initialized_behaviour_operations_attr_assign_code_sent_1_exec(self, parameters):
|
|
|
- print("Got success")
|
|
|
self.raiseInternalEvent(Event("result", None, [None]))
|
|
|
|
|
|
def _initialized_behaviour_operations_attr_assign_code_sent_1_guard(self, parameters):
|