Пример #1
0
 def __init__(self, name, tl):
     Node.__init__(self, name, tl)
     self.memory_array = MemoryArray(name + ".MemoryArray",
                                     tl,
                                     num_memories=50)
     self.memory_array.owner = self
     self.resource_manager = ResourceManager(self)
Пример #2
0
 def __init__(self, name, tl):
     Node.__init__(self, name, tl)
     self.memory_array = MemoryArray(name + ".MemoryArray", tl)
     self.resource_manager = ResourceManager(self)
     self.send_log = []
Пример #3
0
 def __init__(self, name, tl, **kwargs):
     Node.__init__(self, name, tl)
     self.msg_log = []
     self.resource_manager = FakeResourceManager(self)
Пример #4
0
 def __init__(self, name, tl):
     Node.__init__(self, name, tl)
     self.log = []
Пример #5
0
 def __init__(self, name, tl, **kwargs):
     Node.__init__(self, name, tl, **kwargs)
     self.msgs = []
 def __init__(self, name, tl, ls):
     Node.__init__(self, name, tl)
     self.lightsource = ls
     self.lightsource.owner = self