Fix some more oop on transforms.

This commit is contained in:
Stephen Diehl
2012-05-16 17:03:16 -04:00
parent 244f787176
commit f88aacc214
4 changed files with 41 additions and 33 deletions
+7 -1
View File
@@ -1,11 +1,16 @@
"""
Simulator hosts all the components necessary to execute a simluation. See :py:method""
Simulator hosts all the components necessary to execute a simluation.
See :py:method""
"""
import threading
from zipline.core import ComponentHost
class AddressAllocator(object):
"""
Produces a iterator of 10000 sockets to allocate as needed.
Emulates the API of Qexec's socket allocator.
"""
def __init__(self, ns):
self.idx = 0
@@ -28,6 +33,7 @@ class Simulator(ComponentHost):
zmq_flavor = 'thread'
def __init__(self, addresses):
# TODO: rethink this
ComponentHost.__init__(self, addresses)
self.subthreads = []
self.running = False