コード例 #1
0
 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))
コード例 #2
0
 def insertSequence(self, desc, cond, cond_match, steps, index=0):
     self.__SEQUENCES.insert(index, Sequence(desc, cond, cond_match, steps))
コード例 #3
0
 def addSequence(self, desc, cond, cond_match, steps):
     self.__SEQUENCES.append(Sequence(desc, cond, cond_match, steps))