(self, obj=None, **args)
Generator to apply all function slots in obj

      :param obj: this object is passes as parameter to the function
      :param args: this args dictionary is passed to the function
Generator to apply all function slots in obj
Generator to apply all function slots in obj
def applyFunctions(self, obj=None, **args):
      """ Generator to apply all function slots in obj

      :param obj: this object is passes as parameter to the function
      :param args: this args dictionary is passed to the function

      """
      if len(self.funcList) <= 0:
         Util.raiseException("No function defined: " + self.slotName)

      if not self.rand_apply:
         for f in self.funcList:
            yield f(obj, **args)
      else:
         v = rand_uniform(0, 1)
         fobj = None
         for func, weight in zip(self.funcList, self.funcWeights):
            fobj = func
            if v < weight:
               break
            v = v - weight

         yield fobj(obj, **args)
def applyFunctions ( self , obj = None , * * args ) : if len ( self . funcList ) <= 0 : Util . raiseException ( "No function defined: " + self . slotName ) if not self . rand_apply : for f in self . funcList : yield f ( obj , * * args ) else : v = rand_uniform ( 0 , 1 ) fobj = None for func , weight in zip ( self . funcList , self . funcWeights ) : fobj = func if v < weight : break v = v - weight yield fobj ( obj , * * args )