set get_id property for the simulator, per @sdiehl's request

This commit is contained in:
fawce
2012-03-19 23:23:57 -04:00
parent 2d6c4688f9
commit 6b76bbd5f2
+5
View File
@@ -33,6 +33,10 @@ class Simulator(ComponentHost):
ComponentHost.__init__(self, addresses)
self.subthreads = []
self.running = False
@property
def get_id(self):
return 'Simple Simulator'
def launch_controller(self):
thread = threading.Thread(target=self.controller.run)
@@ -49,6 +53,7 @@ class Simulator(ComponentHost):
self.running = True
return thread
def did_clean_shutdown(self):
return not any([t.isAlive() for t in self.subthreads])