Ejemplo n.º 1
0
 def __init__(self, document: DocT, strand: StrandT, idx: int, mod_id: str):
     super(AddModsCommand, self).__init__()
     self._strand = strand
     self._id_num = strand.idNum()
     self._idx = idx
     self._mod_id = mod_id
     self.document = document
Ejemplo n.º 2
0
 def __init__(self, document: DocT, strand: StrandT, idx: int, mod_id: str):
     super(AddModsCommand, self).__init__()
     self._strand = strand
     self._id_num = strand.idNum()
     self._idx = idx
     self._mod_id = mod_id
     self.document = document
Ejemplo n.º 3
0
 def __init__(self, strand: StrandT, idx: int, length: int):
     super(AddInsertionCommand, self).__init__("add insertion")
     self._strand = strand
     id_num = strand.idNum()
     self._insertions = strand.part().insertions()[id_num]
     self._idx = idx
     self._length = length
     self._insertion = Insertion(idx, length)
     self._comp_strand = \
         strand.strandSet().complementStrandSet().getStrand(idx)
Ejemplo n.º 4
0
 def __init__(self, strand: StrandT, idx: int, length: int):
     super(AddInsertionCommand, self).__init__("add insertion")
     self._strand = strand
     id_num = strand.idNum()
     self._insertions = strand.part().insertions()[id_num]
     self._idx = idx
     self._length = length
     self._insertion = Insertion(idx, length)
     self._comp_strand = \
         strand.strandSet().complementStrandSet().getStrand(idx)