Research Article

Composite-Level Conflict Detection in UML Model Versioning

Algorithm 2

Detecting conflicts in operation pairs.
Inputs: : the result of fragmentation
Output: : conflict operation pairs
(1)  for all element that is operated do
(2)  Init pair container ,
(3)  ,
(4)  
(5)  
(6)  for all    do
(7)  for all    do
(8)    if   and   then
(9)       put and in
(10)    else if    then
(11)    if    then
(12)      put in
(13)     else
(14)       put in
(15)     end if
(16)    else if    then
(17)      same code as line (11)–(15) (reverse )
(18)   else
(19)      put in
(20)   end if
(21)   end for
(22) end for
(23) for all    do
(24) if    then
(25)    put in
(26) end if
(27) end for
(28) end for