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
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
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
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
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