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)
def setStatus(self, status): """Set the status. status The status.""" alarmPy._setStatus(self.cppPvt, status)
def setStatus(self,status) : """Set the status. status The status.""" alarmPy._setStatus(self.cppPvt,status)