def setMessage(self, message): """Set the message message The message. It must be a string.""" if not isinstance(message, str): raise TypeError("message is not a str") return alarmPy._setMessage(self.cppPvt, message)
def setMessage(self,message) : """Set the message message The message. It must be a string.""" if not isinstance(message,str) : raise TypeError("message is not a str") return alarmPy._setMessage(self.cppPvt,message)
def __init__(self, severity="", status="", message=""): """constructor severity The initial severity. The default is "". status The initial status. The default is "". message The initial message. The default is an empty string.""" self.cppPvt = alarmPy._init() alarmPy._setMessage(self.cppPvt, message) if severity != "": alarmPy._setSeverity(self.cppPvt, severity) if status != "": alarmPy._setStatus(self.cppPvt, status)
def __init__(self,severity = "", status = "" ,message = "") : """constructor severity The initial severity. The default is "". status The initial status. The default is "". message The initial message. The default is an empty string.""" self.cppPvt = alarmPy._init() alarmPy._setMessage(self.cppPvt,message) if severity!="" : alarmPy._setSeverity(self.cppPvt,severity) if status!="" : alarmPy._setStatus(self.cppPvt,status)