#*******************************************************************************
# 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: __init__.py,v 1.5 2008/10/30 13:01:21 agrimstrup Exp $"
#
# who when what
# -------- -------- ----------------------------------------------
# agrimstrup 2008-09-29 created
#
Classes |
| |
- __builtin__.object
-
- AlarmSystemInterfaceFactory
class AlarmSystemInterfaceFactory(__builtin__.object) |
|
Base class for creating sources and fault states. |
|
Class methods defined here:
- createFaultState(cls, family=None, member=None, code=None) from __builtin__.type
- Create a new instance of a fault state.
Parameters: family is the name of the alarm family for this fault
member is the name of the member of the alarm family for this fault
code is the error code for this fault
Returns: an instance of FaultState
Raises: exception if factory has not been initialized
- createSource(cls, sourceName=None) from __builtin__.type
- Create a new instance of an alarm system interface.
Parameters: sourceName is the name of the alarm source
Returns: an instance of the appropriate interface
Raises: exception if factory has not been initialized
- done(cls) from __builtin__.type
- Release the resources held by the factory. This method must be called
when the client is finished using the factory.
Returns: None
- init(cls, man=None) from __builtin__.type
- Initializes the factory. This method must be called before using
the other methods of this class.
Returns: None
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- initialized = False
- logger = <Acspy.Common.Log.Logger instance>
- manager = None
- registry = {}
- systemtype = None
| |