Definition at line 126 of file DetStatusLib.py.
 
◆ __init__()
      
        
          | def python.DetStatusLib.DetStatusReq.__init__ | ( |  | self | ) |  | 
      
 
Definition at line 129 of file DetStatusLib.py.
  130         "Initialise to empty set of requirements" 
  134         self.names=DetStatusNames()
 
 
 
 
◆ __str__()
      
        
          | def python.DetStatusLib.DetStatusReq.__str__ | ( |  | self | ) |  | 
      
 
Definition at line 163 of file DetStatusLib.py.
  164         "Print representation of status requirements" 
  166         for (key,val) 
in self.req.
items():
 
  167             result+=
"%s %i " % (self.names.
name(key),val)
 
 
 
 
◆ getDict()
      
        
          | def python.DetStatusLib.DetStatusReq.getDict | ( |  | self | ) |  | 
      
 
Definition at line 159 of file DetStatusLib.py.
  160         "Return the dictionary holding the requirements (channel/value pairs)" 
 
 
 
◆ setFromString()
      
        
          | def python.DetStatusLib.DetStatusReq.setFromString | ( |  | self, | 
        
          |  |  |  | reqstring | 
        
          |  | ) |  |  | 
      
 
Set requirements from a space-separated string with flag req pairs
e.g. 'SCTB 3 EMEC G' (numbers or letters for status)
 
Definition at line 136 of file DetStatusLib.py.
  136     def setFromString(self,reqstring):
 
  137         """Set requirements from a space-separated string with flag req pairs 
  138         e.g. 'SCTB 3 EMEC G' (numbers or letters for status)""" 
  140         namelist=self.names.allNames()
 
  143         while (ix+1<len(tokens)):
 
  146             if (val 
is not None):
 
  149                 for name 
in namelist:
 
  150                     if (flagname==name[0:len(flagname)]):
 
  151                         self.req[self.names.
num(name)]=val
 
  154                     print (
"Name %s does not match any status flag" % flagname)
 
  156                 print (
"Value %s does not define a status" % tokens[ix+1])
 
 
 
◆ names
      
        
          | python.DetStatusLib.DetStatusReq.names | 
      
 
 
◆ req
      
        
          | python.DetStatusLib.DetStatusReq.req | 
      
 
 
The documentation for this class was generated from the following file: