Devsimulator under new class hierarchy.

This commit is contained in:
Stephen Diehl
2012-05-28 10:45:06 -04:00
parent d85fe0b7b5
commit c17dab35a2
+3 -3
View File
@@ -4,7 +4,7 @@ See :py:method""
"""
import threading
from zipline.core import ComponentHost
from zipline.core.simulatorref import SimulatorBase
class AddressAllocator(object):
"""
@@ -28,13 +28,13 @@ class AddressAllocator(object):
pass
class Simulator(ComponentHost):
class Simulator(SimulatorBase):
zmq_flavor = 'thread'
def __init__(self, addresses):
# TODO: rethink this
ComponentHost.__init__(self, addresses)
SimulatorBase.__init__(self, addresses)
self.subthreads = []
self.running = False