|
@@ -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 14:10:11 2017
|
|
|
+Date: Fri Nov 10 08:52:06 2017
|
|
|
|
|
|
Model author: Yentl Van Tendeloo
|
|
|
Model name: Logging
|
|
@@ -95,11 +95,11 @@ class ObjectManager(ObjectManagerBase):
|
|
|
raise Exception("Cannot instantiate class " + class_name)
|
|
|
return instance
|
|
|
|
|
|
-class Controller(EventLoopControllerBase):
|
|
|
- def __init__(self, log, event_loop_callbacks, finished_callback = None, behind_schedule_callback = None):
|
|
|
- if finished_callback == None: finished_callback = None
|
|
|
+class Controller(ThreadsControllerBase):
|
|
|
+ def __init__(self, log, keep_running = None, behind_schedule_callback = None):
|
|
|
+ if keep_running == None: keep_running = True
|
|
|
if behind_schedule_callback == None: behind_schedule_callback = None
|
|
|
- EventLoopControllerBase.__init__(self, ObjectManager(self), event_loop_callbacks, finished_callback, behind_schedule_callback)
|
|
|
+ ThreadsControllerBase.__init__(self, ObjectManager(self), keep_running, behind_schedule_callback)
|
|
|
self.addInputPort("inp")
|
|
|
self.addOutputPort("outp")
|
|
|
self.object_manager.createInstance("Logging", [log])
|