Exemplo n.º 1
0
	def __init__(self, czar, num):
		MPthread.__init__(self, czar, num)
		self.czar = czar
		self.id = num
		self.round_prefix = num * 100
Exemplo n.º 2
0
	def __init__(self, czar, num):
		MPthread.__init__(self, czar, num)
		self.czar = czar
		self.id = num
Exemplo n.º 3
0
 def __init__(self, engine, name, id):
     MPthread.__init__(self, engine, name)
     self.engine = engine
     self.id = id
Exemplo n.º 4
0
 def __init__(self, attendee_type, admitter, name):
     MPthread.__init__(self, admitter, name)
     self.attendee_type = attendee_type
     self.admitter = admitter
Exemplo n.º 5
0
 def __init__(self, mp):
     MPthread.__init__(self, mp, 'Worker 2')
Exemplo n.º 6
0
 def __init__(self, factory, id):
     MPthread.__init__(self, factory, id)
     self.factory = factory
     self.id = id
Exemplo n.º 7
0
 def __init__(self, bus, student_id):
     MPthread.__init__(self, bus, student_id)
     self.direction = random.randrange(2)
     self.wait_time = random.uniform(0.1, 0.5)
     self.bus = bus
     self.student_id = student_id
Exemplo n.º 8
0
 def __init__(self, contest):
     MPthread.__init__(self, contest, 'Blue Team')
     self.contest = contest
Exemplo n.º 9
0
 def __init__(self, manager, id):
     MPthread.__init__(self, manager, id)
     self.manager = manager
     self.id = id
Exemplo n.º 10
0
 def __init__(self, manager, num):
     MPthread.__init__(self, manager, num)
     self.manager = manager
     self.id = num
Exemplo n.º 11
0
 def __init__(self, id, mp):
     MPthread.__init__(self, mp, 'Coordinator')
     self.id = id