def insertSequenceBeforeSequence(self, sequenceName, desc, cond, cond_match, steps): """ Insert a sequence before a named sequence. i.e. if the specified sequence name is "update x", the new sequence will be inserted BEFORE "update x" """ index = self.__getSequenceIndexByDesc(sequenceName) if index == None: index = len(self.getAllSequences()) self.__SEQUENCES.insert(index, Sequence(desc, cond, cond_match, steps))
def insertSequence(self, desc, cond, cond_match, steps, index=0): self.__SEQUENCES.insert(index, Sequence(desc, cond, cond_match, steps))
def addSequence(self, desc, cond, cond_match, steps): self.__SEQUENCES.append(Sequence(desc, cond, cond_match, steps))