Skip to content

Commit

Permalink
Merge branch 'cds_instancedump_4' into cds_instancedump_keith_4
Browse files Browse the repository at this point in the history
  • Loading branch information
keithbrown committed Feb 21, 2013
2 parents e7e790e + e88971f commit e7119f8
Show file tree
Hide file tree
Showing 12 changed files with 909 additions and 101 deletions.
18 changes: 18 additions & 0 deletions arc/m.component.arc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
.assign tm_c.Name = component_name
.// relate te_c to tm_c across R2804;
.assign tm_c.te_cID = te_c.ID
.// end relate
.end if
.assign tm_c.isChannel = true
.assign tm_c.include_file = inc_file
Expand Down Expand Up @@ -140,6 +141,7 @@
.if ( not_empty te_c )
.// relate te_c to tm_c across R2804;
.assign tm_c.te_cID = te_c.ID
.// end relate
.end if
.// Make the new template the current one for follow-on markings.
.select many tm_templates from instances of TM_TEMPLATE
Expand All @@ -151,6 +153,7 @@
.// relate tm_template to tm_c across R2800;
.assign tm_template.tm_cPackage = tm_c.Package
.assign tm_template.tm_cName = tm_c.Name
.// end relate
.end for
.end function
.//
Expand Down Expand Up @@ -184,6 +187,7 @@
.assign tm_if.Name = interface_name
.// relate tm_if to c_i across R2807;
.assign tm_if.c_iId = c_i.Id
.// end relate
.// Make the new template the current one for follow-on markings.
.select many tm_templates from instances of TM_TEMPLATE
.for each tm_template in tm_templates
Expand All @@ -194,6 +198,7 @@
.// relate tm_template to tm_if across R2802;
.assign tm_template.tm_ifPackage = tm_if.Package
.assign tm_template.tm_ifName = tm_if.Name
.// end relate
.end function
.//
.//============================================================================
Expand Down Expand Up @@ -234,6 +239,7 @@
.create object instance tm_tp of TM_TP
.// relate tm_tp to tm_template across R2801;
.assign tm_tp.tm_templateID = tm_template.ID
.// end relate
.assign tm_tp.typename = type_name
.assign tm_tp.Name = variable_name
.assign tm_tp.DefaultValue = default_value
Expand Down Expand Up @@ -283,8 +289,10 @@
.assign tm_tpv.value = value
.// relate tm_tpv to tm_tp across R2808;
.assign tm_tpv.tm_tpID = tm_tp.ID
.// end relate
.// relate tm_tpv to te_ci across R2805;
.assign tm_tpv.te_ciID = te_ci.ID
.// end relate
.assign tm_tpv.te_iirID = 0
.else
.print "ERROR: SetTemplateParameter - no component instance for ${package_name}::${instance} with name ${variable_name}."
Expand All @@ -301,8 +309,10 @@
.assign tm_tpv.value = value
.// relate tm_tpv to tm_tp across R2808;
.assign tm_tpv.tm_tpID = tm_tp.ID
.// end relate
.// relate tm_tpv to te_iir across R2806;
.assign tm_tpv.te_iirID = te_iir.ID
.// end relate
.assign tm_tpv.te_ciID = 0
.end for
.select many te_iirs related by ep_pkg->PE_PE[R8000]->C_C[R8001]->CL_IC[R4205]->CL_IIR[R4700]->TE_IIR[R2013] where ( ( selected.port_name == instance ) and ( selected.interface_name == tm_if.Name ) )
Expand All @@ -316,8 +326,10 @@
.assign tm_tpv.value = value
.// relate tm_tpv to tm_tp across R2808;
.assign tm_tpv.tm_tpID = tm_tp.ID
.// end relate
.// relate tm_tpv to te_iir across R2806;
.assign tm_tpv.te_iirID = te_iir.ID
.// end relate
.assign tm_tpv.te_ciID = 0
.end for
.select many te_iirs related by cp_cp->PE_PE[R8000]->C_C[R8001]->C_PO[R4010]->C_IR[R4016]->TE_IIR[R2046] where ( ( selected.port_name == instance ) and ( selected.interface_name == tm_if.Name ) )
Expand All @@ -331,8 +343,10 @@
.assign tm_tpv.value = value
.// relate tm_tpv to tm_tp across R2808;
.assign tm_tpv.tm_tpID = tm_tp.ID
.// end relate
.// relate tm_tpv to te_iir across R2806;
.assign tm_tpv.te_iirID = te_iir.ID
.// end relate
.assign tm_tpv.te_ciID = 0
.end for
.else
Expand Down Expand Up @@ -411,8 +425,10 @@
.assign tm_tpv.value = value
.// relate tm_tpv to tm_tp across R2808;
.assign tm_tpv.tm_tpID = tm_tp.ID
.// end relate
.// relate tm_tpv to te_ci across R2805;
.assign tm_tpv.te_ciID = te_ci.ID
.// end relate
.assign tm_tpv.te_iirID = 0
.else
.print "WARNING: SetTPV - Template parameter not found for ${package_name}::${parent_component}::${component}:${classifier_name}."
Expand Down Expand Up @@ -471,8 +487,10 @@
.assign tm_tpv.value = value
.// relate tm_tpv to tm_tp across R2808;
.assign tm_tpv.tm_tpID = tm_tp.ID
.// end relate
.// relate tm_tpv to te_iir across R2806;
.assign tm_tpv.te_iirID = te_iir.ID
.// end relate
.assign tm_tpv.te_ciID = 0
.//
.// Find a satisfaction or delegation. Recursively apply the same template parameter value to the connections.
Expand Down
12 changes: 6 additions & 6 deletions arc/m.domain.arc
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@
.assign sibling_te_iir.port_name = port
.assign sibling_te_iir.interface_name = te_po.InterfaceName
.assign sibling_te_iir.polymorphic = false
.assign sibling_te_iir.cl_iirId = 0
.assign sibling_te_iir.c_irId = 0
.assign sibling_te_iir.te_poID = 0
.assign sibling_te_iir.cl_iirId = 00
.assign sibling_te_iir.c_irId = 00
.assign sibling_te_iir.te_poID = 00
.// relate sibling_te_iir to te_iir across R2081.'provides or is delegated';
.assign sibling_te_iir.provider_te_iirID = te_iir.ID
.// end relate
Expand All @@ -370,9 +370,9 @@
.assign sibling_te_iir.port_name = port
.assign sibling_te_iir.interface_name = te_po.InterfaceName
.assign sibling_te_iir.polymorphic = false
.assign sibling_te_iir.cl_iirId = 0
.assign sibling_te_iir.c_irId = 0
.assign sibling_te_iir.te_poID = 0
.assign sibling_te_iir.cl_iirId = 00
.assign sibling_te_iir.c_irId = 00
.assign sibling_te_iir.te_poID = 00
.// relate sibling_te_iir to te_iir across R2081.'provides or is delegated';
.assign sibling_te_iir.provider_te_iirID = te_iir.ID
.// end relate
Expand Down
12 changes: 6 additions & 6 deletions arc/q.assoc.pseudoformalize.arc
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
.assign r_form.Txt_Phrs = r_part.Txt_Phrs
.//
.// unrelate r_part from r_rto across R205;
.assign r_part.Obj_ID = 0
.assign r_part.Rel_ID = 0
.assign r_part.OIR_ID = 0
.assign r_part.Obj_ID = 00
.assign r_part.Rel_ID = 00
.assign r_part.OIR_ID = 00
.// end unrelate
.// delete object instance r_part;
.//
.// unrelate r_rto from r_oir across R203;
.assign r_rto.Obj_ID = 0
.assign r_rto.Rel_ID = 0
.assign r_rto.OIR_ID = 0
.assign r_rto.Obj_ID = 00
.assign r_rto.Rel_ID = 00
.assign r_rto.OIR_ID = 00
.// end unrelate
.// delete object instance r_rto;
.//
Expand Down
Loading

0 comments on commit e7119f8

Please sign in to comment.