Acsalarmpy.ASI
index
/alma/ACS-2016.6/ACSSW/lib/python/site-packages/Acsalarmpy/ASI.py

#*******************************************************************************
# ALMA - Atacama Large Millimiter Array
# (c) National Research Council of Canada, 2008 

# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.

# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
#
# "@(#) $Id: ASI.py,v 1.2 2008/10/29 16:20:18 agrimstrup Exp $"
#
# who       when      what
# --------  --------  ----------------------------------------------
# agrimstrup  2008-10-02  created
#

 
Classes
       
__builtin__.object
ASIConfiguration
ASIMessage

 
class ASIConfiguration(__builtin__.object)
    Python class that encapsulates various configuration data for the LASER
alarm system for use by Python alarm source clients.
 
  Methods defined here:
__init__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ASIMessage(__builtin__.object)
    Class that encapsulates one or more fault states to be sent to the LASER
alarm server.
 
  Methods defined here:
__init__(self, states=None)
toXML(self)
Build the XML representation of the message which will be sent to the alarm server.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        ALARMS_TOPIC = 'CMW.ALARM_SYSTEM.ALARMS.SOURCES'
ALARM_SOURCE_NAME = 'ALARM_SYSTEM_SOURCES'
ASI_VERSION = '0.9'
BACKUP_DELIVERY_MODE = 0
BACKUP_PRIORITY = 9
BACKUP_TIME_TO_LIVE = 60000
CHANGES_DELIVERY_MODE = 0
CHANGES_PRIORITY = 9
CHANGES_TIME_TO_LIVE = 60000