def __init__(self, porttype, throttle=False):
"""
Instantiates a new object and generates a default StreamSRI. The
porttype parameter corresponds to the type of data contained in the
array of data being sent.
The porttype is also used in the connectPort() method to narrow the
connection
"""
self.porttype = porttype
self.outPorts = {}
self.refreshSRI = False
self.defaultStreamSRI = BULKIO.StreamSRI(1, 0.0, 0.001, 1, 0, 0.0,
0.001, 1, 0, "sampleStream",
True, [])
self.port_lock = threading.Lock()
self._throttle=throttle
self.done = False
评论列表
文章目录