Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
    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)
Beispiel #4
0
    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)