00001 #!/usr/local/bin/python 00002 # 00003 # Copyright 2002 00004 # by 00005 # The Board of Trustees of the 00006 # Leland Stanford Junior University. 00007 # All rights reserved. 00008 # 00009 00010 __facility__ = "Online" 00011 __abstract__ = "Class for handling named groups" 00012 __author__ = "R. Claus <Claus@SLAC.Stanford.edu> SLAC - GLAST LAT I&T/Online" 00013 __date__ = ("$Date: 2004/08/11 03:10:10 $").split(' ')[1] 00014 __version__ = "$Revision: 2.1 $" 00015 __credits__ = "SLAC" 00016 00017 import LATTE.copyright_SLAC 00018 00019 00020 00021 class Ggroup: 00022 def __init__(self, group, enabled = True): 00023 """Class for handling named groups. 00024 """ 00025 self.__group = group 00026 self.__enabled = enabled 00027 00028 def name(self): 00029 "Return the group's name." 00030 return self.__group 00031 00032 def enabled(self): 00033 "Return status of the group." 00034 return self.__enabled 00035 00036 def enable(self): 00037 "Enable a group." 00038 self.__enabled = True 00039 00040 def disable(self): 00041 "Disable a group." 00042 self.__enabled = False