Eager Replication (3)
Original roles for i, gi
( i is active, gi is passive)
AA.set(i,10){
AA.i=10;
//BB.gi=10;
AB__BB->gi = 10;
} // before role-swapping
Role reversal for s, gs:
// gs is active, s is passive)
BB.set(gs,ten){
strcpy(gs, ten);
strcpy(AA.s, AAcurr-> AA__BB->gs);
} // s and gs swap roles
AA
AAid AA0..0 c8 1 //..
x x 0 int 0 //..
s x ? c20 0 //..
BB
BBid BB0..0 c8 1 //..
gx 0 int //...
gs ? c20 //
AB
BBid ..
AAid ..
#define AA__BB
ABid_fcp -> Bbid_pp
(Using instance navigation paths of CHGEN:
AB is 1:1 optional association between AA and BB)
#define BB__AA
ABid_fcp ->AAid_pp
0:1
0:1
1:1
1:1
Previous slide
Next slide
Back to first slide
View graphic version