Ejemplo n.º 1
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)
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
    def setStatus(self, status):
        """Set the status.

        status The status."""
        alarmPy._setStatus(self.cppPvt, status)
Ejemplo n.º 4
0
    def setStatus(self,status) :
        """Set the status.

        status The status."""
        alarmPy._setStatus(self.cppPvt,status)