homepage › Forums › BridgePoint/xtUML Usage and Training › connecting parameters on interfaces with parameters in OAL › Reply To: connecting parameters on interfaces with parameters in OAL
One way of doing it, is as a two pass translation. The meta-model for *PARM and C_PP is not the most friendly, the definitions are all over the place. First translate all V_PAR, *PARM and C_PP, for the latter we have condensed all definitions into one place, i.e. a subprogram with formal parameters with an associations back to the OOA meta-model. Additional, each formal parameter has a conditional association to one actual parameter (actually V_VAL), which represents current actual value for that formal parameter. When translating a call using actual values, first select all V_PARs for that call and select the correspondent subprogram. Loop over the V_PARs and make a conditional search among the formal parameters for that particular subprogram, by name in our case, and relate the correspondent V_VAL to the formal parameter as the current actual value. Now you are ready to translate the actual call, by translating the subprogram and its predefined parameter order, or what ever order the formal parameters have, using the association to get current actual value. When translating a call to the same subprogram again, unrelate the previous actual values and relate the new ones before translating the subprogram. Hope you can get some ideas from this.