def __init__(self, __mediator, __supported_protocol): try: self.mediator = __mediator self.my_id = Component.id Component.id += 1 self.supported_protocol = __supported_protocol self.mediator.add_member(self) self.logger = Logger.Instance() except Exception as e: print(e)
def __init__(self): try: super().__init__() self.logger = Logger.Instance() except Exception as e: print(e)