def __init__(self, name, service, view, data, caller): Subject.__init__(self) self.observers = [] self.name = name self.caller = caller self.temperature = Temperature(None) self.rainfall = Rainfall(None) self.timestamp = None self.datestamp = None self.serviceType = service self.viewType = view self.dataType = data self.client = None self.timer = None self.setupClient()
def __init__(self, name=''): Subject.__init__(self) self.name = name self.data = None
def __init__(self, number_of_correct_answer=0): Subject.__init__(self, 'ENGLISH', 5, number_of_correct_answer)
def __init__(self, name=""): Subject.__init__(self) self.name = name self.data = None
def __init__(self, number_of_correct_answer=0): Subject.__init__(self, 'MATH', 3, number_of_correct_answer)
def __init__(self, ip, port, username, password): Subject.__init__(self) print('Connecting...') self.network_connect(ip, port, username, password)
def __init__(self, number_of_correct_answer=0): Subject.__init__(self, 'KOREA', 4, number_of_correct_answer)
def __init__(self): Subject.__init__(self) self.temperature = None self.humidity = None self.pressure = None