Exemple #1
0
 def __init__(self, id, fun, apply_single=True, min_count=None, max_chunksize=0, writer=None):
     Node.__init__(self, id)
     self._read = None  # to be set by subclasss
     self._out_writer = writer
     self._exc = None
     self._done = False
     self._num_writers = 0
     self._wlock = threading.Lock()
     self.fun = fun
     self.min_count = None
     self.max_chunksize = 0  # not set
     self.apply_single = apply_single
Exemple #2
0
 def __init__(self,
              id,
              fun,
              apply_single=True,
              min_count=None,
              max_chunksize=0,
              writer=None):
     Node.__init__(self, id)
     self._read = None  # to be set by subclasss
     self._out_writer = writer
     self._exc = None
     self._done = False
     self._num_writers = 0
     self._wlock = threading.Lock()
     self.fun = fun
     self.min_count = None
     self.max_chunksize = 0  # not set
     self.apply_single = apply_single
    def __init__(self,x,y):
        Node.__init__(self,x,y)
	self.id = None
	self.visited = False
Exemple #4
0
 def __init__(self, jugs, capacities):
     Node.__init__(self)
     self.jugs = jugs
     self.capacities = capacities
Exemple #5
0
 def __init__(self, state):
     Node.__init__(self)
     self.state = state
 def __init__(self, name):
     Node.__init__(self, name)
     CustomNode.ID += 1
     self._id = CustomNode.ID
 def __init__(self, gene_id, complex_name):
     Node.__init__(self, gene_id)
     self.complex_name = complex_name
    def __init__(self,x,y):
        Node.__init__(self,x,y)
	self.id = None
	def __init__(self, name, x, y):
		Node.__init__(self)
		self.name = name
		self.x = x
		self.y = y