示例#1
0
 def getChangedFuncdictKeys(self, funcdict, termname):
     changedkeys = []
     for _condlist, func in funcdict.items():
         condlist = splitter.remove_reset_condlist(_condlist)
         if not (isinstance(func, DFTerminal) and func.name == termname):
             changedkeys.append(condlist)
     return changedkeys
示例#2
0
 def getChangedFuncdict(self, funcdict, termname):
     changeddict = {}
     for _condlist, func in funcdict.items():
         condlist = splitter.remove_reset_condlist(_condlist)
         if not (isinstance(func, DFTerminal) and func.name == termname):
             changeddict[condlist] = func
     return changeddict
示例#3
0
 def getUnchangedFuncdictKeys(self, funcdict, termname):
     unchangedkeys = []
     for _condlist, func in funcdict.items():
         condlist = splitter.remove_reset_condlist(_condlist)
         if isinstance(func, DFTerminal) and func.name == termname:
             unchangedkeys.append(condlist)
     return unchangedkeys
示例#4
0
 def getChangedFuncdict(self, funcdict, termname):
     changeddict = {}
     for _condlist, func in funcdict.items():
         condlist = splitter.remove_reset_condlist(_condlist)
         if not (isinstance(func, DFTerminal) and func.name == termname):
             changeddict[condlist] = func
     return changeddict
示例#5
0
 def getActiveFuncdictKeys(self, funcdict, op='>', conditionvalue=0):
     activekeys = []
     for _condlist, func in funcdict.items():
         condlist = splitter.remove_reset_condlist(_condlist)
         if isinstance(func, DFEvalValue):
             e = eval('func.value' + op + str(conditionvalue))
             if e: activekeys.append(condlist)
     return activekeys
示例#6
0
 def getActiveFuncdictKeys(self, funcdict, op='>', conditionvalue=0):
     activekeys = []
     for _condlist, func in funcdict.items():
         condlist = splitter.remove_reset_condlist(_condlist)
         if isinstance(func, DFEvalValue):
             e = eval('func.value'+op+str(conditionvalue))
             if e: activekeys.append(condlist)
     return activekeys