From 4885eb68d4805d07bb4f4ab6fd8a147ce3caf3dc Mon Sep 17 00:00:00 2001 From: Cortland Starrett Date: Fri, 22 Feb 2013 09:56:00 -0500 Subject: [PATCH 1/4] Began the changes for attr_. Also, moved R2001 from O_OBJ to TE_CLASS. This required an update to the instance dumper. While comparing it with previous instance dumpers, I noted that without sorting, the generated instance dumper will not be easily comparable from build to build. So, I enhanced it to sort the subsystems and sort the classes before emitting. This will keep it consistent from build to build. #4 --- arc/q.class.instance.dump.arc | 6450 +++++++++++++++---------------- arc/q.class.instance.dumper.arc | 62 +- arc/q.datatype.arc | 19 +- arc/q.mc_metamodel.populate.arc | 12 +- arc/q.oal.analyze.arc | 16 +- arc/q.parameters.arc | 17 +- arc/q.smt.generate.arc | 2 +- arc/q.val.translate.arc | 2 +- arc/specialized/sys.arc | 7 +- arc/specialized/t.sys_main.c | 2 +- schema/sql/xtumlmc_schema.sql | 6 +- 11 files changed, 3292 insertions(+), 3303 deletions(-) diff --git a/arc/q.class.instance.dump.arc b/arc/q.class.instance.dump.arc index 96ba98d27..7325d093a 100644 --- a/arc/q.class.instance.dump.arc +++ b/arc/q.class.instance.dump.arc @@ -1,105 +1,49 @@ .print "dumping class instances into SQL format..." .print "Activity" -.select many a_aeas from instances of A_AEA -.for each a_aea in a_aeas -INSERT INTO A_AEA VALUES (\ - .if ( "un-initialized" == "${a_aea.Id}" ) - 0\ - .else - ${a_aea.Id}\ - .end if -, '${a_aea.Name}', ''\ - ); -.end for -.select many a_aes from instances of A_AE -.for each a_ae in a_aes -INSERT INTO A_AE VALUES (\ - .if ( "un-initialized" == "${a_ae.Id}" ) - 0\ - .else - ${a_ae.Id}\ - .end if - ); -.end for -.select many a_ates from instances of A_ATE -.for each a_ate in a_ates -INSERT INTO A_ATE VALUES (\ - .if ( "un-initialized" == "${a_ate.Id}" ) - 0\ - .else - ${a_ate.Id}\ - .end if -, '${a_ate.Name}', ''\ - ); -.end for -.select many a_acts from instances of A_ACT -.for each a_act in a_acts -INSERT INTO A_ACT VALUES (\ - .if ( "un-initialized" == "${a_act.Id}" ) - 0\ - .else - ${a_act.Id}\ - .end if - ); -.end for -.select many a_gas from instances of A_GA -.for each a_ga in a_gas -INSERT INTO A_GA VALUES (\ - .if ( "un-initialized" == "${a_ga.Id}" ) +.select many a_as from instances of A_A +.for each a_a in a_as +INSERT INTO A_A VALUES (\ + .if ( "un-initialized" == "${a_a.Package_ID}" ) 0\ .else - ${a_ga.Id}\ + ${a_a.Package_ID}\ .end if -, '${a_ga.Name}', ''\ - ); -.end for -.select many a_es from instances of A_E -.for each a_e in a_es -INSERT INTO A_E VALUES (\ - .if ( "un-initialized" == "${a_e.Id}" ) - 0\ +, '${a_a.Name}', ''\ +\ + .if ( "un-initialized" == "${a_a.Dom_ID}" ) +, 0\ .else - ${a_e.Id}\ +, ${a_a.Dom_ID}\ .end if \ - .if ( "un-initialized" == "${a_e.Package_ID}" ) + .if ( "un-initialized" == "${a_a.SS_ID}" ) , 0\ .else -, ${a_e.Package_ID}\ +, ${a_a.SS_ID}\ .end if -, '${a_e.Guard}', ''\ \ - .if ( "un-initialized" == "${a_e.TargetId}" ) + .if ( "un-initialized" == "${a_a.Parent_Package_ID}" ) , 0\ .else -, ${a_e.TargetId}\ +, ${a_a.Parent_Package_ID}\ .end if \ - .if ( "un-initialized" == "${a_e.SourceId}" ) + .if ( "un-initialized" == "${a_a.Sys_ID}" ) , 0\ .else -, ${a_e.SourceId}\ +, ${a_a.Sys_ID}\ .end if - ); -.end for -.select many a_afs from instances of A_AF -.for each a_af in a_afs -INSERT INTO A_AF VALUES (\ - .if ( "un-initialized" == "${a_af.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${a_a.Component_Package_ID}" ) +, 0\ .else - ${a_af.Id}\ +, ${a_a.Component_Package_ID}\ .end if -, ''\ - ); -.end for -.select many a_aias from instances of A_AIA -.for each a_aia in a_aias -INSERT INTO A_AIA VALUES (\ - .if ( "un-initialized" == "${a_aia.Package_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${a_a.Component_Id}" ) +, 0\ .else - ${a_aia.Package_ID}\ +, ${a_a.Component_Id}\ .end if ); .end for @@ -119,68 +63,54 @@ INSERT INTO A_N VALUES (\ .end if ); .end for -.select many a_aps from instances of A_AP -.for each a_ap in a_aps -INSERT INTO A_AP VALUES (\ - .if ( "un-initialized" == "${a_ap.Id}" ) - 0\ - .else - ${a_ap.Id}\ - .end if -\ - .if ( "un-initialized" == "${a_ap.Package_ID}" ) -, 0\ - .else -, ${a_ap.Package_ID}\ - .end if -, '${a_ap.Name}', ''\ - ); -.end for -.select many a_as from instances of A_A -.for each a_a in a_as -INSERT INTO A_A VALUES (\ - .if ( "un-initialized" == "${a_a.Package_ID}" ) +.select many a_es from instances of A_E +.for each a_e in a_es +INSERT INTO A_E VALUES (\ + .if ( "un-initialized" == "${a_e.Id}" ) 0\ .else - ${a_a.Package_ID}\ - .end if -, '${a_a.Name}', ''\ -\ - .if ( "un-initialized" == "${a_a.Dom_ID}" ) -, 0\ - .else -, ${a_a.Dom_ID}\ + ${a_e.Id}\ .end if \ - .if ( "un-initialized" == "${a_a.SS_ID}" ) + .if ( "un-initialized" == "${a_e.Package_ID}" ) , 0\ .else -, ${a_a.SS_ID}\ +, ${a_e.Package_ID}\ .end if +, '${a_e.Guard}', ''\ \ - .if ( "un-initialized" == "${a_a.Parent_Package_ID}" ) + .if ( "un-initialized" == "${a_e.TargetId}" ) , 0\ .else -, ${a_a.Parent_Package_ID}\ +, ${a_e.TargetId}\ .end if \ - .if ( "un-initialized" == "${a_a.Sys_ID}" ) + .if ( "un-initialized" == "${a_e.SourceId}" ) , 0\ .else -, ${a_a.Sys_ID}\ +, ${a_e.SourceId}\ .end if -\ - .if ( "un-initialized" == "${a_a.Component_Package_ID}" ) -, 0\ + ); +.end for +.select many a_acts from instances of A_ACT +.for each a_act in a_acts +INSERT INTO A_ACT VALUES (\ + .if ( "un-initialized" == "${a_act.Id}" ) + 0\ .else -, ${a_a.Component_Package_ID}\ + ${a_act.Id}\ .end if -\ - .if ( "un-initialized" == "${a_a.Component_Id}" ) -, 0\ + ); +.end for +.select many a_objs from instances of A_OBJ +.for each a_obj in a_objs +INSERT INTO A_OBJ VALUES (\ + .if ( "un-initialized" == "${a_obj.Id}" ) + 0\ .else -, ${a_a.Component_Id}\ + ${a_obj.Id}\ .end if +, '${a_obj.Name}', ''\ ); .end for .select many a_ctls from instances of A_CTL @@ -193,15 +123,26 @@ INSERT INTO A_CTL VALUES (\ .end if ); .end for -.select many a_dms from instances of A_DM -.for each a_dm in a_dms -INSERT INTO A_DM VALUES (\ - .if ( "un-initialized" == "${a_dm.Id}" ) +.select many a_inis from instances of A_INI +.for each a_ini in a_inis +INSERT INTO A_INI VALUES (\ + .if ( "un-initialized" == "${a_ini.Id}" ) 0\ .else - ${a_dm.Id}\ + ${a_ini.Id}\ .end if -, '${a_dm.Name}', ''\ +, ''\ + ); +.end for +.select many a_afs from instances of A_AF +.for each a_af in a_afs +INSERT INTO A_AF VALUES (\ + .if ( "un-initialized" == "${a_af.Id}" ) + 0\ + .else + ${a_af.Id}\ + .end if +, ''\ ); .end for .select many a_ffs from instances of A_FF @@ -215,6 +156,17 @@ INSERT INTO A_FF VALUES (\ , ''\ ); .end for +.select many a_dms from instances of A_DM +.for each a_dm in a_dms +INSERT INTO A_DM VALUES (\ + .if ( "un-initialized" == "${a_dm.Id}" ) + 0\ + .else + ${a_dm.Id}\ + .end if +, '${a_dm.Name}', ''\ + ); +.end for .select many a_fjs from instances of A_FJ .for each a_fj in a_fjs INSERT INTO A_FJ VALUES (\ @@ -226,26 +178,25 @@ INSERT INTO A_FJ VALUES (\ , ''\ , '${a_fj.GuardCondition}' ); .end for -.select many a_inis from instances of A_INI -.for each a_ini in a_inis -INSERT INTO A_INI VALUES (\ - .if ( "un-initialized" == "${a_ini.Id}" ) +.select many a_gas from instances of A_GA +.for each a_ga in a_gas +INSERT INTO A_GA VALUES (\ + .if ( "un-initialized" == "${a_ga.Id}" ) 0\ .else - ${a_ini.Id}\ + ${a_ga.Id}\ .end if -, ''\ +, '${a_ga.Name}', ''\ ); .end for -.select many a_objs from instances of A_OBJ -.for each a_obj in a_objs -INSERT INTO A_OBJ VALUES (\ - .if ( "un-initialized" == "${a_obj.Id}" ) +.select many a_aes from instances of A_AE +.for each a_ae in a_aes +INSERT INTO A_AE VALUES (\ + .if ( "un-initialized" == "${a_ae.Id}" ) 0\ .else - ${a_obj.Id}\ + ${a_ae.Id}\ .end if -, '${a_obj.Name}', ''\ ); .end for .select many a_sss from instances of A_SS @@ -259,133 +210,176 @@ INSERT INTO A_SS VALUES (\ , '${a_ss.Name}', ''\ ); .end for -.print "Association" -.select many r_rels from instances of R_REL -.for each r_rel in r_rels -INSERT INTO R_REL VALUES (\ - .if ( "un-initialized" == "${r_rel.Rel_ID}" ) +.select many a_aias from instances of A_AIA +.for each a_aia in a_aias +INSERT INTO A_AIA VALUES (\ + .if ( "un-initialized" == "${a_aia.Package_ID}" ) 0\ .else - ${r_rel.Rel_ID}\ - .end if -, ${r_rel.Numb}, ''\ -\ - .if ( "un-initialized" == "${r_rel.SS_ID}" ) -, 0\ - .else -, ${r_rel.SS_ID}\ + ${a_aia.Package_ID}\ .end if ); .end for -.select many r_aones from instances of R_AONE -.for each r_aone in r_aones -INSERT INTO R_AONE VALUES (\ - .if ( "un-initialized" == "${r_aone.Obj_ID}" ) - 0\ +.select many a_aps from instances of A_AP +.for each a_ap in a_aps +INSERT INTO A_AP VALUES (\ + .if ( "un-initialized" == "${a_ap.Id}" ) + 0\ .else - ${r_aone.Obj_ID}\ + ${a_ap.Id}\ .end if \ - .if ( "un-initialized" == "${r_aone.Rel_ID}" ) + .if ( "un-initialized" == "${a_ap.Package_ID}" ) , 0\ .else -, ${r_aone.Rel_ID}\ +, ${a_ap.Package_ID}\ + .end if +, '${a_ap.Name}', ''\ + ); +.end for +.select many a_ates from instances of A_ATE +.for each a_ate in a_ates +INSERT INTO A_ATE VALUES (\ + .if ( "un-initialized" == "${a_ate.Id}" ) + 0\ + .else + ${a_ate.Id}\ + .end if +, '${a_ate.Name}', ''\ + ); +.end for +.select many a_aeas from instances of A_AEA +.for each a_aea in a_aeas +INSERT INTO A_AEA VALUES (\ + .if ( "un-initialized" == "${a_aea.Id}" ) + 0\ + .else + ${a_aea.Id}\ + .end if +, '${a_aea.Name}', ''\ + ); +.end for +.print "Association" +.select many r_rels from instances of R_REL +.for each r_rel in r_rels +INSERT INTO R_REL VALUES (\ + .if ( "un-initialized" == "${r_rel.Rel_ID}" ) + 0\ + .else + ${r_rel.Rel_ID}\ .end if +, ${r_rel.Numb}, ''\ \ - .if ( "un-initialized" == "${r_aone.OIR_ID}" ) + .if ( "un-initialized" == "${r_rel.SS_ID}" ) , 0\ .else -, ${r_aone.OIR_ID}\ +, ${r_rel.SS_ID}\ .end if -, ${r_aone.Mult}, ${r_aone.Cond}, '${r_aone.Txt_Phrs}' ); + ); .end for -.select many r_aoths from instances of R_AOTH -.for each r_aoth in r_aoths -INSERT INTO R_AOTH VALUES (\ - .if ( "un-initialized" == "${r_aoth.Obj_ID}" ) +.select many r_oirs from instances of R_OIR +.for each r_oir in r_oirs +INSERT INTO R_OIR VALUES (\ + .if ( "un-initialized" == "${r_oir.Obj_ID}" ) 0\ .else - ${r_aoth.Obj_ID}\ + ${r_oir.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_aoth.Rel_ID}" ) + .if ( "un-initialized" == "${r_oir.Rel_ID}" ) , 0\ .else -, ${r_aoth.Rel_ID}\ +, ${r_oir.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_aoth.OIR_ID}" ) + .if ( "un-initialized" == "${r_oir.OIR_ID}" ) , 0\ .else -, ${r_aoth.OIR_ID}\ +, ${r_oir.OIR_ID}\ .end if -, ${r_aoth.Mult}, ${r_aoth.Cond}, '${r_aoth.Txt_Phrs}' ); +\ + .if ( "un-initialized" == "${r_oir.IObj_ID}" ) +, 0\ + .else +, ${r_oir.IObj_ID}\ + .end if + ); .end for -.select many r_cones from instances of R_CONE -.for each r_cone in r_cones -INSERT INTO R_CONE VALUES (\ - .if ( "un-initialized" == "${r_cone.Obj_ID}" ) +.select many r_rtos from instances of R_RTO +.for each r_rto in r_rtos +INSERT INTO R_RTO VALUES (\ + .if ( "un-initialized" == "${r_rto.Obj_ID}" ) 0\ .else - ${r_cone.Obj_ID}\ + ${r_rto.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_cone.Rel_ID}" ) + .if ( "un-initialized" == "${r_rto.Rel_ID}" ) , 0\ .else -, ${r_cone.Rel_ID}\ +, ${r_rto.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_cone.OIR_ID}" ) + .if ( "un-initialized" == "${r_rto.OIR_ID}" ) , 0\ .else -, ${r_cone.OIR_ID}\ +, ${r_rto.OIR_ID}\ .end if -, ${r_cone.Mult}, ${r_cone.Cond}, '${r_cone.Txt_Phrs}' ); +, ${r_rto.Oid_ID} ); .end for -.select many r_coths from instances of R_COTH -.for each r_coth in r_coths -INSERT INTO R_COTH VALUES (\ - .if ( "un-initialized" == "${r_coth.Obj_ID}" ) +.select many r_rgos from instances of R_RGO +.for each r_rgo in r_rgos +INSERT INTO R_RGO VALUES (\ + .if ( "un-initialized" == "${r_rgo.Obj_ID}" ) 0\ .else - ${r_coth.Obj_ID}\ + ${r_rgo.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_coth.Rel_ID}" ) + .if ( "un-initialized" == "${r_rgo.Rel_ID}" ) , 0\ .else -, ${r_coth.Rel_ID}\ +, ${r_rgo.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_coth.OIR_ID}" ) + .if ( "un-initialized" == "${r_rgo.OIR_ID}" ) , 0\ .else -, ${r_coth.OIR_ID}\ +, ${r_rgo.OIR_ID}\ .end if -, ${r_coth.Mult}, ${r_coth.Cond}, '${r_coth.Txt_Phrs}' ); + ); .end for -.select many r_assrs from instances of R_ASSR -.for each r_assr in r_assrs -INSERT INTO R_ASSR VALUES (\ - .if ( "un-initialized" == "${r_assr.Obj_ID}" ) +.select many r_simps from instances of R_SIMP +.for each r_simp in r_simps +INSERT INTO R_SIMP VALUES (\ + .if ( "un-initialized" == "${r_simp.Rel_ID}" ) 0\ .else - ${r_assr.Obj_ID}\ + ${r_simp.Rel_ID}\ + .end if + ); +.end for +.select many r_parts from instances of R_PART +.for each r_part in r_parts +INSERT INTO R_PART VALUES (\ + .if ( "un-initialized" == "${r_part.Obj_ID}" ) + 0\ + .else + ${r_part.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_assr.Rel_ID}" ) + .if ( "un-initialized" == "${r_part.Rel_ID}" ) , 0\ .else -, ${r_assr.Rel_ID}\ +, ${r_part.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_assr.OIR_ID}" ) + .if ( "un-initialized" == "${r_part.OIR_ID}" ) , 0\ .else -, ${r_assr.OIR_ID}\ +, ${r_part.OIR_ID}\ .end if -, ${r_assr.Mult} ); +, ${r_part.Mult}, ${r_part.Cond}, '${r_part.Txt_Phrs}' ); .end for .select many r_forms from instances of R_FORM .for each r_form in r_forms @@ -409,47 +403,89 @@ INSERT INTO R_FORM VALUES (\ .end if , ${r_form.Mult}, ${r_form.Cond}, '${r_form.Txt_Phrs}' ); .end for -.select many r_parts from instances of R_PART -.for each r_part in r_parts -INSERT INTO R_PART VALUES (\ - .if ( "un-initialized" == "${r_part.Obj_ID}" ) +.select many r_assocs from instances of R_ASSOC +.for each r_assoc in r_assocs +INSERT INTO R_ASSOC VALUES (\ + .if ( "un-initialized" == "${r_assoc.Rel_ID}" ) 0\ .else - ${r_part.Obj_ID}\ + ${r_assoc.Rel_ID}\ + .end if + ); +.end for +.select many r_aones from instances of R_AONE +.for each r_aone in r_aones +INSERT INTO R_AONE VALUES (\ + .if ( "un-initialized" == "${r_aone.Obj_ID}" ) + 0\ + .else + ${r_aone.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_part.Rel_ID}" ) + .if ( "un-initialized" == "${r_aone.Rel_ID}" ) , 0\ .else -, ${r_part.Rel_ID}\ +, ${r_aone.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_part.OIR_ID}" ) + .if ( "un-initialized" == "${r_aone.OIR_ID}" ) , 0\ .else -, ${r_part.OIR_ID}\ +, ${r_aone.OIR_ID}\ .end if -, ${r_part.Mult}, ${r_part.Cond}, '${r_part.Txt_Phrs}' ); +, ${r_aone.Mult}, ${r_aone.Cond}, '${r_aone.Txt_Phrs}' ); .end for -.select many r_subs from instances of R_SUB -.for each r_sub in r_subs -INSERT INTO R_SUB VALUES (\ - .if ( "un-initialized" == "${r_sub.Obj_ID}" ) +.select many r_aoths from instances of R_AOTH +.for each r_aoth in r_aoths +INSERT INTO R_AOTH VALUES (\ + .if ( "un-initialized" == "${r_aoth.Obj_ID}" ) 0\ .else - ${r_sub.Obj_ID}\ + ${r_aoth.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_sub.Rel_ID}" ) + .if ( "un-initialized" == "${r_aoth.Rel_ID}" ) , 0\ .else -, ${r_sub.Rel_ID}\ +, ${r_aoth.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_sub.OIR_ID}" ) + .if ( "un-initialized" == "${r_aoth.OIR_ID}" ) , 0\ .else -, ${r_sub.OIR_ID}\ +, ${r_aoth.OIR_ID}\ + .end if +, ${r_aoth.Mult}, ${r_aoth.Cond}, '${r_aoth.Txt_Phrs}' ); +.end for +.select many r_assrs from instances of R_ASSR +.for each r_assr in r_assrs +INSERT INTO R_ASSR VALUES (\ + .if ( "un-initialized" == "${r_assr.Obj_ID}" ) + 0\ + .else + ${r_assr.Obj_ID}\ + .end if +\ + .if ( "un-initialized" == "${r_assr.Rel_ID}" ) +, 0\ + .else +, ${r_assr.Rel_ID}\ + .end if +\ + .if ( "un-initialized" == "${r_assr.OIR_ID}" ) +, 0\ + .else +, ${r_assr.OIR_ID}\ + .end if +, ${r_assr.Mult} ); +.end for +.select many r_subsups from instances of R_SUBSUP +.for each r_subsup in r_subsups +INSERT INTO R_SUBSUP VALUES (\ + .if ( "un-initialized" == "${r_subsup.Rel_ID}" ) + 0\ + .else + ${r_subsup.Rel_ID}\ .end if ); .end for @@ -475,31 +511,25 @@ INSERT INTO R_SUPER VALUES (\ .end if ); .end for -.select many r_oirs from instances of R_OIR -.for each r_oir in r_oirs -INSERT INTO R_OIR VALUES (\ - .if ( "un-initialized" == "${r_oir.Obj_ID}" ) +.select many r_subs from instances of R_SUB +.for each r_sub in r_subs +INSERT INTO R_SUB VALUES (\ + .if ( "un-initialized" == "${r_sub.Obj_ID}" ) 0\ .else - ${r_oir.Obj_ID}\ - .end if -\ - .if ( "un-initialized" == "${r_oir.Rel_ID}" ) -, 0\ - .else -, ${r_oir.Rel_ID}\ + ${r_sub.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_oir.OIR_ID}" ) + .if ( "un-initialized" == "${r_sub.Rel_ID}" ) , 0\ .else -, ${r_oir.OIR_ID}\ +, ${r_sub.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_oir.IObj_ID}" ) + .if ( "un-initialized" == "${r_sub.OIR_ID}" ) , 0\ .else -, ${r_oir.IObj_ID}\ +, ${r_sub.OIR_ID}\ .end if ); .end for @@ -513,79 +543,49 @@ INSERT INTO R_COMP VALUES (\ .end if , '${r_comp.Rel_Chn}' ); .end for -.select many r_assocs from instances of R_ASSOC -.for each r_assoc in r_assocs -INSERT INTO R_ASSOC VALUES (\ - .if ( "un-initialized" == "${r_assoc.Rel_ID}" ) - 0\ - .else - ${r_assoc.Rel_ID}\ - .end if - ); -.end for -.select many r_rtos from instances of R_RTO -.for each r_rto in r_rtos -INSERT INTO R_RTO VALUES (\ - .if ( "un-initialized" == "${r_rto.Obj_ID}" ) +.select many r_cones from instances of R_CONE +.for each r_cone in r_cones +INSERT INTO R_CONE VALUES (\ + .if ( "un-initialized" == "${r_cone.Obj_ID}" ) 0\ .else - ${r_rto.Obj_ID}\ + ${r_cone.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_rto.Rel_ID}" ) + .if ( "un-initialized" == "${r_cone.Rel_ID}" ) , 0\ .else -, ${r_rto.Rel_ID}\ +, ${r_cone.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_rto.OIR_ID}" ) + .if ( "un-initialized" == "${r_cone.OIR_ID}" ) , 0\ .else -, ${r_rto.OIR_ID}\ +, ${r_cone.OIR_ID}\ .end if -, ${r_rto.Oid_ID} ); +, ${r_cone.Mult}, ${r_cone.Cond}, '${r_cone.Txt_Phrs}' ); .end for -.select many r_rgos from instances of R_RGO -.for each r_rgo in r_rgos -INSERT INTO R_RGO VALUES (\ - .if ( "un-initialized" == "${r_rgo.Obj_ID}" ) +.select many r_coths from instances of R_COTH +.for each r_coth in r_coths +INSERT INTO R_COTH VALUES (\ + .if ( "un-initialized" == "${r_coth.Obj_ID}" ) 0\ .else - ${r_rgo.Obj_ID}\ + ${r_coth.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${r_rgo.Rel_ID}" ) + .if ( "un-initialized" == "${r_coth.Rel_ID}" ) , 0\ .else -, ${r_rgo.Rel_ID}\ +, ${r_coth.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${r_rgo.OIR_ID}" ) + .if ( "un-initialized" == "${r_coth.OIR_ID}" ) , 0\ .else -, ${r_rgo.OIR_ID}\ - .end if - ); -.end for -.select many r_simps from instances of R_SIMP -.for each r_simp in r_simps -INSERT INTO R_SIMP VALUES (\ - .if ( "un-initialized" == "${r_simp.Rel_ID}" ) - 0\ - .else - ${r_simp.Rel_ID}\ - .end if - ); -.end for -.select many r_subsups from instances of R_SUBSUP -.for each r_subsup in r_subsups -INSERT INTO R_SUBSUP VALUES (\ - .if ( "un-initialized" == "${r_subsup.Rel_ID}" ) - 0\ - .else - ${r_subsup.Rel_ID}\ +, ${r_coth.OIR_ID}\ .end if - ); +, ${r_coth.Mult}, ${r_coth.Cond}, '${r_coth.Txt_Phrs}' ); .end for .print "Breakpoint" .select many bp_bps from instances of BP_BP @@ -598,15 +598,21 @@ INSERT INTO BP_BP VALUES (\ .end if , ${bp_bp.enabled}, ${bp_bp.condition_enabled}, ${bp_bp.hit_count}, ${bp_bp.target_hit_count}, ${bp_bp.for_step} ); .end for -.select many bp_cons from instances of BP_CON -.for each bp_con in bp_cons -INSERT INTO BP_CON VALUES (\ - .if ( "un-initialized" == "${bp_con.Breakpoint_ID}" ) +.select many bp_oals from instances of BP_OAL +.for each bp_oal in bp_oals +INSERT INTO BP_OAL VALUES (\ + .if ( "un-initialized" == "${bp_oal.Statement_ID}" ) 0\ .else - ${bp_con.Breakpoint_ID}\ + ${bp_oal.Statement_ID}\ .end if -, '${bp_con.Expression}' ); +\ + .if ( "un-initialized" == "${bp_oal.Breakpoint_ID}" ) +, 0\ + .else +, ${bp_oal.Breakpoint_ID}\ + .end if + ); .end for .select many bp_evs from instances of BP_EV .for each bp_ev in bp_evs @@ -624,21 +630,15 @@ INSERT INTO BP_EV VALUES (\ .end if ); .end for -.select many bp_oals from instances of BP_OAL -.for each bp_oal in bp_oals -INSERT INTO BP_OAL VALUES (\ - .if ( "un-initialized" == "${bp_oal.Statement_ID}" ) +.select many bp_cons from instances of BP_CON +.for each bp_con in bp_cons +INSERT INTO BP_CON VALUES (\ + .if ( "un-initialized" == "${bp_con.Breakpoint_ID}" ) 0\ .else - ${bp_oal.Statement_ID}\ - .end if -\ - .if ( "un-initialized" == "${bp_oal.Breakpoint_ID}" ) -, 0\ - .else -, ${bp_oal.Breakpoint_ID}\ + ${bp_con.Breakpoint_ID}\ .end if - ); +, '${bp_con.Expression}' ); .end for .select many bp_sts from instances of BP_ST .for each bp_st in bp_sts @@ -662,230 +662,240 @@ INSERT INTO BP_ST VALUES (\ .end if ); .end for -.print "Communication And Access" -.select many ca_accs from instances of CA_ACC -.for each ca_acc in ca_accs -INSERT INTO CA_ACC VALUES (\ - .if ( "un-initialized" == "${ca_acc.APath_ID}" ) +.print "Class State Machine Execution" +.select many csme_clms from instances of CSME_CLM +.for each csme_clm in csme_clms +INSERT INTO CSME_CLM VALUES (\ + .if ( "un-initialized" == "${csme_clm.Execution_Engine_ID}" ) 0\ .else - ${ca_acc.APath_ID}\ + ${csme_clm.Execution_Engine_ID}\ .end if \ - .if ( "un-initialized" == "${ca_acc.SS_ID}" ) + .if ( "un-initialized" == "${csme_clm.CIE_ID}" ) , 0\ .else -, ${ca_acc.SS_ID}\ +, ${csme_clm.CIE_ID}\ .end if -\ - .if ( "un-initialized" == "${ca_acc.SM_ID}" ) -, 0\ + ); +.end for +.select many csme_cies from instances of CSME_CIE +.for each csme_cie in csme_cies +INSERT INTO CSME_CIE VALUES (\ + .if ( "un-initialized" == "${csme_cie.CIE_ID}" ) + 0\ .else -, ${ca_acc.SM_ID}\ + ${csme_cie.CIE_ID}\ .end if \ - .if ( "un-initialized" == "${ca_acc.IObj_ID}" ) + .if ( "un-initialized" == "${csme_cie.Execution_Engine_ID}" ) , 0\ .else -, ${ca_acc.IObj_ID}\ +, ${csme_cie.Execution_Engine_ID}\ .end if - ); -.end for -.select many ca_comms from instances of CA_COMM -.for each ca_comm in ca_comms -INSERT INTO CA_COMM VALUES (\ - .if ( "un-initialized" == "${ca_comm.CPath_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${csme_cie.Obj_ID}" ) +, 0\ .else - ${ca_comm.CPath_ID}\ +, ${csme_cie.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${ca_comm.SS_ID}" ) + .if ( "un-initialized" == "${csme_cie.Package_ID}" ) , 0\ .else -, ${ca_comm.SS_ID}\ +, ${csme_cie.Package_ID}\ .end if - ); +, '${csme_cie.Label}' ); .end for -.select many ca_eesmcs from instances of CA_EESMC -.for each ca_eesmc in ca_eesmcs -INSERT INTO CA_EESMC VALUES (\ - .if ( "un-initialized" == "${ca_eesmc.CPath_ID}" ) +.select many csme_ciss from instances of CSME_CIS +.for each csme_cis in csme_ciss +INSERT INTO CSME_CIS VALUES (\ + .if ( "un-initialized" == "${csme_cis.SM_ID}" ) 0\ .else - ${ca_eesmc.CPath_ID}\ + ${csme_cis.SM_ID}\ .end if \ - .if ( "un-initialized" == "${ca_eesmc.EEmod_ID}" ) + .if ( "un-initialized" == "${csme_cis.SMstt_ID}" ) , 0\ .else -, ${ca_eesmc.EEmod_ID}\ +, ${csme_cis.SMstt_ID}\ .end if \ - .if ( "un-initialized" == "${ca_eesmc.EE_ID}" ) + .if ( "un-initialized" == "${csme_cis.Trans_ID}" ) , 0\ .else -, ${ca_eesmc.EE_ID}\ +, ${csme_cis.Trans_ID}\ .end if \ - .if ( "un-initialized" == "${ca_eesmc.SM_ID}" ) + .if ( "un-initialized" == "${csme_cis.CIE_ID}" ) , 0\ .else -, ${ca_eesmc.SM_ID}\ +, ${csme_cis.CIE_ID}\ .end if ); .end for -.select many ca_eesmes from instances of CA_EESME -.for each ca_eesme in ca_eesmes -INSERT INTO CA_EESME VALUES (\ - .if ( "un-initialized" == "${ca_eesme.CPath_ID}" ) +.print "Communication" +.select many comm_comms from instances of COMM_COMM +.for each comm_comm in comm_comms +INSERT INTO COMM_COMM VALUES (\ + .if ( "un-initialized" == "${comm_comm.Package_ID}" ) 0\ .else - ${ca_eesme.CPath_ID}\ + ${comm_comm.Package_ID}\ .end if \ - .if ( "un-initialized" == "${ca_eesme.SMevt_ID}" ) + .if ( "un-initialized" == "${comm_comm.Dom_ID}" ) , 0\ .else -, ${ca_eesme.SMevt_ID}\ - .end if - ); -.end for -.select many ca_smeeas from instances of CA_SMEEA -.for each ca_smeea in ca_smeeas -INSERT INTO CA_SMEEA VALUES (\ - .if ( "un-initialized" == "${ca_smeea.APath_ID}" ) - 0\ - .else - ${ca_smeea.APath_ID}\ +, ${comm_comm.Dom_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smeea.EE_ID}" ) + .if ( "un-initialized" == "${comm_comm.SS_ID}" ) , 0\ .else -, ${ca_smeea.EE_ID}\ +, ${comm_comm.SS_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smeea.EEmod_ID}" ) + .if ( "un-initialized" == "${comm_comm.CIC_Package_ID}" ) , 0\ .else -, ${ca_smeea.EEmod_ID}\ - .end if - ); -.end for -.select many ca_smeecs from instances of CA_SMEEC -.for each ca_smeec in ca_smeecs -INSERT INTO CA_SMEEC VALUES (\ - .if ( "un-initialized" == "${ca_smeec.CPath_ID}" ) - 0\ - .else - ${ca_smeec.CPath_ID}\ +, ${comm_comm.CIC_Package_ID}\ .end if +, '${comm_comm.Name}', ''\ \ - .if ( "un-initialized" == "${ca_smeec.SM_ID}" ) + .if ( "un-initialized" == "${comm_comm.Sys_ID}" ) , 0\ .else -, ${ca_smeec.SM_ID}\ +, ${comm_comm.Sys_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smeec.EE_ID}" ) + .if ( "un-initialized" == "${comm_comm.Component_Package_ID}" ) , 0\ .else -, ${ca_smeec.EE_ID}\ +, ${comm_comm.Component_Package_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smeec.EEmod_ID}" ) + .if ( "un-initialized" == "${comm_comm.Component_Id}" ) , 0\ .else -, ${ca_smeec.EEmod_ID}\ +, ${comm_comm.Component_Id}\ .end if ); .end for -.select many ca_smeeds from instances of CA_SMEED -.for each ca_smeed in ca_smeeds -INSERT INTO CA_SMEED VALUES (\ - .if ( "un-initialized" == "${ca_smeed.APath_ID}" ) +.select many comm_lnks from instances of COMM_LNK +.for each comm_lnk in comm_lnks +INSERT INTO COMM_LNK VALUES (\ + .if ( "un-initialized" == "${comm_lnk.Link_ID}" ) 0\ .else - ${ca_smeed.APath_ID}\ + ${comm_lnk.Link_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smeed.EEdi_ID}" ) + .if ( "un-initialized" == "${comm_lnk.Rel_ID}" ) , 0\ .else -, ${ca_smeed.EEdi_ID}\ +, ${comm_lnk.Rel_ID}\ + .end if +, '${comm_lnk.Numb}', ''\ +, '${comm_lnk.StartText}', '${comm_lnk.EndText}', ${comm_lnk.isFormal}, ${comm_lnk.StartVisibility}, ${comm_lnk.EndVisibility}\ + .if ( "un-initialized" == "${comm_lnk.Start_Part_ID}" ) +, 0\ + .else +, ${comm_lnk.Start_Part_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smeed.EE_ID}" ) + .if ( "un-initialized" == "${comm_lnk.Destination_Part_ID}" ) , 0\ .else -, ${ca_smeed.EE_ID}\ +, ${comm_lnk.Destination_Part_ID}\ .end if ); .end for -.select many ca_smeees from instances of CA_SMEEE -.for each ca_smeee in ca_smeees -INSERT INTO CA_SMEEE VALUES (\ - .if ( "un-initialized" == "${ca_smeee.CPath_ID}" ) +.select many comm_cics from instances of COMM_CIC +.for each comm_cic in comm_cics +INSERT INTO COMM_CIC VALUES (\ + .if ( "un-initialized" == "${comm_cic.Package_ID}" ) 0\ .else - ${ca_smeee.CPath_ID}\ + ${comm_cic.Package_ID}\ .end if -\ - .if ( "un-initialized" == "${ca_smeee.EE_ID}" ) -, 0\ + ); +.end for +.select many comm_mics from instances of COMM_MIC +.for each comm_mic in comm_mics +INSERT INTO COMM_MIC VALUES (\ + .if ( "un-initialized" == "${comm_mic.Package_ID}" ) + 0\ .else -, ${ca_smeee.EE_ID}\ + ${comm_mic.Package_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smeee.EEevt_ID}" ) + .if ( "un-initialized" == "${comm_mic.Msg_ID}" ) , 0\ .else -, ${ca_smeee.EEevt_ID}\ +, ${comm_mic.Msg_ID}\ .end if ); .end for -.select many ca_smoas from instances of CA_SMOA -.for each ca_smoa in ca_smoas -INSERT INTO CA_SMOA VALUES (\ - .if ( "un-initialized" == "${ca_smoa.APath_ID}" ) +.select many comm_pics from instances of COMM_PIC +.for each comm_pic in comm_pics +INSERT INTO COMM_PIC VALUES (\ + .if ( "un-initialized" == "${comm_pic.Package_ID}" ) 0\ .else - ${ca_smoa.APath_ID}\ + ${comm_pic.Package_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smoa.Obj_ID}" ) + .if ( "un-initialized" == "${comm_pic.Part_ID}" ) , 0\ .else -, ${ca_smoa.Obj_ID}\ +, ${comm_pic.Part_ID}\ + .end if + ); +.end for +.print "Communication And Access" +.select many ca_comms from instances of CA_COMM +.for each ca_comm in ca_comms +INSERT INTO CA_COMM VALUES (\ + .if ( "un-initialized" == "${ca_comm.CPath_ID}" ) + 0\ + .else + ${ca_comm.CPath_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smoa.IObj_ID}" ) + .if ( "un-initialized" == "${ca_comm.SS_ID}" ) , 0\ .else -, ${ca_smoa.IObj_ID}\ +, ${ca_comm.SS_ID}\ .end if ); .end for -.select many ca_smoaas from instances of CA_SMOAA -.for each ca_smoaa in ca_smoaas -INSERT INTO CA_SMOAA VALUES (\ - .if ( "un-initialized" == "${ca_smoaa.APath_ID}" ) +.select many ca_eesmcs from instances of CA_EESMC +.for each ca_eesmc in ca_eesmcs +INSERT INTO CA_EESMC VALUES (\ + .if ( "un-initialized" == "${ca_eesmc.CPath_ID}" ) 0\ .else - ${ca_smoaa.APath_ID}\ + ${ca_eesmc.CPath_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smoaa.Attr_ID}" ) + .if ( "un-initialized" == "${ca_eesmc.EEmod_ID}" ) , 0\ .else -, ${ca_smoaa.Attr_ID}\ +, ${ca_eesmc.EEmod_ID}\ .end if \ - .if ( "un-initialized" == "${ca_smoaa.Obj_ID}" ) + .if ( "un-initialized" == "${ca_eesmc.EE_ID}" ) , 0\ .else -, ${ca_smoaa.Obj_ID}\ +, ${ca_eesmc.EE_ID}\ + .end if +\ + .if ( "un-initialized" == "${ca_eesmc.SM_ID}" ) +, 0\ + .else +, ${ca_eesmc.SM_ID}\ .end if ); .end for @@ -923,6 +933,50 @@ INSERT INTO CA_SMSMC VALUES (\ .end if ); .end for +.select many ca_smeecs from instances of CA_SMEEC +.for each ca_smeec in ca_smeecs +INSERT INTO CA_SMEEC VALUES (\ + .if ( "un-initialized" == "${ca_smeec.CPath_ID}" ) + 0\ + .else + ${ca_smeec.CPath_ID}\ + .end if +\ + .if ( "un-initialized" == "${ca_smeec.SM_ID}" ) +, 0\ + .else +, ${ca_smeec.SM_ID}\ + .end if +\ + .if ( "un-initialized" == "${ca_smeec.EE_ID}" ) +, 0\ + .else +, ${ca_smeec.EE_ID}\ + .end if +\ + .if ( "un-initialized" == "${ca_smeec.EEmod_ID}" ) +, 0\ + .else +, ${ca_smeec.EEmod_ID}\ + .end if + ); +.end for +.select many ca_eesmes from instances of CA_EESME +.for each ca_eesme in ca_eesmes +INSERT INTO CA_EESME VALUES (\ + .if ( "un-initialized" == "${ca_eesme.CPath_ID}" ) + 0\ + .else + ${ca_eesme.CPath_ID}\ + .end if +\ + .if ( "un-initialized" == "${ca_eesme.SMevt_ID}" ) +, 0\ + .else +, ${ca_eesme.SMevt_ID}\ + .end if + ); +.end for .select many ca_smsmes from instances of CA_SMSME .for each ca_smsme in ca_smsmes INSERT INTO CA_SMSME VALUES (\ @@ -939,122 +993,141 @@ INSERT INTO CA_SMSME VALUES (\ .end if ); .end for -.print "Communication" -.select many comm_lnks from instances of COMM_LNK -.for each comm_lnk in comm_lnks -INSERT INTO COMM_LNK VALUES (\ - .if ( "un-initialized" == "${comm_lnk.Link_ID}" ) +.select many ca_smeees from instances of CA_SMEEE +.for each ca_smeee in ca_smeees +INSERT INTO CA_SMEEE VALUES (\ + .if ( "un-initialized" == "${ca_smeee.CPath_ID}" ) 0\ .else - ${comm_lnk.Link_ID}\ + ${ca_smeee.CPath_ID}\ .end if \ - .if ( "un-initialized" == "${comm_lnk.Rel_ID}" ) -, 0\ - .else -, ${comm_lnk.Rel_ID}\ - .end if -, '${comm_lnk.Numb}', ''\ -, '${comm_lnk.StartText}', '${comm_lnk.EndText}', ${comm_lnk.isFormal}, ${comm_lnk.StartVisibility}, ${comm_lnk.EndVisibility}\ - .if ( "un-initialized" == "${comm_lnk.Start_Part_ID}" ) + .if ( "un-initialized" == "${ca_smeee.EE_ID}" ) , 0\ .else -, ${comm_lnk.Start_Part_ID}\ +, ${ca_smeee.EE_ID}\ .end if \ - .if ( "un-initialized" == "${comm_lnk.Destination_Part_ID}" ) + .if ( "un-initialized" == "${ca_smeee.EEevt_ID}" ) , 0\ .else -, ${comm_lnk.Destination_Part_ID}\ +, ${ca_smeee.EEevt_ID}\ .end if ); .end for -.select many comm_cics from instances of COMM_CIC -.for each comm_cic in comm_cics -INSERT INTO COMM_CIC VALUES (\ - .if ( "un-initialized" == "${comm_cic.Package_ID}" ) +.select many ca_accs from instances of CA_ACC +.for each ca_acc in ca_accs +INSERT INTO CA_ACC VALUES (\ + .if ( "un-initialized" == "${ca_acc.APath_ID}" ) 0\ .else - ${comm_cic.Package_ID}\ + ${ca_acc.APath_ID}\ .end if - ); -.end for -.select many comm_comms from instances of COMM_COMM -.for each comm_comm in comm_comms -INSERT INTO COMM_COMM VALUES (\ - .if ( "un-initialized" == "${comm_comm.Package_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${ca_acc.SS_ID}" ) +, 0\ .else - ${comm_comm.Package_ID}\ +, ${ca_acc.SS_ID}\ .end if \ - .if ( "un-initialized" == "${comm_comm.Dom_ID}" ) + .if ( "un-initialized" == "${ca_acc.SM_ID}" ) , 0\ .else -, ${comm_comm.Dom_ID}\ +, ${ca_acc.SM_ID}\ .end if \ - .if ( "un-initialized" == "${comm_comm.SS_ID}" ) + .if ( "un-initialized" == "${ca_acc.IObj_ID}" ) , 0\ .else -, ${comm_comm.SS_ID}\ +, ${ca_acc.IObj_ID}\ + .end if + ); +.end for +.select many ca_smoas from instances of CA_SMOA +.for each ca_smoa in ca_smoas +INSERT INTO CA_SMOA VALUES (\ + .if ( "un-initialized" == "${ca_smoa.APath_ID}" ) + 0\ + .else + ${ca_smoa.APath_ID}\ .end if \ - .if ( "un-initialized" == "${comm_comm.CIC_Package_ID}" ) + .if ( "un-initialized" == "${ca_smoa.Obj_ID}" ) , 0\ .else -, ${comm_comm.CIC_Package_ID}\ +, ${ca_smoa.Obj_ID}\ .end if -, '${comm_comm.Name}', ''\ \ - .if ( "un-initialized" == "${comm_comm.Sys_ID}" ) + .if ( "un-initialized" == "${ca_smoa.IObj_ID}" ) , 0\ .else -, ${comm_comm.Sys_ID}\ +, ${ca_smoa.IObj_ID}\ + .end if + ); +.end for +.select many ca_smeeas from instances of CA_SMEEA +.for each ca_smeea in ca_smeeas +INSERT INTO CA_SMEEA VALUES (\ + .if ( "un-initialized" == "${ca_smeea.APath_ID}" ) + 0\ + .else + ${ca_smeea.APath_ID}\ .end if \ - .if ( "un-initialized" == "${comm_comm.Component_Package_ID}" ) + .if ( "un-initialized" == "${ca_smeea.EE_ID}" ) , 0\ .else -, ${comm_comm.Component_Package_ID}\ +, ${ca_smeea.EE_ID}\ .end if \ - .if ( "un-initialized" == "${comm_comm.Component_Id}" ) + .if ( "un-initialized" == "${ca_smeea.EEmod_ID}" ) , 0\ .else -, ${comm_comm.Component_Id}\ +, ${ca_smeea.EEmod_ID}\ .end if ); .end for -.select many comm_mics from instances of COMM_MIC -.for each comm_mic in comm_mics -INSERT INTO COMM_MIC VALUES (\ - .if ( "un-initialized" == "${comm_mic.Package_ID}" ) +.select many ca_smoaas from instances of CA_SMOAA +.for each ca_smoaa in ca_smoaas +INSERT INTO CA_SMOAA VALUES (\ + .if ( "un-initialized" == "${ca_smoaa.APath_ID}" ) 0\ .else - ${comm_mic.Package_ID}\ + ${ca_smoaa.APath_ID}\ .end if \ - .if ( "un-initialized" == "${comm_mic.Msg_ID}" ) + .if ( "un-initialized" == "${ca_smoaa.Attr_ID}" ) , 0\ .else -, ${comm_mic.Msg_ID}\ +, ${ca_smoaa.Attr_ID}\ + .end if +\ + .if ( "un-initialized" == "${ca_smoaa.Obj_ID}" ) +, 0\ + .else +, ${ca_smoaa.Obj_ID}\ .end if ); .end for -.select many comm_pics from instances of COMM_PIC -.for each comm_pic in comm_pics -INSERT INTO COMM_PIC VALUES (\ - .if ( "un-initialized" == "${comm_pic.Package_ID}" ) +.select many ca_smeeds from instances of CA_SMEED +.for each ca_smeed in ca_smeeds +INSERT INTO CA_SMEED VALUES (\ + .if ( "un-initialized" == "${ca_smeed.APath_ID}" ) 0\ .else - ${comm_pic.Package_ID}\ + ${ca_smeed.APath_ID}\ .end if \ - .if ( "un-initialized" == "${comm_pic.Part_ID}" ) + .if ( "un-initialized" == "${ca_smeed.EEdi_ID}" ) , 0\ .else -, ${comm_pic.Part_ID}\ +, ${ca_smeed.EEdi_ID}\ + .end if +\ + .if ( "un-initialized" == "${ca_smeed.EE_ID}" ) +, 0\ + .else +, ${ca_smeed.EE_ID}\ .end if ); .end for @@ -1088,98 +1161,60 @@ INSERT INTO C_C VALUES (\ .end if , ${c_c.isRealized}, '${c_c.Realized_Class_Path}' ); .end for -.select many c_dgs from instances of C_DG -.for each c_dg in c_dgs -INSERT INTO C_DG VALUES (\ - .if ( "un-initialized" == "${c_dg.Id}" ) - 0\ - .else - ${c_dg.Id}\ - .end if -, '${c_dg.Name}' ); -.end for -.select many c_eps from instances of C_EP -.for each c_ep in c_eps -INSERT INTO C_EP VALUES (\ - .if ( "un-initialized" == "${c_ep.Id}" ) +.select many c_is from instances of C_I +.for each c_i in c_is +INSERT INTO C_I VALUES (\ + .if ( "un-initialized" == "${c_i.Id}" ) 0\ .else - ${c_ep.Id}\ + ${c_i.Id}\ .end if \ - .if ( "un-initialized" == "${c_ep.Interface_Id}" ) + .if ( "un-initialized" == "${c_i.Package_ID}" ) , 0\ .else -, ${c_ep.Interface_Id}\ +, ${c_i.Package_ID}\ .end if -, ${c_ep.Direction}, '${c_ep.Name}', ''\ +, '${c_i.Name}', ''\ ); .end for -.select many c_ios from instances of C_IO -.for each c_io in c_ios -INSERT INTO C_IO VALUES (\ - .if ( "un-initialized" == "${c_io.Id}" ) +.select many c_ps from instances of C_P +.for each c_p in c_ps +INSERT INTO C_P VALUES (\ + .if ( "un-initialized" == "${c_p.Provision_Id}" ) 0\ .else - ${c_io.Id}\ - .end if -\ - .if ( "un-initialized" == "${c_io.DT_ID}" ) -, 0\ - .else -, ${c_io.DT_ID}\ - .end if -, '${c_io.Name}', ''\ -, ${c_io.Direction}, '${c_io.Return_Dimensions}'\ - .if ( "un-initialized" == "${c_io.Previous_Id}" ) -, 0\ - .else -, ${c_io.Previous_Id}\ + ${c_p.Provision_Id}\ .end if - ); +, '${c_p.Name}', '${c_p.InformalName}', ''\ +, '${c_p.pathFromComponent}' ); .end for -.select many c_rids from instances of C_RID -.for each c_rid in c_rids -INSERT INTO C_RID VALUES (\ - .if ( "un-initialized" == "${c_rid.Reference_Id}" ) +.select many c_rs from instances of C_R +.for each c_r in c_rs +INSERT INTO C_R VALUES (\ + .if ( "un-initialized" == "${c_r.Requirement_Id}" ) 0\ .else - ${c_rid.Reference_Id}\ - .end if -\ - .if ( "un-initialized" == "${c_rid.Delegation_Id}" ) -, 0\ - .else -, ${c_rid.Delegation_Id}\ + ${c_r.Requirement_Id}\ .end if - ); +, '${c_r.Name}', ''\ +, '${c_r.InformalName}', '${c_r.reversePathFromComponent}' ); .end for -.select many c_irs from instances of C_IR -.for each c_ir in c_irs -INSERT INTO C_IR VALUES (\ - .if ( "un-initialized" == "${c_ir.Id}" ) +.select many c_eps from instances of C_EP +.for each c_ep in c_eps +INSERT INTO C_EP VALUES (\ + .if ( "un-initialized" == "${c_ep.Id}" ) 0\ .else - ${c_ir.Id}\ - .end if -\ - .if ( "un-initialized" == "${c_ir.Formal_Interface_Id}" ) -, 0\ - .else -, ${c_ir.Formal_Interface_Id}\ - .end if -\ - .if ( "un-initialized" == "${c_ir.Delegation_Id}" ) -, 0\ - .else -, ${c_ir.Delegation_Id}\ + ${c_ep.Id}\ .end if \ - .if ( "un-initialized" == "${c_ir.Port_Id}" ) + .if ( "un-initialized" == "${c_ep.Interface_Id}" ) , 0\ .else -, ${c_ir.Port_Id}\ +, ${c_ep.Interface_Id}\ .end if +, ${c_ep.Direction}, '${c_ep.Name}', ''\ ); .end for .select many c_ass from instances of C_AS @@ -1199,38 +1234,51 @@ INSERT INTO C_AS VALUES (\ .end if ); .end for -.select many c_is from instances of C_I -.for each c_i in c_is -INSERT INTO C_I VALUES (\ - .if ( "un-initialized" == "${c_i.Id}" ) +.select many c_ios from instances of C_IO +.for each c_io in c_ios +INSERT INTO C_IO VALUES (\ + .if ( "un-initialized" == "${c_io.Id}" ) 0\ .else - ${c_i.Id}\ + ${c_io.Id}\ .end if \ - .if ( "un-initialized" == "${c_i.Package_ID}" ) + .if ( "un-initialized" == "${c_io.DT_ID}" ) , 0\ .else -, ${c_i.Package_ID}\ +, ${c_io.DT_ID}\ + .end if +, '${c_io.Name}', ''\ +, ${c_io.Direction}, '${c_io.Return_Dimensions}'\ + .if ( "un-initialized" == "${c_io.Previous_Id}" ) +, 0\ + .else +, ${c_io.Previous_Id}\ .end if -, '${c_i.Name}', ''\ ); .end for -.select many c_pos from instances of C_PO -.for each c_po in c_pos -INSERT INTO C_PO VALUES (\ - .if ( "un-initialized" == "${c_po.Id}" ) +.select many c_sfs from instances of C_SF +.for each c_sf in c_sfs +INSERT INTO C_SF VALUES (\ + .if ( "un-initialized" == "${c_sf.Id}" ) 0\ .else - ${c_po.Id}\ + ${c_sf.Id}\ .end if \ - .if ( "un-initialized" == "${c_po.Component_Id}" ) + .if ( "un-initialized" == "${c_sf.Requirement_Id}" ) , 0\ .else -, ${c_po.Component_Id}\ +, ${c_sf.Requirement_Id}\ .end if -, '${c_po.Name}', ${c_po.Mult}, ${c_po.DoNotShowPortOnCanvas} ); +\ + .if ( "un-initialized" == "${c_sf.Provision_Id}" ) +, 0\ + .else +, ${c_sf.Provision_Id}\ + .end if +, ''\ +, '${c_sf.Label}' ); .end for .select many c_pps from instances of C_PP .for each c_pp in c_pps @@ -1261,81 +1309,77 @@ INSERT INTO C_PP VALUES (\ .end if ); .end for -.select many c_ps from instances of C_P -.for each c_p in c_ps -INSERT INTO C_P VALUES (\ - .if ( "un-initialized" == "${c_p.Provision_Id}" ) - 0\ - .else - ${c_p.Provision_Id}\ - .end if -, '${c_p.Name}', '${c_p.InformalName}', ''\ -, '${c_p.pathFromComponent}' ); -.end for -.select many c_rs from instances of C_R -.for each c_r in c_rs -INSERT INTO C_R VALUES (\ - .if ( "un-initialized" == "${c_r.Requirement_Id}" ) +.select many c_irs from instances of C_IR +.for each c_ir in c_irs +INSERT INTO C_IR VALUES (\ + .if ( "un-initialized" == "${c_ir.Id}" ) 0\ .else - ${c_r.Requirement_Id}\ + ${c_ir.Id}\ .end if -, '${c_r.Name}', ''\ -, '${c_r.InformalName}', '${c_r.reversePathFromComponent}' ); -.end for -.select many c_sfs from instances of C_SF -.for each c_sf in c_sfs -INSERT INTO C_SF VALUES (\ - .if ( "un-initialized" == "${c_sf.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${c_ir.Formal_Interface_Id}" ) +, 0\ .else - ${c_sf.Id}\ +, ${c_ir.Formal_Interface_Id}\ .end if \ - .if ( "un-initialized" == "${c_sf.Requirement_Id}" ) + .if ( "un-initialized" == "${c_ir.Delegation_Id}" ) , 0\ .else -, ${c_sf.Requirement_Id}\ +, ${c_ir.Delegation_Id}\ .end if \ - .if ( "un-initialized" == "${c_sf.Provision_Id}" ) + .if ( "un-initialized" == "${c_ir.Port_Id}" ) , 0\ .else -, ${c_sf.Provision_Id}\ +, ${c_ir.Port_Id}\ .end if -, ''\ -, '${c_sf.Label}' ); + ); .end for -.print "Component Library" -.select many cl_ics from instances of CL_IC -.for each cl_ic in cl_ics -INSERT INTO CL_IC VALUES (\ - .if ( "un-initialized" == "${cl_ic.Id}" ) +.select many c_dgs from instances of C_DG +.for each c_dg in c_dgs +INSERT INTO C_DG VALUES (\ + .if ( "un-initialized" == "${c_dg.Id}" ) 0\ .else - ${cl_ic.Id}\ + ${c_dg.Id}\ .end if -\ - .if ( "un-initialized" == "${cl_ic.AssignedComp_Id}" ) -, 0\ +, '${c_dg.Name}' ); +.end for +.select many c_pos from instances of C_PO +.for each c_po in c_pos +INSERT INTO C_PO VALUES (\ + .if ( "un-initialized" == "${c_po.Id}" ) + 0\ .else -, ${cl_ic.AssignedComp_Id}\ + ${c_po.Id}\ .end if \ - .if ( "un-initialized" == "${cl_ic.ParentComp_Id}" ) + .if ( "un-initialized" == "${c_po.Component_Id}" ) , 0\ .else -, ${cl_ic.ParentComp_Id}\ +, ${c_po.Component_Id}\ + .end if +, '${c_po.Name}', ${c_po.Mult}, ${c_po.DoNotShowPortOnCanvas} ); +.end for +.select many c_rids from instances of C_RID +.for each c_rid in c_rids +INSERT INTO C_RID VALUES (\ + .if ( "un-initialized" == "${c_rid.Reference_Id}" ) + 0\ + .else + ${c_rid.Reference_Id}\ .end if \ - .if ( "un-initialized" == "${cl_ic.Component_Package_ID}" ) + .if ( "un-initialized" == "${c_rid.Delegation_Id}" ) , 0\ .else -, ${cl_ic.Component_Package_ID}\ +, ${c_rid.Delegation_Id}\ .end if -, ${cl_ic.Mult}, '${cl_ic.ClassifierName}', '${cl_ic.Name}', ''\ ); .end for +.print "Component Library" .select many cl_ipinss from instances of CL_IPINS .for each cl_ipins in cl_ipinss INSERT INTO CL_IPINS VALUES (\ @@ -1363,6 +1407,23 @@ INSERT INTO CL_IP VALUES (\ , '${cl_ip.Name}', ''\ ); .end for +.select many cl_irs from instances of CL_IR +.for each cl_ir in cl_irs +INSERT INTO CL_IR VALUES (\ + .if ( "un-initialized" == "${cl_ir.Id}" ) + 0\ + .else + ${cl_ir.Id}\ + .end if +\ + .if ( "un-initialized" == "${cl_ir.Satisfaction_Element_Id}" ) +, 0\ + .else +, ${cl_ir.Satisfaction_Element_Id}\ + .end if +, '${cl_ir.Name}', ''\ + ); +.end for .select many cl_iirs from instances of CL_IIR .for each cl_iir in cl_iirs INSERT INTO CL_IIR VALUES (\ @@ -1392,21 +1453,33 @@ INSERT INTO CL_IIR VALUES (\ , '${cl_iir.Name}', ''\ ); .end for -.select many cl_irs from instances of CL_IR -.for each cl_ir in cl_irs -INSERT INTO CL_IR VALUES (\ - .if ( "un-initialized" == "${cl_ir.Id}" ) +.select many cl_ics from instances of CL_IC +.for each cl_ic in cl_ics +INSERT INTO CL_IC VALUES (\ + .if ( "un-initialized" == "${cl_ic.Id}" ) 0\ .else - ${cl_ir.Id}\ + ${cl_ic.Id}\ .end if \ - .if ( "un-initialized" == "${cl_ir.Satisfaction_Element_Id}" ) + .if ( "un-initialized" == "${cl_ic.AssignedComp_Id}" ) , 0\ .else -, ${cl_ir.Satisfaction_Element_Id}\ +, ${cl_ic.AssignedComp_Id}\ .end if -, '${cl_ir.Name}', ''\ +\ + .if ( "un-initialized" == "${cl_ic.ParentComp_Id}" ) +, 0\ + .else +, ${cl_ic.ParentComp_Id}\ + .end if +\ + .if ( "un-initialized" == "${cl_ic.Component_Package_ID}" ) +, 0\ + .else +, ${cl_ic.Component_Package_ID}\ + .end if +, ${cl_ic.Mult}, '${cl_ic.ClassifierName}', '${cl_ic.Name}', ''\ ); .end for .print "Component Nesting" @@ -1443,22 +1516,6 @@ INSERT INTO CN_DC VALUES (\ ); .end for .print "Component Packaging" -.select many cp_cpinps from instances of CP_CPINP -.for each cp_cpinp in cp_cpinps -INSERT INTO CP_CPINP VALUES (\ - .if ( "un-initialized" == "${cp_cpinp.Id}" ) - 0\ - .else - ${cp_cpinp.Id}\ - .end if -\ - .if ( "un-initialized" == "${cp_cpinp.Parent_Package_ID}" ) -, 0\ - .else -, ${cp_cpinp.Parent_Package_ID}\ - .end if - ); -.end for .select many cp_cps from instances of CP_CP .for each cp_cp in cp_cps INSERT INTO CP_CP VALUES (\ @@ -1488,124 +1545,66 @@ INSERT INTO CP_CP VALUES (\ , '${cp_cp.Name}', ''\ ); .end for -.print "Signal Provisions and Requirements" -.select many spr_peps from instances of SPR_PEP -.for each spr_pep in spr_peps -INSERT INTO SPR_PEP VALUES (\ - .if ( "un-initialized" == "${spr_pep.Id}" ) +.select many cp_cpinps from instances of CP_CPINP +.for each cp_cpinp in cp_cpinps +INSERT INTO CP_CPINP VALUES (\ + .if ( "un-initialized" == "${cp_cpinp.Id}" ) 0\ .else - ${spr_pep.Id}\ - .end if -\ - .if ( "un-initialized" == "${spr_pep.ExecutableProperty_Id}" ) -, 0\ - .else -, ${spr_pep.ExecutableProperty_Id}\ + ${cp_cpinp.Id}\ .end if \ - .if ( "un-initialized" == "${spr_pep.Provision_Id}" ) + .if ( "un-initialized" == "${cp_cpinp.Parent_Package_ID}" ) , 0\ .else -, ${spr_pep.Provision_Id}\ +, ${cp_cpinp.Parent_Package_ID}\ .end if ); .end for -.select many spr_pos from instances of SPR_PO -.for each spr_po in spr_pos -INSERT INTO SPR_PO VALUES (\ - .if ( "un-initialized" == "${spr_po.Id}" ) - 0\ - .else - ${spr_po.Id}\ - .end if -, '${spr_po.Name}', ''\ -, ''\ -, ${spr_po.Suc_Pars} ); -.end for -.select many spr_pss from instances of SPR_PS -.for each spr_ps in spr_pss -INSERT INTO SPR_PS VALUES (\ - .if ( "un-initialized" == "${spr_ps.Id}" ) +.print "Constants" +.select many cnst_csps from instances of CNST_CSP +.for each cnst_csp in cnst_csps +INSERT INTO CNST_CSP VALUES (\ + .if ( "un-initialized" == "${cnst_csp.Constant_Spec_ID}" ) 0\ .else - ${spr_ps.Id}\ + ${cnst_csp.Constant_Spec_ID}\ .end if -, '${spr_ps.Name}', ''\ -, ''\ -, ${spr_ps.Suc_Pars} ); +, '${cnst_csp.InformalGroupName}', ''\ + ); .end for -.select many spr_reps from instances of SPR_REP -.for each spr_rep in spr_reps -INSERT INTO SPR_REP VALUES (\ - .if ( "un-initialized" == "${spr_rep.Id}" ) +.select many cnst_sycs from instances of CNST_SYC +.for each cnst_syc in cnst_sycs +INSERT INTO CNST_SYC VALUES (\ + .if ( "un-initialized" == "${cnst_syc.Const_ID}" ) 0\ .else - ${spr_rep.Id}\ + ${cnst_syc.Const_ID}\ .end if +, '${cnst_syc.Name}', ''\ \ - .if ( "un-initialized" == "${spr_rep.ExecutableProperty_Id}" ) + .if ( "un-initialized" == "${cnst_syc.DT_ID}" ) , 0\ .else -, ${spr_rep.ExecutableProperty_Id}\ +, ${cnst_syc.DT_ID}\ .end if \ - .if ( "un-initialized" == "${spr_rep.Requirement_Id}" ) + .if ( "un-initialized" == "${cnst_syc.Constant_Spec_ID}" ) , 0\ .else -, ${spr_rep.Requirement_Id}\ - .end if - ); -.end for -.select many spr_ros from instances of SPR_RO -.for each spr_ro in spr_ros -INSERT INTO SPR_RO VALUES (\ - .if ( "un-initialized" == "${spr_ro.Id}" ) - 0\ - .else - ${spr_ro.Id}\ - .end if -, '${spr_ro.Name}', ''\ -, ''\ -, ${spr_ro.Suc_Pars} ); -.end for -.select many spr_rss from instances of SPR_RS -.for each spr_rs in spr_rss -INSERT INTO SPR_RS VALUES (\ - .if ( "un-initialized" == "${spr_rs.Id}" ) - 0\ - .else - ${spr_rs.Id}\ - .end if -, '${spr_rs.Name}', ''\ -, ''\ -, ${spr_rs.Suc_Pars} ); -.end for -.print "Constants" -.select many cnst_csps from instances of CNST_CSP -.for each cnst_csp in cnst_csps -INSERT INTO CNST_CSP VALUES (\ - .if ( "un-initialized" == "${cnst_csp.Constant_Spec_ID}" ) - 0\ - .else - ${cnst_csp.Constant_Spec_ID}\ +, ${cnst_syc.Constant_Spec_ID}\ .end if -, '${cnst_csp.InformalGroupName}', ''\ - ); -.end for -.select many cnst_cips from instances of CNST_CIP -.for each cnst_cip in cnst_cips -INSERT INTO CNST_CIP VALUES (\ - .if ( "un-initialized" == "${cnst_cip.Constant_Spec_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${cnst_syc.Previous_Const_ID}" ) +, 0\ .else - ${cnst_cip.Constant_Spec_ID}\ +, ${cnst_syc.Previous_Const_ID}\ .end if \ - .if ( "un-initialized" == "${cnst_cip.Package_ID}" ) + .if ( "un-initialized" == "${cnst_syc.Previous_DT_DT_ID}" ) , 0\ .else -, ${cnst_cip.Package_ID}\ +, ${cnst_syc.Previous_DT_DT_ID}\ .end if ); .end for @@ -1641,77 +1640,58 @@ INSERT INTO CNST_LSC VALUES (\ .end if , '${cnst_lsc.Value}' ); .end for -.select many cnst_sycs from instances of CNST_SYC -.for each cnst_syc in cnst_sycs -INSERT INTO CNST_SYC VALUES (\ - .if ( "un-initialized" == "${cnst_syc.Const_ID}" ) +.select many cnst_cips from instances of CNST_CIP +.for each cnst_cip in cnst_cips +INSERT INTO CNST_CIP VALUES (\ + .if ( "un-initialized" == "${cnst_cip.Constant_Spec_ID}" ) 0\ .else - ${cnst_syc.Const_ID}\ - .end if -, '${cnst_syc.Name}', ''\ -\ - .if ( "un-initialized" == "${cnst_syc.DT_ID}" ) -, 0\ - .else -, ${cnst_syc.DT_ID}\ + ${cnst_cip.Constant_Spec_ID}\ .end if \ - .if ( "un-initialized" == "${cnst_syc.Constant_Spec_ID}" ) + .if ( "un-initialized" == "${cnst_cip.Package_ID}" ) , 0\ .else -, ${cnst_syc.Constant_Spec_ID}\ +, ${cnst_cip.Package_ID}\ .end if -\ - .if ( "un-initialized" == "${cnst_syc.Previous_Const_ID}" ) -, 0\ + ); +.end for +.print "Document" +.select many doc_docs from instances of DOC_DOC +.for each doc_doc in doc_docs +INSERT INTO DOC_DOC VALUES ( '${doc_doc.title}', '${doc_doc.subtitle}', '${doc_doc.author}', '${doc_doc.font_family}', '${doc_doc.company}', '${doc_doc.copyright}', '${doc_doc.filename}', '${doc_doc.model_image_ext}' ); +.end for +.select many doc_secs from instances of DOC_SEC +.for each doc_sec in doc_secs +INSERT INTO DOC_SEC VALUES (\ + .if ( "un-initialized" == "${doc_sec.ID}" ) + 0\ .else -, ${cnst_syc.Previous_Const_ID}\ + ${doc_sec.ID}\ .end if \ - .if ( "un-initialized" == "${cnst_syc.Previous_DT_DT_ID}" ) + .if ( "un-initialized" == "${doc_sec.nextID}" ) , 0\ .else -, ${cnst_syc.Previous_DT_DT_ID}\ +, ${doc_sec.nextID}\ .end if - ); -.end for -.print "Document" -.select many doc_addrs from instances of DOC_ADDR -.for each doc_addr in doc_addrs -INSERT INTO DOC_ADDR VALUES ( '${doc_addr.street}', '${doc_addr.city}', '${doc_addr.state}', '${doc_addr.postcode}' ); -.end for -.select many doc_cells from instances of DOC_CELL -.for each doc_cell in doc_cells -INSERT INTO DOC_CELL VALUES ( '${doc_cell.text}' ); +, '${doc_sec.title}', '${doc_sec.subtitle}', ${doc_sec.level}, '${doc_sec.abstract}' ); .end for .select many doc_dates from instances of DOC_DATE .for each doc_date in doc_dates INSERT INTO DOC_DATE VALUES ( ${doc_date.year}, '${doc_date.month}', ${doc_date.day}, '${doc_date.time}' ); .end for -.select many doc_docs from instances of DOC_DOC -.for each doc_doc in doc_docs -INSERT INTO DOC_DOC VALUES ( '${doc_doc.title}', '${doc_doc.subtitle}', '${doc_doc.author}', '${doc_doc.font_family}', '${doc_doc.company}', '${doc_doc.copyright}', '${doc_doc.filename}', '${doc_doc.model_image_ext}' ); -.end for -.select many doc_figs from instances of DOC_FIG -.for each doc_fig in doc_figs -INSERT INTO DOC_FIG VALUES ( '${doc_fig.title}', '${doc_fig.ident}' ); -.end for -.select many doc_foots from instances of DOC_FOOT -.for each doc_foot in doc_foots -INSERT INTO DOC_FOOT VALUES ( '${doc_foot.text}' ); -.end for .select many doc_heads from instances of DOC_HEAD .for each doc_head in doc_heads INSERT INTO DOC_HEAD VALUES ( '${doc_head.text}' ); .end for -.select many doc_imgs from instances of DOC_IMG -.for each doc_img in doc_imgs -INSERT INTO DOC_IMG VALUES ( '${doc_img.target}' ); +.select many doc_foots from instances of DOC_FOOT +.for each doc_foot in doc_foots +INSERT INTO DOC_FOOT VALUES ( '${doc_foot.text}' ); .end for -.select many doc_links from instances of DOC_LINK -.for each doc_link in doc_links -INSERT INTO DOC_LINK VALUES ( '${doc_link.target}', '${doc_link.text}' ); +.select many doc_addrs from instances of DOC_ADDR +.for each doc_addr in doc_addrs +INSERT INTO DOC_ADDR VALUES ( '${doc_addr.street}', '${doc_addr.city}', '${doc_addr.state}', '${doc_addr.postcode}' ); .end for .select many doc_pars from instances of DOC_PAR .for each doc_par in doc_pars @@ -1729,139 +1709,198 @@ INSERT INTO DOC_PAR VALUES (\ .end if , '${doc_par.text}', '${doc_par.ptext}', ${doc_par.formatted} ); .end for -.select many doc_rows from instances of DOC_ROW -.for each doc_row in doc_rows -INSERT INTO DOC_ROW VALUES ( ${doc_row.head} ); +.select many doc_figs from instances of DOC_FIG +.for each doc_fig in doc_figs +INSERT INTO DOC_FIG VALUES ( '${doc_fig.title}', '${doc_fig.ident}' ); .end for -.select many doc_secs from instances of DOC_SEC -.for each doc_sec in doc_secs -INSERT INTO DOC_SEC VALUES (\ - .if ( "un-initialized" == "${doc_sec.ID}" ) - 0\ - .else - ${doc_sec.ID}\ - .end if -\ - .if ( "un-initialized" == "${doc_sec.nextID}" ) -, 0\ - .else -, ${doc_sec.nextID}\ - .end if -, '${doc_sec.title}', '${doc_sec.subtitle}', ${doc_sec.level}, '${doc_sec.abstract}' ); +.select many doc_links from instances of DOC_LINK +.for each doc_link in doc_links +INSERT INTO DOC_LINK VALUES ( '${doc_link.target}', '${doc_link.text}' ); .end for .select many doc_tbls from instances of DOC_TBL .for each doc_tbl in doc_tbls INSERT INTO DOC_TBL VALUES ( '${doc_tbl.title}', ${doc_tbl.num_cols} ); .end for +.select many doc_imgs from instances of DOC_IMG +.for each doc_img in doc_imgs +INSERT INTO DOC_IMG VALUES ( '${doc_img.target}' ); +.end for +.select many doc_cells from instances of DOC_CELL +.for each doc_cell in doc_cells +INSERT INTO DOC_CELL VALUES ( '${doc_cell.text}' ); +.end for +.select many doc_rows from instances of DOC_ROW +.for each doc_row in doc_rows +INSERT INTO DOC_ROW VALUES ( ${doc_row.head} ); +.end for .print "Domain" -.select many s_bparms from instances of S_BPARM -.for each s_bparm in s_bparms -INSERT INTO S_BPARM VALUES (\ - .if ( "un-initialized" == "${s_bparm.BParm_ID}" ) +.select many s_doms from instances of S_DOM +.for each s_dom in s_doms +INSERT INTO S_DOM VALUES (\ + .if ( "un-initialized" == "${s_dom.Dom_ID}" ) 0\ .else - ${s_bparm.BParm_ID}\ + ${s_dom.Dom_ID}\ + .end if +, '${s_dom.Name}', ''\ +, ${s_dom.Full_Der}\ + .if ( "un-initialized" == "${s_dom.Config_ID}" ) +, 0\ + .else +, ${s_dom.Config_ID}\ .end if \ - .if ( "un-initialized" == "${s_bparm.Brg_ID}" ) + .if ( "un-initialized" == "${s_dom.Sys_ID}" ) , 0\ .else -, ${s_bparm.Brg_ID}\ +, ${s_dom.Sys_ID}\ .end if -, '${s_bparm.Name}'\ - .if ( "un-initialized" == "${s_bparm.DT_ID}" ) + ); +.end for +.select many s_sss from instances of S_SS +.for each s_ss in s_sss +INSERT INTO S_SS VALUES (\ + .if ( "un-initialized" == "${s_ss.SS_ID}" ) + 0\ + .else + ${s_ss.SS_ID}\ + .end if +, '${s_ss.Name}', ''\ +, '${s_ss.Prefix}', ${s_ss.Num_Rng}\ + .if ( "un-initialized" == "${s_ss.Dom_ID}" ) , 0\ .else -, ${s_bparm.DT_ID}\ +, ${s_ss.Dom_ID}\ .end if -, ${s_bparm.By_Ref}, '${s_bparm.Dimensions}'\ - .if ( "un-initialized" == "${s_bparm.Previous_BParm_ID}" ) +\ + .if ( "un-initialized" == "${s_ss.Config_ID}" ) , 0\ .else -, ${s_bparm.Previous_BParm_ID}\ +, ${s_ss.Config_ID}\ .end if -, ''\ ); .end for -.select many s_brgs from instances of S_BRG -.for each s_brg in s_brgs -INSERT INTO S_BRG VALUES (\ - .if ( "un-initialized" == "${s_brg.Brg_ID}" ) +.select many s_ees from instances of S_EE +.for each s_ee in s_ees +INSERT INTO S_EE VALUES (\ + .if ( "un-initialized" == "${s_ee.EE_ID}" ) 0\ .else - ${s_brg.Brg_ID}\ + ${s_ee.EE_ID}\ + .end if +, '${s_ee.Name}', ''\ +, '${s_ee.Key_Lett}'\ + .if ( "un-initialized" == "${s_ee.Dom_ID}" ) +, 0\ + .else +, ${s_ee.Dom_ID}\ + .end if + ); +.end for +.select many s_eems from instances of S_EEM +.for each s_eem in s_eems +INSERT INTO S_EEM VALUES (\ + .if ( "un-initialized" == "${s_eem.EEmod_ID}" ) + 0\ + .else + ${s_eem.EEmod_ID}\ .end if \ - .if ( "un-initialized" == "${s_brg.EE_ID}" ) + .if ( "un-initialized" == "${s_eem.EE_ID}" ) , 0\ .else -, ${s_brg.EE_ID}\ +, ${s_eem.EE_ID}\ .end if -, '${s_brg.Name}', ''\ -, ${s_brg.Brg_Typ}\ - .if ( "un-initialized" == "${s_brg.DT_ID}" ) +, ${s_eem.Modl_Typ}\ + .if ( "un-initialized" == "${s_eem.SS_ID}" ) , 0\ .else -, ${s_brg.DT_ID}\ +, ${s_eem.SS_ID}\ .end if -, ''\ -, ${s_brg.Suc_Pars}, '${s_brg.Return_Dimensions}' ); + ); .end for -.select many s_cdts from instances of S_CDT -.for each s_cdt in s_cdts -INSERT INTO S_CDT VALUES (\ - .if ( "un-initialized" == "${s_cdt.DT_ID}" ) +.select many s_eedis from instances of S_EEDI +.for each s_eedi in s_eedis +INSERT INTO S_EEDI VALUES (\ + .if ( "un-initialized" == "${s_eedi.EEdi_ID}" ) 0\ .else - ${s_cdt.DT_ID}\ + ${s_eedi.EEdi_ID}\ .end if -, ${s_cdt.Core_Typ} ); +\ + .if ( "un-initialized" == "${s_eedi.EE_ID}" ) +, 0\ + .else +, ${s_eedi.EE_ID}\ + .end if +, '${s_eedi.Name}', ''\ +\ + .if ( "un-initialized" == "${s_eedi.DT_ID}" ) +, 0\ + .else +, ${s_eedi.DT_ID}\ + .end if + ); .end for -.select many s_dpips from instances of S_DPIP -.for each s_dpip in s_dpips -INSERT INTO S_DPIP VALUES (\ - .if ( "un-initialized" == "${s_dpip.Package_ID}" ) +.select many s_eeevts from instances of S_EEEVT +.for each s_eeevt in s_eeevts +INSERT INTO S_EEEVT VALUES (\ + .if ( "un-initialized" == "${s_eeevt.EEevt_ID}" ) 0\ .else - ${s_dpip.Package_ID}\ + ${s_eeevt.EEevt_ID}\ + .end if +\ + .if ( "un-initialized" == "${s_eeevt.EE_ID}" ) +, 0\ + .else +, ${s_eeevt.EE_ID}\ .end if +, ${s_eeevt.Numb}, '${s_eeevt.Mning}', ${s_eeevt.Is_Lbl_U}, '${s_eeevt.Unq_Lbl}', '${s_eeevt.Drv_Lbl}', ''\ ); .end for -.select many s_dpks from instances of S_DPK -.for each s_dpk in s_dpks -INSERT INTO S_DPK VALUES (\ - .if ( "un-initialized" == "${s_dpk.Package_ID}" ) +.select many s_eeedis from instances of S_EEEDI +.for each s_eeedi in s_eeedis +INSERT INTO S_EEEDI VALUES (\ + .if ( "un-initialized" == "${s_eeedi.EEedi_ID}" ) 0\ .else - ${s_dpk.Package_ID}\ + ${s_eeedi.EEedi_ID}\ .end if -, '${s_dpk.Name}'\ - .if ( "un-initialized" == "${s_dpk.Dom_ID}" ) +\ + .if ( "un-initialized" == "${s_eeedi.EE_ID}" ) , 0\ .else -, ${s_dpk.Dom_ID}\ +, ${s_eeedi.EE_ID}\ .end if +, '${s_eeedi.Name}', ''\ \ - .if ( "un-initialized" == "${s_dpk.Parent_Package_ID}" ) + .if ( "un-initialized" == "${s_eeedi.DT_ID}" ) , 0\ .else -, ${s_dpk.Parent_Package_ID}\ +, ${s_eeedi.DT_ID}\ .end if ); .end for -.select many s_dips from instances of S_DIP -.for each s_dip in s_dips -INSERT INTO S_DIP VALUES (\ - .if ( "un-initialized" == "${s_dip.Package_ID}" ) +.select many s_eeedts from instances of S_EEEDT +.for each s_eeedt in s_eeedts +INSERT INTO S_EEEDT VALUES (\ + .if ( "un-initialized" == "${s_eeedt.EE_ID}" ) 0\ .else - ${s_dip.Package_ID}\ + ${s_eeedt.EE_ID}\ .end if \ - .if ( "un-initialized" == "${s_dip.DT_ID}" ) + .if ( "un-initialized" == "${s_eeedt.EEevt_ID}" ) , 0\ .else -, ${s_dip.DT_ID}\ +, ${s_eeedt.EEevt_ID}\ + .end if +\ + .if ( "un-initialized" == "${s_eeedt.EEedi_ID}" ) +, 0\ + .else +, ${s_eeedt.EEedi_ID}\ .end if ); .end for @@ -1882,153 +1921,83 @@ INSERT INTO S_DT VALUES (\ , '${s_dt.Name}', ''\ , '${s_dt.DefaultValue}' ); .end for -.select many s_diss from instances of S_DIS -.for each s_dis in s_diss -INSERT INTO S_DIS VALUES (\ - .if ( "un-initialized" == "${s_dis.Dom_ID}" ) +.select many s_cdts from instances of S_CDT +.for each s_cdt in s_cdts +INSERT INTO S_CDT VALUES (\ + .if ( "un-initialized" == "${s_cdt.DT_ID}" ) 0\ .else - ${s_dis.Dom_ID}\ + ${s_cdt.DT_ID}\ + .end if +, ${s_cdt.Core_Typ} ); +.end for +.select many s_udts from instances of S_UDT +.for each s_udt in s_udts +INSERT INTO S_UDT VALUES (\ + .if ( "un-initialized" == "${s_udt.DT_ID}" ) + 0\ + .else + ${s_udt.DT_ID}\ .end if \ - .if ( "un-initialized" == "${s_dis.DT_ID}" ) + .if ( "un-initialized" == "${s_udt.CDT_DT_ID}" ) , 0\ .else -, ${s_dis.DT_ID}\ +, ${s_udt.CDT_DT_ID}\ .end if - ); +, ${s_udt.Gen_Type} ); .end for -.select many s_dims from instances of S_DIM -.for each s_dim in s_dims -INSERT INTO S_DIM VALUES ( ${s_dim.elementCount}, ${s_dim.dimensionCount}\ - .if ( "un-initialized" == "${s_dim.Sync_ID}" ) -, 0\ +.select many s_brgs from instances of S_BRG +.for each s_brg in s_brgs +INSERT INTO S_BRG VALUES (\ + .if ( "un-initialized" == "${s_brg.Brg_ID}" ) + 0\ .else -, ${s_dim.Sync_ID}\ + ${s_brg.Brg_ID}\ .end if \ - .if ( "un-initialized" == "${s_dim.SParm_ID}" ) + .if ( "un-initialized" == "${s_brg.EE_ID}" ) , 0\ .else -, ${s_dim.SParm_ID}\ +, ${s_brg.EE_ID}\ .end if -\ - .if ( "un-initialized" == "${s_dim.BParm_ID}" ) +, '${s_brg.Name}', ''\ +, ${s_brg.Brg_Typ}\ + .if ( "un-initialized" == "${s_brg.DT_ID}" ) , 0\ .else -, ${s_dim.BParm_ID}\ +, ${s_brg.DT_ID}\ .end if -\ - .if ( "un-initialized" == "${s_dim.Brg_ID}" ) -, 0\ +, ''\ +, ${s_brg.Suc_Pars}, '${s_brg.Return_Dimensions}' ); +.end for +.select many s_bparms from instances of S_BPARM +.for each s_bparm in s_bparms +INSERT INTO S_BPARM VALUES (\ + .if ( "un-initialized" == "${s_bparm.BParm_ID}" ) + 0\ .else -, ${s_dim.Brg_ID}\ + ${s_bparm.BParm_ID}\ .end if \ - .if ( "un-initialized" == "${s_dim.Id}" ) + .if ( "un-initialized" == "${s_bparm.Brg_ID}" ) , 0\ .else -, ${s_dim.Id}\ +, ${s_bparm.Brg_ID}\ .end if -\ - .if ( "un-initialized" == "${s_dim.Obj_ID}" ) +, '${s_bparm.Name}'\ + .if ( "un-initialized" == "${s_bparm.DT_ID}" ) , 0\ .else -, ${s_dim.Obj_ID}\ +, ${s_bparm.DT_ID}\ .end if -\ - .if ( "un-initialized" == "${s_dim.Attr_ID}" ) -, 0\ - .else -, ${s_dim.Attr_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.TParm_ID}" ) -, 0\ - .else -, ${s_dim.TParm_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.Tfr_ID}" ) -, 0\ - .else -, ${s_dim.Tfr_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.Member_ID}" ) -, 0\ - .else -, ${s_dim.Member_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.DT_ID}" ) -, 0\ - .else -, ${s_dim.DT_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.PP_Id}" ) -, 0\ - .else -, ${s_dim.PP_Id}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.SM_ID}" ) -, 0\ - .else -, ${s_dim.SM_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.SMedi_ID}" ) -, 0\ - .else -, ${s_dim.SMedi_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.DIM_ID}" ) -, 0\ - .else -, ${s_dim.DIM_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dim.Var_ID}" ) -, 0\ - .else -, ${s_dim.Var_ID}\ - .end if - ); -.end for -.select many s_doms from instances of S_DOM -.for each s_dom in s_doms -INSERT INTO S_DOM VALUES (\ - .if ( "un-initialized" == "${s_dom.Dom_ID}" ) - 0\ - .else - ${s_dom.Dom_ID}\ - .end if -, '${s_dom.Name}', ''\ -, ${s_dom.Full_Der}\ - .if ( "un-initialized" == "${s_dom.Config_ID}" ) -, 0\ - .else -, ${s_dom.Config_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_dom.Sys_ID}" ) +, ${s_bparm.By_Ref}, '${s_bparm.Dimensions}'\ + .if ( "un-initialized" == "${s_bparm.Previous_BParm_ID}" ) , 0\ .else -, ${s_dom.Sys_ID}\ - .end if - ); -.end for -.select many s_eepips from instances of S_EEPIP -.for each s_eepip in s_eepips -INSERT INTO S_EEPIP VALUES (\ - .if ( "un-initialized" == "${s_eepip.EEPack_ID}" ) - 0\ - .else - ${s_eepip.EEPack_ID}\ +, ${s_bparm.Previous_BParm_ID}\ .end if +, ''\ ); .end for .select many s_edts from instances of S_EDT @@ -2064,89 +2033,115 @@ INSERT INTO S_ENUM VALUES (\ .end if ); .end for -.select many s_eedis from instances of S_EEDI -.for each s_eedi in s_eedis -INSERT INTO S_EEDI VALUES (\ - .if ( "un-initialized" == "${s_eedi.EEdi_ID}" ) +.select many s_syncs from instances of S_SYNC +.for each s_sync in s_syncs +INSERT INTO S_SYNC VALUES (\ + .if ( "un-initialized" == "${s_sync.Sync_ID}" ) 0\ .else - ${s_eedi.EEdi_ID}\ + ${s_sync.Sync_ID}\ .end if \ - .if ( "un-initialized" == "${s_eedi.EE_ID}" ) + .if ( "un-initialized" == "${s_sync.Dom_ID}" ) , 0\ .else -, ${s_eedi.EE_ID}\ +, ${s_sync.Dom_ID}\ .end if -, '${s_eedi.Name}', ''\ +, '${s_sync.Name}', ''\ +, ''\ \ - .if ( "un-initialized" == "${s_eedi.DT_ID}" ) + .if ( "un-initialized" == "${s_sync.DT_ID}" ) , 0\ .else -, ${s_eedi.DT_ID}\ +, ${s_sync.DT_ID}\ .end if - ); +, ${s_sync.Suc_Pars}, '${s_sync.Return_Dimensions}' ); .end for -.select many s_eeedis from instances of S_EEEDI -.for each s_eeedi in s_eeedis -INSERT INTO S_EEEDI VALUES (\ - .if ( "un-initialized" == "${s_eeedi.EEedi_ID}" ) +.select many s_sparms from instances of S_SPARM +.for each s_sparm in s_sparms +INSERT INTO S_SPARM VALUES (\ + .if ( "un-initialized" == "${s_sparm.SParm_ID}" ) 0\ .else - ${s_eeedi.EEedi_ID}\ + ${s_sparm.SParm_ID}\ .end if \ - .if ( "un-initialized" == "${s_eeedi.EE_ID}" ) + .if ( "un-initialized" == "${s_sparm.Sync_ID}" ) , 0\ .else -, ${s_eeedi.EE_ID}\ +, ${s_sparm.Sync_ID}\ .end if -, '${s_eeedi.Name}', ''\ -\ - .if ( "un-initialized" == "${s_eeedi.DT_ID}" ) +, '${s_sparm.Name}'\ + .if ( "un-initialized" == "${s_sparm.DT_ID}" ) , 0\ .else -, ${s_eeedi.DT_ID}\ +, ${s_sparm.DT_ID}\ + .end if +, ${s_sparm.By_Ref}, '${s_sparm.Dimensions}'\ + .if ( "un-initialized" == "${s_sparm.Previous_SParm_ID}" ) +, 0\ + .else +, ${s_sparm.Previous_SParm_ID}\ .end if +, ''\ ); .end for -.select many s_eeedts from instances of S_EEEDT -.for each s_eeedt in s_eeedts -INSERT INTO S_EEEDT VALUES (\ - .if ( "un-initialized" == "${s_eeedt.EE_ID}" ) +.select many s_syss from instances of S_SYS +.for each s_sys in s_syss +INSERT INTO S_SYS VALUES (\ + .if ( "un-initialized" == "${s_sys.Sys_ID}" ) 0\ .else - ${s_eeedt.EE_ID}\ + ${s_sys.Sys_ID}\ .end if -\ - .if ( "un-initialized" == "${s_eeedt.EEevt_ID}" ) +, '${s_sys.Name}', ${s_sys.useGlobals} ); +.end for +.select many s_fpks from instances of S_FPK +.for each s_fpk in s_fpks +INSERT INTO S_FPK VALUES (\ + .if ( "un-initialized" == "${s_fpk.FunPack_ID}" ) + 0\ + .else + ${s_fpk.FunPack_ID}\ + .end if +, '${s_fpk.Name}'\ + .if ( "un-initialized" == "${s_fpk.Dom_ID}" ) , 0\ .else -, ${s_eeedt.EEevt_ID}\ +, ${s_fpk.Dom_ID}\ .end if \ - .if ( "un-initialized" == "${s_eeedt.EEedi_ID}" ) + .if ( "un-initialized" == "${s_fpk.Parent_FunPack_ID}" ) , 0\ .else -, ${s_eeedt.EEedi_ID}\ +, ${s_fpk.Parent_FunPack_ID}\ .end if ); .end for -.select many s_eeevts from instances of S_EEEVT -.for each s_eeevt in s_eeevts -INSERT INTO S_EEEVT VALUES (\ - .if ( "un-initialized" == "${s_eeevt.EEevt_ID}" ) +.select many s_fips from instances of S_FIP +.for each s_fip in s_fips +INSERT INTO S_FIP VALUES (\ + .if ( "un-initialized" == "${s_fip.FunPack_ID}" ) 0\ .else - ${s_eeevt.EEevt_ID}\ + ${s_fip.FunPack_ID}\ .end if \ - .if ( "un-initialized" == "${s_eeevt.EE_ID}" ) + .if ( "un-initialized" == "${s_fip.Sync_ID}" ) , 0\ .else -, ${s_eeevt.EE_ID}\ +, ${s_fip.Sync_ID}\ + .end if + ); +.end for +.select many s_fpips from instances of S_FPIP +.for each s_fpip in s_fpips +INSERT INTO S_FPIP VALUES (\ + .if ( "un-initialized" == "${s_fpip.FunPack_ID}" ) + 0\ + .else + ${s_fpip.FunPack_ID}\ .end if -, ${s_eeevt.Numb}, '${s_eeevt.Mning}', ${s_eeevt.Is_Lbl_U}, '${s_eeevt.Unq_Lbl}', '${s_eeevt.Drv_Lbl}', ''\ ); .end for .select many s_eepks from instances of S_EEPK @@ -2171,28 +2166,6 @@ INSERT INTO S_EEPK VALUES (\ .end if ); .end for -.select many s_eems from instances of S_EEM -.for each s_eem in s_eems -INSERT INTO S_EEM VALUES (\ - .if ( "un-initialized" == "${s_eem.EEmod_ID}" ) - 0\ - .else - ${s_eem.EEmod_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_eem.EE_ID}" ) -, 0\ - .else -, ${s_eem.EE_ID}\ - .end if -, ${s_eem.Modl_Typ}\ - .if ( "un-initialized" == "${s_eem.SS_ID}" ) -, 0\ - .else -, ${s_eem.SS_ID}\ - .end if - ); -.end for .select many s_eeips from instances of S_EEIP .for each s_eeip in s_eeips INSERT INTO S_EEIP VALUES (\ @@ -2209,123 +2182,95 @@ INSERT INTO S_EEIP VALUES (\ .end if ); .end for -.select many s_ees from instances of S_EE -.for each s_ee in s_ees -INSERT INTO S_EE VALUES (\ - .if ( "un-initialized" == "${s_ee.EE_ID}" ) +.select many s_eepips from instances of S_EEPIP +.for each s_eepip in s_eepips +INSERT INTO S_EEPIP VALUES (\ + .if ( "un-initialized" == "${s_eepip.EEPack_ID}" ) 0\ .else - ${s_ee.EE_ID}\ - .end if -, '${s_ee.Name}', ''\ -, '${s_ee.Key_Lett}'\ - .if ( "un-initialized" == "${s_ee.Dom_ID}" ) -, 0\ - .else -, ${s_ee.Dom_ID}\ + ${s_eepip.EEPack_ID}\ .end if ); .end for -.select many s_fpips from instances of S_FPIP -.for each s_fpip in s_fpips -INSERT INTO S_FPIP VALUES (\ - .if ( "un-initialized" == "${s_fpip.FunPack_ID}" ) +.select many s_dpks from instances of S_DPK +.for each s_dpk in s_dpks +INSERT INTO S_DPK VALUES (\ + .if ( "un-initialized" == "${s_dpk.Package_ID}" ) 0\ .else - ${s_fpip.FunPack_ID}\ + ${s_dpk.Package_ID}\ .end if - ); -.end for -.select many s_fpks from instances of S_FPK -.for each s_fpk in s_fpks -INSERT INTO S_FPK VALUES (\ - .if ( "un-initialized" == "${s_fpk.FunPack_ID}" ) - 0\ +, '${s_dpk.Name}'\ + .if ( "un-initialized" == "${s_dpk.Dom_ID}" ) +, 0\ .else - ${s_fpk.FunPack_ID}\ - .end if -, '${s_fpk.Name}'\ - .if ( "un-initialized" == "${s_fpk.Dom_ID}" ) -, 0\ - .else -, ${s_fpk.Dom_ID}\ +, ${s_dpk.Dom_ID}\ .end if \ - .if ( "un-initialized" == "${s_fpk.Parent_FunPack_ID}" ) + .if ( "un-initialized" == "${s_dpk.Parent_Package_ID}" ) , 0\ .else -, ${s_fpk.Parent_FunPack_ID}\ +, ${s_dpk.Parent_Package_ID}\ .end if ); .end for -.select many s_sparms from instances of S_SPARM -.for each s_sparm in s_sparms -INSERT INTO S_SPARM VALUES (\ - .if ( "un-initialized" == "${s_sparm.SParm_ID}" ) +.select many s_dips from instances of S_DIP +.for each s_dip in s_dips +INSERT INTO S_DIP VALUES (\ + .if ( "un-initialized" == "${s_dip.Package_ID}" ) 0\ .else - ${s_sparm.SParm_ID}\ + ${s_dip.Package_ID}\ .end if \ - .if ( "un-initialized" == "${s_sparm.Sync_ID}" ) -, 0\ - .else -, ${s_sparm.Sync_ID}\ - .end if -, '${s_sparm.Name}'\ - .if ( "un-initialized" == "${s_sparm.DT_ID}" ) + .if ( "un-initialized" == "${s_dip.DT_ID}" ) , 0\ .else -, ${s_sparm.DT_ID}\ +, ${s_dip.DT_ID}\ .end if -, ${s_sparm.By_Ref}, '${s_sparm.Dimensions}'\ - .if ( "un-initialized" == "${s_sparm.Previous_SParm_ID}" ) -, 0\ + ); +.end for +.select many s_dpips from instances of S_DPIP +.for each s_dpip in s_dpips +INSERT INTO S_DPIP VALUES (\ + .if ( "un-initialized" == "${s_dpip.Package_ID}" ) + 0\ .else -, ${s_sparm.Previous_SParm_ID}\ + ${s_dpip.Package_ID}\ .end if -, ''\ ); .end for -.select many s_fips from instances of S_FIP -.for each s_fip in s_fips -INSERT INTO S_FIP VALUES (\ - .if ( "un-initialized" == "${s_fip.FunPack_ID}" ) +.select many s_siss from instances of S_SIS +.for each s_sis in s_siss +INSERT INTO S_SIS VALUES (\ + .if ( "un-initialized" == "${s_sis.Parent_SS_ID}" ) 0\ .else - ${s_fip.FunPack_ID}\ + ${s_sis.Parent_SS_ID}\ .end if \ - .if ( "un-initialized" == "${s_fip.Sync_ID}" ) + .if ( "un-initialized" == "${s_sis.Child_SS_ID}" ) , 0\ .else -, ${s_fip.Sync_ID}\ +, ${s_sis.Child_SS_ID}\ .end if ); .end for -.select many s_syncs from instances of S_SYNC -.for each s_sync in s_syncs -INSERT INTO S_SYNC VALUES (\ - .if ( "un-initialized" == "${s_sync.Sync_ID}" ) +.select many s_sids from instances of S_SID +.for each s_sid in s_sids +INSERT INTO S_SID VALUES (\ + .if ( "un-initialized" == "${s_sid.Dom_ID}" ) 0\ .else - ${s_sync.Sync_ID}\ - .end if -\ - .if ( "un-initialized" == "${s_sync.Dom_ID}" ) -, 0\ - .else -, ${s_sync.Dom_ID}\ + ${s_sid.Dom_ID}\ .end if -, '${s_sync.Name}', ''\ -, ''\ \ - .if ( "un-initialized" == "${s_sync.DT_ID}" ) + .if ( "un-initialized" == "${s_sid.SS_ID}" ) , 0\ .else -, ${s_sync.DT_ID}\ +, ${s_sid.SS_ID}\ .end if -, ${s_sync.Suc_Pars}, '${s_sync.Return_Dimensions}' ); + ); .end for .select many s_irdts from instances of S_IRDT .for each s_irdt in s_irdts @@ -2343,6 +2288,16 @@ INSERT INTO S_IRDT VALUES (\ .end if ); .end for +.select many s_sdts from instances of S_SDT +.for each s_sdt in s_sdts +INSERT INTO S_SDT VALUES (\ + .if ( "un-initialized" == "${s_sdt.DT_ID}" ) + 0\ + .else + ${s_sdt.DT_ID}\ + .end if + ); +.end for .select many s_mbrs from instances of S_MBR .for each s_mbr in s_mbrs INSERT INTO S_MBR VALUES (\ @@ -2372,147 +2327,123 @@ INSERT INTO S_MBR VALUES (\ .end if , '${s_mbr.Dimensions}' ); .end for -.select many s_sdts from instances of S_SDT -.for each s_sdt in s_sdts -INSERT INTO S_SDT VALUES (\ - .if ( "un-initialized" == "${s_sdt.DT_ID}" ) +.select many s_diss from instances of S_DIS +.for each s_dis in s_diss +INSERT INTO S_DIS VALUES (\ + .if ( "un-initialized" == "${s_dis.Dom_ID}" ) 0\ .else - ${s_sdt.DT_ID}\ + ${s_dis.Dom_ID}\ + .end if +\ + .if ( "un-initialized" == "${s_dis.DT_ID}" ) +, 0\ + .else +, ${s_dis.DT_ID}\ .end if ); .end for -.select many s_sids from instances of S_SID -.for each s_sid in s_sids -INSERT INTO S_SID VALUES (\ - .if ( "un-initialized" == "${s_sid.Dom_ID}" ) - 0\ +.select many s_dims from instances of S_DIM +.for each s_dim in s_dims +INSERT INTO S_DIM VALUES ( ${s_dim.elementCount}, ${s_dim.dimensionCount}\ + .if ( "un-initialized" == "${s_dim.Sync_ID}" ) +, 0\ .else - ${s_sid.Dom_ID}\ +, ${s_dim.Sync_ID}\ .end if \ - .if ( "un-initialized" == "${s_sid.SS_ID}" ) + .if ( "un-initialized" == "${s_dim.SParm_ID}" ) , 0\ .else -, ${s_sid.SS_ID}\ +, ${s_dim.SParm_ID}\ .end if - ); -.end for -.select many s_siss from instances of S_SIS -.for each s_sis in s_siss -INSERT INTO S_SIS VALUES (\ - .if ( "un-initialized" == "${s_sis.Parent_SS_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${s_dim.BParm_ID}" ) +, 0\ .else - ${s_sis.Parent_SS_ID}\ +, ${s_dim.BParm_ID}\ .end if \ - .if ( "un-initialized" == "${s_sis.Child_SS_ID}" ) + .if ( "un-initialized" == "${s_dim.Brg_ID}" ) , 0\ .else -, ${s_sis.Child_SS_ID}\ +, ${s_dim.Brg_ID}\ .end if - ); -.end for -.select many s_sss from instances of S_SS -.for each s_ss in s_sss -INSERT INTO S_SS VALUES (\ - .if ( "un-initialized" == "${s_ss.SS_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${s_dim.Id}" ) +, 0\ .else - ${s_ss.SS_ID}\ +, ${s_dim.Id}\ .end if -, '${s_ss.Name}', ''\ -, '${s_ss.Prefix}', ${s_ss.Num_Rng}\ - .if ( "un-initialized" == "${s_ss.Dom_ID}" ) +\ + .if ( "un-initialized" == "${s_dim.Obj_ID}" ) , 0\ .else -, ${s_ss.Dom_ID}\ +, ${s_dim.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${s_ss.Config_ID}" ) + .if ( "un-initialized" == "${s_dim.Attr_ID}" ) , 0\ .else -, ${s_ss.Config_ID}\ +, ${s_dim.Attr_ID}\ .end if - ); -.end for -.select many s_syss from instances of S_SYS -.for each s_sys in s_syss -INSERT INTO S_SYS VALUES (\ - .if ( "un-initialized" == "${s_sys.Sys_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${s_dim.TParm_ID}" ) +, 0\ .else - ${s_sys.Sys_ID}\ +, ${s_dim.TParm_ID}\ .end if -, '${s_sys.Name}', ${s_sys.useGlobals} ); -.end for -.select many s_udts from instances of S_UDT -.for each s_udt in s_udts -INSERT INTO S_UDT VALUES (\ - .if ( "un-initialized" == "${s_udt.DT_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${s_dim.Tfr_ID}" ) +, 0\ .else - ${s_udt.DT_ID}\ +, ${s_dim.Tfr_ID}\ .end if \ - .if ( "un-initialized" == "${s_udt.CDT_DT_ID}" ) + .if ( "un-initialized" == "${s_dim.Member_ID}" ) , 0\ .else -, ${s_udt.CDT_DT_ID}\ +, ${s_dim.Member_ID}\ .end if -, ${s_udt.Gen_Type} ); -.end for -.print "Package Linking" -.select many pl_eepids from instances of PL_EEPID -.for each pl_eepid in pl_eepids -INSERT INTO PL_EEPID VALUES (\ - .if ( "un-initialized" == "${pl_eepid.Dom_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${s_dim.DT_ID}" ) +, 0\ .else - ${pl_eepid.Dom_ID}\ +, ${s_dim.DT_ID}\ .end if \ - .if ( "un-initialized" == "${pl_eepid.EEPack_ID}" ) + .if ( "un-initialized" == "${s_dim.PP_Id}" ) , 0\ .else -, ${pl_eepid.EEPack_ID}\ +, ${s_dim.PP_Id}\ .end if - ); -.end for -.select many pl_fpids from instances of PL_FPID -.for each pl_fpid in pl_fpids -INSERT INTO PL_FPID VALUES (\ - .if ( "un-initialized" == "${pl_fpid.FunPack_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${s_dim.SM_ID}" ) +, 0\ .else - ${pl_fpid.FunPack_ID}\ +, ${s_dim.SM_ID}\ .end if \ - .if ( "un-initialized" == "${pl_fpid.Dom_ID}" ) + .if ( "un-initialized" == "${s_dim.SMedi_ID}" ) , 0\ .else -, ${pl_fpid.Dom_ID}\ +, ${s_dim.SMedi_ID}\ .end if - ); -.end for -.print "Element Packaging" -.select many ep_pips from instances of EP_PIP -.for each ep_pip in ep_pips -INSERT INTO EP_PIP VALUES (\ - .if ( "un-initialized" == "${ep_pip.Parent_Package_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${s_dim.DIM_ID}" ) +, 0\ .else - ${ep_pip.Parent_Package_ID}\ +, ${s_dim.DIM_ID}\ .end if \ - .if ( "un-initialized" == "${ep_pip.Child_Package_ID}" ) + .if ( "un-initialized" == "${s_dim.Var_ID}" ) , 0\ .else -, ${ep_pip.Child_Package_ID}\ +, ${s_dim.Var_ID}\ .end if ); .end for +.print "Element Packaging" .select many ep_pkgs from instances of EP_PKG .for each ep_pkg in ep_pkgs INSERT INTO EP_PKG VALUES (\ @@ -2552,179 +2483,210 @@ INSERT INTO EP_SPKG VALUES (\ .end if ); .end for -.print "Globals" -.select many g_eiss from instances of G_EIS -.for each g_eis in g_eiss -INSERT INTO G_EIS VALUES (\ - .if ( "un-initialized" == "${g_eis.Element_ID}" ) +.select many ep_pips from instances of EP_PIP +.for each ep_pip in ep_pips +INSERT INTO EP_PIP VALUES (\ + .if ( "un-initialized" == "${ep_pip.Parent_Package_ID}" ) 0\ .else - ${g_eis.Element_ID}\ + ${ep_pip.Parent_Package_ID}\ .end if \ - .if ( "un-initialized" == "${g_eis.Sys_ID}" ) + .if ( "un-initialized" == "${ep_pip.Child_Package_ID}" ) , 0\ .else -, ${g_eis.Sys_ID}\ +, ${ep_pip.Child_Package_ID}\ .end if ); .end for -.print "Instance" -.select many i_avls from instances of I_AVL -.for each i_avl in i_avls -INSERT INTO I_AVL VALUES (\ - .if ( "un-initialized" == "${i_avl.Inst_ID}" ) +.print "Engine" +.select many sen_es from instances of SEN_E +.for each sen_e in sen_es +INSERT INTO SEN_E VALUES (\ + .if ( "un-initialized" == "${sen_e.Id}" ) 0\ .else - ${i_avl.Inst_ID}\ + ${sen_e.Id}\ .end if -\ - .if ( "un-initialized" == "${i_avl.Obj_ID}" ) -, 0\ + ); +.end for +.select many sen_ales from instances of SEN_ALE +.for each sen_ale in sen_ales +INSERT INTO SEN_ALE VALUES (\ + .if ( "un-initialized" == "${sen_ale.Id}" ) + 0\ .else -, ${i_avl.Obj_ID}\ + ${sen_ale.Id}\ .end if -\ - .if ( "un-initialized" == "${i_avl.Attr_ID}" ) -, 0\ + ); +.end for +.select many sen_des from instances of SEN_DE +.for each sen_de in sen_des +INSERT INTO SEN_DE VALUES (\ + .if ( "un-initialized" == "${sen_de.Id}" ) + 0\ .else -, ${i_avl.Attr_ID}\ + ${sen_de.Id}\ .end if -, '${i_avl.Value}', '${i_avl.Label}' ); + ); .end for -.select many i_bsfs from instances of I_BSF -.for each i_bsf in i_bsfs -INSERT INTO I_BSF VALUES (\ - .if ( "un-initialized" == "${i_bsf.Block_ID}" ) +.select many sen_dces from instances of SEN_DCE +.for each sen_dce in sen_dces +INSERT INTO SEN_DCE VALUES (\ + .if ( "un-initialized" == "${sen_dce.Id}" ) 0\ .else - ${i_bsf.Block_ID}\ + ${sen_dce.Id}\ .end if -\ - .if ( "un-initialized" == "${i_bsf.Stack_Frame_ID}" ) -, 0\ + ); +.end for +.select many sen_res from instances of SEN_RE +.for each sen_re in sen_res +INSERT INTO SEN_RE VALUES (\ + .if ( "un-initialized" == "${sen_re.Id}" ) + 0\ .else -, ${i_bsf.Stack_Frame_ID}\ + ${sen_re.Id}\ + .end if + ); +.end for +.print "Globals" +.select many g_eiss from instances of G_EIS +.for each g_eis in g_eiss +INSERT INTO G_EIS VALUES (\ + .if ( "un-initialized" == "${g_eis.Element_ID}" ) + 0\ + .else + ${g_eis.Element_ID}\ .end if \ - .if ( "un-initialized" == "${i_bsf.Statement_ID}" ) + .if ( "un-initialized" == "${g_eis.Sys_ID}" ) , 0\ .else -, ${i_bsf.Statement_ID}\ +, ${g_eis.Sys_ID}\ .end if -, ${i_bsf.isExecuting} ); + ); .end for -.select many i_cins from instances of I_CIN -.for each i_cin in i_cins -INSERT INTO I_CIN VALUES (\ - .if ( "un-initialized" == "${i_cin.Container_ID}" ) +.print "Instance" +.select many i_lnks from instances of I_LNK +.for each i_lnk in i_lnks +INSERT INTO I_LNK VALUES (\ + .if ( "un-initialized" == "${i_lnk.Link_ID}" ) 0\ .else - ${i_cin.Container_ID}\ + ${i_lnk.Link_ID}\ .end if - ); -.end for -.select many i_exes from instances of I_EXE -.for each i_exe in i_exes -INSERT INTO I_EXE VALUES ( ${i_exe.Running}\ - .if ( "un-initialized" == "${i_exe.Execution_Engine_ID}" ) +\ + .if ( "un-initialized" == "${i_lnk.Rel_ID}" ) , 0\ .else -, ${i_exe.Execution_Engine_ID}\ +, ${i_lnk.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${i_exe.Dom_ID}" ) + .if ( "un-initialized" == "${i_lnk.fromInst_ID}" ) , 0\ .else -, ${i_exe.Dom_ID}\ +, ${i_lnk.fromInst_ID}\ .end if \ - .if ( "un-initialized" == "${i_exe.Component_Id}" ) + .if ( "un-initialized" == "${i_lnk.toInst_ID}" ) , 0\ .else -, ${i_exe.Component_Id}\ +, ${i_lnk.toInst_ID}\ .end if \ - .if ( "un-initialized" == "${i_exe.Package_ID}" ) + .if ( "un-initialized" == "${i_lnk.assocInst_ID}" ) , 0\ .else -, ${i_exe.Package_ID}\ +, ${i_lnk.assocInst_ID}\ .end if -, ${i_exe.Next_Unique_ID}, ${i_exe.Next_Instance_ID}\ - .if ( "un-initialized" == "${i_exe.ImportedComponent_Id}" ) + ); +.end for +.select many i_evis from instances of I_EVI +.for each i_evi in i_evis +INSERT INTO I_EVI VALUES (\ + .if ( "un-initialized" == "${i_evi.Event_ID}" ) + 0\ + .else + ${i_evi.Event_ID}\ + .end if +, ${i_evi.isExecuting}, ${i_evi.isCreation}\ + .if ( "un-initialized" == "${i_evi.SMevt_ID}" ) , 0\ .else -, ${i_exe.ImportedComponent_Id}\ +, ${i_evi.SMevt_ID}\ .end if -, '${i_exe.Label}', ${i_exe.EQE_Lock}, ${i_exe.SQE_Lock}\ - .if ( "un-initialized" == "${i_exe.Container_ID}" ) +\ + .if ( "un-initialized" == "${i_evi.Target_Inst_ID}" ) , 0\ .else -, ${i_exe.Container_ID}\ +, ${i_evi.Target_Inst_ID}\ .end if -, ${i_exe.RealizedBy} ); -.end for -.select many i_divs from instances of I_DIV -.for each i_div in i_divs -INSERT INTO I_DIV VALUES (\ - .if ( "un-initialized" == "${i_div.DIV_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${i_evi.nextEvent_ID}" ) +, 0\ .else - ${i_div.DIV_ID}\ +, ${i_evi.nextEvent_ID}\ .end if \ - .if ( "un-initialized" == "${i_div.Event_ID}" ) + .if ( "un-initialized" == "${i_evi.Sent_By_Inst_ID}" ) , 0\ .else -, ${i_div.Event_ID}\ +, ${i_evi.Sent_By_Inst_ID}\ .end if \ - .if ( "un-initialized" == "${i_div.SM_ID}" ) + .if ( "un-initialized" == "${i_evi.next_self_Event_ID}" ) , 0\ .else -, ${i_div.SM_ID}\ +, ${i_evi.next_self_Event_ID}\ .end if \ - .if ( "un-initialized" == "${i_div.SMedi_ID}" ) + .if ( "un-initialized" == "${i_evi.Sent_By_CIE_ID}" ) , 0\ .else -, ${i_div.SMedi_ID}\ +, ${i_evi.Sent_By_CIE_ID}\ .end if \ - .if ( "un-initialized" == "${i_div.PP_Id}" ) + .if ( "un-initialized" == "${i_evi.CIE_ID}" ) , 0\ .else -, ${i_div.PP_Id}\ +, ${i_evi.CIE_ID}\ .end if - ); -.end for -.select many i_eqes from instances of I_EQE -.for each i_eqe in i_eqes -INSERT INTO I_EQE VALUES (\ - .if ( "un-initialized" == "${i_eqe.Event_Queue_Entry_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${i_evi.Execution_Engine_ID}" ) +, 0\ .else - ${i_eqe.Event_Queue_Entry_ID}\ +, ${i_evi.Execution_Engine_ID}\ .end if \ - .if ( "un-initialized" == "${i_eqe.Execution_Engine_ID}" ) + .if ( "un-initialized" == "${i_evi.Originating_Execution_Engine_ID}" ) , 0\ .else -, ${i_eqe.Execution_Engine_ID}\ +, ${i_evi.Originating_Execution_Engine_ID}\ + .end if +, '${i_evi.Label}' ); +.end for +.select many i_avls from instances of I_AVL +.for each i_avl in i_avls +INSERT INTO I_AVL VALUES (\ + .if ( "un-initialized" == "${i_avl.Inst_ID}" ) + 0\ + .else + ${i_avl.Inst_ID}\ .end if \ - .if ( "un-initialized" == "${i_eqe.Event_ID}" ) + .if ( "un-initialized" == "${i_avl.Obj_ID}" ) , 0\ .else -, ${i_eqe.Event_ID}\ +, ${i_avl.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${i_eqe.Next_Event_Queue_Entry_ID}" ) + .if ( "un-initialized" == "${i_avl.Attr_ID}" ) , 0\ .else -, ${i_eqe.Next_Event_Queue_Entry_ID}\ +, ${i_avl.Attr_ID}\ .end if - ); +, '${i_avl.Value}', '${i_avl.Label}' ); .end for .select many i_inss from instances of I_INS .for each i_ins in i_inss @@ -2766,309 +2728,257 @@ INSERT INTO I_INS VALUES (\ .end if , '${i_ins.Label}', '${i_ins.Default_Name}' ); .end for -.select many i_icqes from instances of I_ICQE -.for each i_icqe in i_icqes -INSERT INTO I_ICQE VALUES (\ - .if ( "un-initialized" == "${i_icqe.Stack_ID}" ) - 0\ - .else - ${i_icqe.Stack_ID}\ - .end if -\ - .if ( "un-initialized" == "${i_icqe.Stack_Frame_ID}" ) +.select many i_exes from instances of I_EXE +.for each i_exe in i_exes +INSERT INTO I_EXE VALUES ( ${i_exe.Running}\ + .if ( "un-initialized" == "${i_exe.Execution_Engine_ID}" ) , 0\ .else -, ${i_icqe.Stack_Frame_ID}\ +, ${i_exe.Execution_Engine_ID}\ .end if \ - .if ( "un-initialized" == "${i_icqe.Execution_Engine_ID}" ) + .if ( "un-initialized" == "${i_exe.Dom_ID}" ) , 0\ .else -, ${i_icqe.Execution_Engine_ID}\ - .end if - ); -.end for -.select many i_lips from instances of I_LIP -.for each i_lip in i_lips -INSERT INTO I_LIP VALUES (\ - .if ( "un-initialized" == "${i_lip.Rel_ID}" ) - 0\ - .else - ${i_lip.Rel_ID}\ +, ${i_exe.Dom_ID}\ .end if \ - .if ( "un-initialized" == "${i_lip.Inst_ID}" ) + .if ( "un-initialized" == "${i_exe.Component_Id}" ) , 0\ .else -, ${i_lip.Inst_ID}\ - .end if -, '${i_lip.Label}' ); -.end for -.select many i_lnks from instances of I_LNK -.for each i_lnk in i_lnks -INSERT INTO I_LNK VALUES (\ - .if ( "un-initialized" == "${i_lnk.Link_ID}" ) - 0\ - .else - ${i_lnk.Link_ID}\ +, ${i_exe.Component_Id}\ .end if \ - .if ( "un-initialized" == "${i_lnk.Rel_ID}" ) + .if ( "un-initialized" == "${i_exe.Package_ID}" ) , 0\ .else -, ${i_lnk.Rel_ID}\ +, ${i_exe.Package_ID}\ .end if -\ - .if ( "un-initialized" == "${i_lnk.fromInst_ID}" ) +, ${i_exe.Next_Unique_ID}, ${i_exe.Next_Instance_ID}\ + .if ( "un-initialized" == "${i_exe.ImportedComponent_Id}" ) , 0\ .else -, ${i_lnk.fromInst_ID}\ +, ${i_exe.ImportedComponent_Id}\ .end if -\ - .if ( "un-initialized" == "${i_lnk.toInst_ID}" ) +, '${i_exe.Label}', ${i_exe.EQE_Lock}, ${i_exe.SQE_Lock}\ + .if ( "un-initialized" == "${i_exe.Container_ID}" ) , 0\ .else -, ${i_lnk.toInst_ID}\ - .end if -\ - .if ( "un-initialized" == "${i_lnk.assocInst_ID}" ) -, 0\ - .else -, ${i_lnk.assocInst_ID}\ +, ${i_exe.Container_ID}\ .end if - ); +, ${i_exe.RealizedBy} ); .end for -.select many i_mons from instances of I_MON -.for each i_mon in i_mons -INSERT INTO I_MON VALUES (\ - .if ( "un-initialized" == "${i_mon.Execution_Engine_ID}" ) +.select many i_stfs from instances of I_STF +.for each i_stf in i_stfs +INSERT INTO I_STF VALUES (\ + .if ( "un-initialized" == "${i_stf.Stack_Frame_ID}" ) 0\ .else - ${i_mon.Execution_Engine_ID}\ + ${i_stf.Stack_Frame_ID}\ .end if -\ - .if ( "un-initialized" == "${i_mon.Inst_ID}" ) +, ${i_stf.Created_For_Wired_Bridge}, ${i_stf.readyForInterrupt}\ + .if ( "un-initialized" == "${i_stf.Bridge_Caller_Stack_Frame_ID}" ) , 0\ .else -, ${i_mon.Inst_ID}\ - .end if -, ${i_mon.enabled} ); -.end for -.select many i_evis from instances of I_EVI -.for each i_evi in i_evis -INSERT INTO I_EVI VALUES (\ - .if ( "un-initialized" == "${i_evi.Event_ID}" ) - 0\ - .else - ${i_evi.Event_ID}\ +, ${i_stf.Bridge_Caller_Stack_Frame_ID}\ .end if -, ${i_evi.isExecuting}, ${i_evi.isCreation}\ - .if ( "un-initialized" == "${i_evi.SMevt_ID}" ) +\ + .if ( "un-initialized" == "${i_stf.Child_Stack_Frame_ID}" ) , 0\ .else -, ${i_evi.SMevt_ID}\ +, ${i_stf.Child_Stack_Frame_ID}\ .end if \ - .if ( "un-initialized" == "${i_evi.Target_Inst_ID}" ) + .if ( "un-initialized" == "${i_stf.Top_Stack_Frame_Stack_ID}" ) , 0\ .else -, ${i_evi.Target_Inst_ID}\ +, ${i_stf.Top_Stack_Frame_Stack_ID}\ .end if \ - .if ( "un-initialized" == "${i_evi.nextEvent_ID}" ) + .if ( "un-initialized" == "${i_stf.Stack_ID}" ) , 0\ .else -, ${i_evi.nextEvent_ID}\ +, ${i_stf.Stack_ID}\ .end if \ - .if ( "un-initialized" == "${i_evi.Sent_By_Inst_ID}" ) + .if ( "un-initialized" == "${i_stf.Inst_ID}" ) , 0\ .else -, ${i_evi.Sent_By_Inst_ID}\ +, ${i_stf.Inst_ID}\ .end if \ - .if ( "un-initialized" == "${i_evi.next_self_Event_ID}" ) + .if ( "un-initialized" == "${i_stf.Value_Q_Stack_ID}" ) , 0\ .else -, ${i_evi.next_self_Event_ID}\ +, ${i_stf.Value_Q_Stack_ID}\ .end if \ - .if ( "un-initialized" == "${i_evi.Sent_By_CIE_ID}" ) + .if ( "un-initialized" == "${i_stf.Blocking_Stack_Frame_ID}" ) , 0\ .else -, ${i_evi.Sent_By_CIE_ID}\ +, ${i_stf.Blocking_Stack_Frame_ID}\ .end if -\ - .if ( "un-initialized" == "${i_evi.CIE_ID}" ) -, 0\ + ); +.end for +.select many i_bsfs from instances of I_BSF +.for each i_bsf in i_bsfs +INSERT INTO I_BSF VALUES (\ + .if ( "un-initialized" == "${i_bsf.Block_ID}" ) + 0\ .else -, ${i_evi.CIE_ID}\ + ${i_bsf.Block_ID}\ .end if \ - .if ( "un-initialized" == "${i_evi.Execution_Engine_ID}" ) + .if ( "un-initialized" == "${i_bsf.Stack_Frame_ID}" ) , 0\ .else -, ${i_evi.Execution_Engine_ID}\ +, ${i_bsf.Stack_Frame_ID}\ .end if \ - .if ( "un-initialized" == "${i_evi.Originating_Execution_Engine_ID}" ) + .if ( "un-initialized" == "${i_bsf.Statement_ID}" ) , 0\ .else -, ${i_evi.Originating_Execution_Engine_ID}\ +, ${i_bsf.Statement_ID}\ .end if -, '${i_evi.Label}' ); +, ${i_bsf.isExecuting} ); .end for -.select many i_rchs from instances of I_RCH -.for each i_rch in i_rchs -INSERT INTO I_RCH VALUES (\ - .if ( "un-initialized" == "${i_rch.Channel_Id}" ) +.select many i_stacks from instances of I_STACK +.for each i_stack in i_stacks +INSERT INTO I_STACK VALUES (\ + .if ( "un-initialized" == "${i_stack.Stack_ID}" ) 0\ .else - ${i_rch.Channel_Id}\ + ${i_stack.Stack_ID}\ .end if \ - .if ( "un-initialized" == "${i_rch.Execution_Engine_ID}" ) + .if ( "un-initialized" == "${i_stack.Execution_Engine_ID}" ) , 0\ .else -, ${i_rch.Execution_Engine_ID}\ +, ${i_stack.Execution_Engine_ID}\ + .end if +, ${i_stack.runState}, '${i_stack.suspendReason}' ); +.end for +.select many i_divs from instances of I_DIV +.for each i_div in i_divs +INSERT INTO I_DIV VALUES (\ + .if ( "un-initialized" == "${i_div.DIV_ID}" ) + 0\ + .else + ${i_div.DIV_ID}\ .end if \ - .if ( "un-initialized" == "${i_rch.other_Execution_Engine_ID}" ) + .if ( "un-initialized" == "${i_div.Event_ID}" ) , 0\ .else -, ${i_rch.other_Execution_Engine_ID}\ +, ${i_div.Event_ID}\ .end if \ - .if ( "un-initialized" == "${i_rch.Satisfaction_Id}" ) + .if ( "un-initialized" == "${i_div.SM_ID}" ) , 0\ .else -, ${i_rch.Satisfaction_Id}\ +, ${i_div.SM_ID}\ .end if \ - .if ( "un-initialized" == "${i_rch.Delegation_Id}" ) + .if ( "un-initialized" == "${i_div.SMedi_ID}" ) , 0\ .else -, ${i_rch.Delegation_Id}\ +, ${i_div.SMedi_ID}\ .end if \ - .if ( "un-initialized" == "${i_rch.Next_provider_Channel_Id}" ) + .if ( "un-initialized" == "${i_div.PP_Id}" ) , 0\ .else -, ${i_rch.Next_provider_Channel_Id}\ +, ${i_div.PP_Id}\ .end if ); .end for -.select many i_sqes from instances of I_SQE -.for each i_sqe in i_sqes -INSERT INTO I_SQE VALUES (\ - .if ( "un-initialized" == "${i_sqe.Self_Queue_Entry_ID}" ) +.select many i_tims from instances of I_TIM +.for each i_tim in i_tims +INSERT INTO I_TIM VALUES (\ + .if ( "un-initialized" == "${i_tim.Timer_ID}" ) 0\ .else - ${i_sqe.Self_Queue_Entry_ID}\ - .end if -\ - .if ( "un-initialized" == "${i_sqe.Execution_Engine_ID}" ) -, 0\ - .else -, ${i_sqe.Execution_Engine_ID}\ - .end if -\ - .if ( "un-initialized" == "${i_sqe.Event_ID}" ) -, 0\ - .else -, ${i_sqe.Event_ID}\ + ${i_tim.Timer_ID}\ .end if -\ - .if ( "un-initialized" == "${i_sqe.Next_Self_Queue_Entry_ID}" ) +, ${i_tim.delay}, ${i_tim.running}, ${i_tim.recurring}\ + .if ( "un-initialized" == "${i_tim.Event_ID}" ) , 0\ .else -, ${i_sqe.Next_Self_Queue_Entry_ID}\ +, ${i_tim.Event_ID}\ .end if - ); +, '${i_tim.Label}', ${i_tim.expiration} ); .end for -.select many i_stfs from instances of I_STF -.for each i_stf in i_stfs -INSERT INTO I_STF VALUES (\ - .if ( "un-initialized" == "${i_stf.Stack_Frame_ID}" ) +.select many i_eqes from instances of I_EQE +.for each i_eqe in i_eqes +INSERT INTO I_EQE VALUES (\ + .if ( "un-initialized" == "${i_eqe.Event_Queue_Entry_ID}" ) 0\ .else - ${i_stf.Stack_Frame_ID}\ + ${i_eqe.Event_Queue_Entry_ID}\ .end if -, ${i_stf.Created_For_Wired_Bridge}, ${i_stf.readyForInterrupt}\ - .if ( "un-initialized" == "${i_stf.Bridge_Caller_Stack_Frame_ID}" ) +\ + .if ( "un-initialized" == "${i_eqe.Execution_Engine_ID}" ) , 0\ .else -, ${i_stf.Bridge_Caller_Stack_Frame_ID}\ +, ${i_eqe.Execution_Engine_ID}\ .end if \ - .if ( "un-initialized" == "${i_stf.Child_Stack_Frame_ID}" ) + .if ( "un-initialized" == "${i_eqe.Event_ID}" ) , 0\ .else -, ${i_stf.Child_Stack_Frame_ID}\ +, ${i_eqe.Event_ID}\ .end if \ - .if ( "un-initialized" == "${i_stf.Top_Stack_Frame_Stack_ID}" ) + .if ( "un-initialized" == "${i_eqe.Next_Event_Queue_Entry_ID}" ) , 0\ .else -, ${i_stf.Top_Stack_Frame_Stack_ID}\ +, ${i_eqe.Next_Event_Queue_Entry_ID}\ .end if -\ - .if ( "un-initialized" == "${i_stf.Stack_ID}" ) -, 0\ + ); +.end for +.select many i_sqes from instances of I_SQE +.for each i_sqe in i_sqes +INSERT INTO I_SQE VALUES (\ + .if ( "un-initialized" == "${i_sqe.Self_Queue_Entry_ID}" ) + 0\ .else -, ${i_stf.Stack_ID}\ + ${i_sqe.Self_Queue_Entry_ID}\ .end if \ - .if ( "un-initialized" == "${i_stf.Inst_ID}" ) + .if ( "un-initialized" == "${i_sqe.Execution_Engine_ID}" ) , 0\ .else -, ${i_stf.Inst_ID}\ +, ${i_sqe.Execution_Engine_ID}\ .end if \ - .if ( "un-initialized" == "${i_stf.Value_Q_Stack_ID}" ) + .if ( "un-initialized" == "${i_sqe.Event_ID}" ) , 0\ .else -, ${i_stf.Value_Q_Stack_ID}\ +, ${i_sqe.Event_ID}\ .end if \ - .if ( "un-initialized" == "${i_stf.Blocking_Stack_Frame_ID}" ) + .if ( "un-initialized" == "${i_sqe.Next_Self_Queue_Entry_ID}" ) , 0\ .else -, ${i_stf.Blocking_Stack_Frame_ID}\ +, ${i_sqe.Next_Self_Queue_Entry_ID}\ .end if ); .end for -.select many i_stacks from instances of I_STACK -.for each i_stack in i_stacks -INSERT INTO I_STACK VALUES (\ - .if ( "un-initialized" == "${i_stack.Stack_ID}" ) +.select many i_mons from instances of I_MON +.for each i_mon in i_mons +INSERT INTO I_MON VALUES (\ + .if ( "un-initialized" == "${i_mon.Execution_Engine_ID}" ) 0\ .else - ${i_stack.Stack_ID}\ + ${i_mon.Execution_Engine_ID}\ .end if \ - .if ( "un-initialized" == "${i_stack.Execution_Engine_ID}" ) -, 0\ - .else -, ${i_stack.Execution_Engine_ID}\ - .end if -, ${i_stack.runState}, '${i_stack.suspendReason}' ); -.end for -.select many i_tims from instances of I_TIM -.for each i_tim in i_tims -INSERT INTO I_TIM VALUES (\ - .if ( "un-initialized" == "${i_tim.Timer_ID}" ) - 0\ - .else - ${i_tim.Timer_ID}\ - .end if -, ${i_tim.delay}, ${i_tim.running}, ${i_tim.recurring}\ - .if ( "un-initialized" == "${i_tim.Event_ID}" ) + .if ( "un-initialized" == "${i_mon.Inst_ID}" ) , 0\ .else -, ${i_tim.Event_ID}\ +, ${i_mon.Inst_ID}\ .end if -, '${i_tim.Label}', ${i_tim.expiration} ); +, ${i_mon.enabled} ); .end for .select many i_vsfs from instances of I_VSF .for each i_vsf in i_vsfs @@ -3092,96 +3002,111 @@ INSERT INTO I_VSF VALUES (\ .end if ); .end for -.print "Class State Machine Execution" -.select many csme_cies from instances of CSME_CIE -.for each csme_cie in csme_cies -INSERT INTO CSME_CIE VALUES (\ - .if ( "un-initialized" == "${csme_cie.CIE_ID}" ) +.select many i_lips from instances of I_LIP +.for each i_lip in i_lips +INSERT INTO I_LIP VALUES (\ + .if ( "un-initialized" == "${i_lip.Rel_ID}" ) 0\ .else - ${csme_cie.CIE_ID}\ - .end if -\ - .if ( "un-initialized" == "${csme_cie.Execution_Engine_ID}" ) -, 0\ - .else -, ${csme_cie.Execution_Engine_ID}\ + ${i_lip.Rel_ID}\ .end if \ - .if ( "un-initialized" == "${csme_cie.Obj_ID}" ) + .if ( "un-initialized" == "${i_lip.Inst_ID}" ) , 0\ .else -, ${csme_cie.Obj_ID}\ +, ${i_lip.Inst_ID}\ .end if -\ - .if ( "un-initialized" == "${csme_cie.Package_ID}" ) +, '${i_lip.Label}' ); +.end for +.select many i_rchs from instances of I_RCH +.for each i_rch in i_rchs +INSERT INTO I_RCH VALUES (\ + .if ( "un-initialized" == "${i_rch.Channel_Id}" ) + 0\ + .else + ${i_rch.Channel_Id}\ + .end if +\ + .if ( "un-initialized" == "${i_rch.Execution_Engine_ID}" ) , 0\ .else -, ${csme_cie.Package_ID}\ +, ${i_rch.Execution_Engine_ID}\ .end if -, '${csme_cie.Label}' ); -.end for -.select many csme_ciss from instances of CSME_CIS -.for each csme_cis in csme_ciss -INSERT INTO CSME_CIS VALUES (\ - .if ( "un-initialized" == "${csme_cis.SM_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${i_rch.other_Execution_Engine_ID}" ) +, 0\ .else - ${csme_cis.SM_ID}\ +, ${i_rch.other_Execution_Engine_ID}\ .end if \ - .if ( "un-initialized" == "${csme_cis.SMstt_ID}" ) + .if ( "un-initialized" == "${i_rch.Satisfaction_Id}" ) , 0\ .else -, ${csme_cis.SMstt_ID}\ +, ${i_rch.Satisfaction_Id}\ .end if \ - .if ( "un-initialized" == "${csme_cis.Trans_ID}" ) + .if ( "un-initialized" == "${i_rch.Delegation_Id}" ) , 0\ .else -, ${csme_cis.Trans_ID}\ +, ${i_rch.Delegation_Id}\ .end if \ - .if ( "un-initialized" == "${csme_cis.CIE_ID}" ) + .if ( "un-initialized" == "${i_rch.Next_provider_Channel_Id}" ) , 0\ .else -, ${csme_cis.CIE_ID}\ +, ${i_rch.Next_provider_Channel_Id}\ .end if ); .end for -.select many csme_clms from instances of CSME_CLM -.for each csme_clm in csme_clms -INSERT INTO CSME_CLM VALUES (\ - .if ( "un-initialized" == "${csme_clm.Execution_Engine_ID}" ) +.select many i_cins from instances of I_CIN +.for each i_cin in i_cins +INSERT INTO I_CIN VALUES (\ + .if ( "un-initialized" == "${i_cin.Container_ID}" ) 0\ .else - ${csme_clm.Execution_Engine_ID}\ + ${i_cin.Container_ID}\ + .end if + ); +.end for +.select many i_icqes from instances of I_ICQE +.for each i_icqe in i_icqes +INSERT INTO I_ICQE VALUES (\ + .if ( "un-initialized" == "${i_icqe.Stack_ID}" ) + 0\ + .else + ${i_icqe.Stack_ID}\ .end if \ - .if ( "un-initialized" == "${csme_clm.CIE_ID}" ) + .if ( "un-initialized" == "${i_icqe.Stack_Frame_ID}" ) , 0\ .else -, ${csme_clm.CIE_ID}\ +, ${i_icqe.Stack_Frame_ID}\ + .end if +\ + .if ( "un-initialized" == "${i_icqe.Execution_Engine_ID}" ) +, 0\ + .else +, ${i_icqe.Execution_Engine_ID}\ .end if ); .end for .print "Interaction" -.select many sq_aps from instances of SQ_AP -.for each sq_ap in sq_aps -INSERT INTO SQ_AP VALUES (\ - .if ( "un-initialized" == "${sq_ap.Part_ID}" ) +.select many sq_lss from instances of SQ_LS +.for each sq_ls in sq_lss +INSERT INTO SQ_LS VALUES (\ + .if ( "un-initialized" == "${sq_ls.Part_ID}" ) 0\ .else - ${sq_ap.Part_ID}\ + ${sq_ls.Part_ID}\ .end if -, '${sq_ap.Name}', ''\ \ - .if ( "un-initialized" == "${sq_ap.LS_Part_ID}" ) + .if ( "un-initialized" == "${sq_ls.Source_Part_ID}" ) , 0\ .else -, ${sq_ap.LS_Part_ID}\ +, ${sq_ls.Source_Part_ID}\ .end if - ); +, ''\ +, ${sq_ls.Destroyed} ); .end for .select many sq_cips from instances of SQ_CIP .for each sq_cip in sq_cips @@ -3200,23 +3125,63 @@ INSERT INTO SQ_CIP VALUES (\ , '${sq_cip.Name}', '${sq_cip.InformalClassName}', '${sq_cip.Label}', ''\ , ${sq_cip.isFormal} ); .end for -.select many sq_cpas from instances of SQ_CPA -.for each sq_cpa in sq_cpas -INSERT INTO SQ_CPA VALUES (\ - .if ( "un-initialized" == "${sq_cpa.Ia_ID}" ) +.select many sq_cops from instances of SQ_COP +.for each sq_cop in sq_cops +INSERT INTO SQ_COP VALUES (\ + .if ( "un-initialized" == "${sq_cop.Part_ID}" ) 0\ .else - ${sq_cpa.Ia_ID}\ + ${sq_cop.Part_ID}\ .end if -, '${sq_cpa.Name}', '${sq_cpa.Type}'\ - .if ( "un-initialized" == "${sq_cpa.Part_ID}" ) +\ + .if ( "un-initialized" == "${sq_cop.Component_Id}" ) , 0\ .else -, ${sq_cpa.Part_ID}\ +, ${sq_cop.Component_Id}\ + .end if +, '${sq_cop.Label}', '${sq_cop.InformalComponentName}', ''\ +, ${sq_cop.isFormal} ); +.end for +.select many sq_tms from instances of SQ_TM +.for each sq_tm in sq_tms +INSERT INTO SQ_TM VALUES (\ + .if ( "un-initialized" == "${sq_tm.Mark_ID}" ) + 0\ + .else + ${sq_tm.Mark_ID}\ + .end if +, '${sq_tm.Name}'\ + .if ( "un-initialized" == "${sq_tm.Part_ID}" ) +, 0\ + .else +, ${sq_tm.Part_ID}\ .end if , ''\ ); .end for +.select many sq_tss from instances of SQ_TS +.for each sq_ts in sq_tss +INSERT INTO SQ_TS VALUES (\ + .if ( "un-initialized" == "${sq_ts.Span_ID}" ) + 0\ + .else + ${sq_ts.Span_ID}\ + .end if +\ + .if ( "un-initialized" == "${sq_ts.Mark_ID}" ) +, 0\ + .else +, ${sq_ts.Mark_ID}\ + .end if +\ + .if ( "un-initialized" == "${sq_ts.Prev_Mark_ID}" ) +, 0\ + .else +, ${sq_ts.Prev_Mark_ID}\ + .end if +, '${sq_ts.Name}', ''\ + ); +.end for .select many sq_cps from instances of SQ_CP .for each sq_cp in sq_cps INSERT INTO SQ_CP VALUES (\ @@ -3234,22 +3199,21 @@ INSERT INTO SQ_CP VALUES (\ , '${sq_cp.Label}', '${sq_cp.InformalName}', ''\ , ${sq_cp.isFormal} ); .end for -.select many sq_cops from instances of SQ_COP -.for each sq_cop in sq_cops -INSERT INTO SQ_COP VALUES (\ - .if ( "un-initialized" == "${sq_cop.Part_ID}" ) +.select many sq_ps from instances of SQ_P +.for each sq_p in sq_ps +INSERT INTO SQ_P VALUES (\ + .if ( "un-initialized" == "${sq_p.Part_ID}" ) 0\ .else - ${sq_cop.Part_ID}\ + ${sq_p.Part_ID}\ .end if \ - .if ( "un-initialized" == "${sq_cop.Component_Id}" ) + .if ( "un-initialized" == "${sq_p.Sequence_Package_ID}" ) , 0\ .else -, ${sq_cop.Component_Id}\ +, ${sq_p.Sequence_Package_ID}\ .end if -, '${sq_cop.Label}', '${sq_cop.InformalComponentName}', ''\ -, ${sq_cop.isFormal} ); + ); .end for .select many sq_eeps from instances of SQ_EEP .for each sq_eep in sq_eeps @@ -3268,26 +3232,6 @@ INSERT INTO SQ_EEP VALUES (\ , '${sq_eep.Label}', '${sq_eep.InformalName}', ''\ , ${sq_eep.isFormal} ); .end for -.select many sq_favs from instances of SQ_FAV -.for each sq_fav in sq_favs -INSERT INTO SQ_FAV VALUES (\ - .if ( "un-initialized" == "${sq_fav.Av_ID}" ) - 0\ - .else - ${sq_fav.Av_ID}\ - .end if - ); -.end for -.select many sq_fas from instances of SQ_FA -.for each sq_fa in sq_fas -INSERT INTO SQ_FA VALUES (\ - .if ( "un-initialized" == "${sq_fa.Ia_ID}" ) - 0\ - .else - ${sq_fa.Ia_ID}\ - .end if - ); -.end for .select many sq_fpps from instances of SQ_FPP .for each sq_fpp in sq_fpps INSERT INTO SQ_FPP VALUES (\ @@ -3305,24 +3249,21 @@ INSERT INTO SQ_FPP VALUES (\ , '${sq_fpp.Label}', '${sq_fpp.InformalName}', ''\ , ${sq_fpp.isFormal} ); .end for -.select many sq_iavs from instances of SQ_IAV -.for each sq_iav in sq_iavs -INSERT INTO SQ_IAV VALUES (\ - .if ( "un-initialized" == "${sq_iav.Av_ID}" ) +.select many sq_cpas from instances of SQ_CPA +.for each sq_cpa in sq_cpas +INSERT INTO SQ_CPA VALUES (\ + .if ( "un-initialized" == "${sq_cpa.Ia_ID}" ) 0\ .else - ${sq_iav.Av_ID}\ + ${sq_cpa.Ia_ID}\ .end if - ); -.end for -.select many sq_ias from instances of SQ_IA -.for each sq_ia in sq_ias -INSERT INTO SQ_IA VALUES (\ - .if ( "un-initialized" == "${sq_ia.Ia_ID}" ) - 0\ +, '${sq_cpa.Name}', '${sq_cpa.Type}'\ + .if ( "un-initialized" == "${sq_cpa.Part_ID}" ) +, 0\ .else - ${sq_ia.Ia_ID}\ +, ${sq_cpa.Part_ID}\ .end if +, ''\ ); .end for .select many sq_avs from instances of SQ_AV @@ -3360,94 +3301,61 @@ INSERT INTO SQ_AV VALUES (\ , ''\ , ${sq_av.isFormal} ); .end for -.select many sq_ps from instances of SQ_P -.for each sq_p in sq_ps -INSERT INTO SQ_P VALUES (\ - .if ( "un-initialized" == "${sq_p.Part_ID}" ) +.select many sq_aps from instances of SQ_AP +.for each sq_ap in sq_aps +INSERT INTO SQ_AP VALUES (\ + .if ( "un-initialized" == "${sq_ap.Part_ID}" ) 0\ .else - ${sq_p.Part_ID}\ + ${sq_ap.Part_ID}\ .end if +, '${sq_ap.Name}', ''\ \ - .if ( "un-initialized" == "${sq_p.Sequence_Package_ID}" ) + .if ( "un-initialized" == "${sq_ap.LS_Part_ID}" ) , 0\ .else -, ${sq_p.Sequence_Package_ID}\ +, ${sq_ap.LS_Part_ID}\ .end if ); .end for -.select many sq_lss from instances of SQ_LS -.for each sq_ls in sq_lss -INSERT INTO SQ_LS VALUES (\ - .if ( "un-initialized" == "${sq_ls.Part_ID}" ) +.select many sq_ias from instances of SQ_IA +.for each sq_ia in sq_ias +INSERT INTO SQ_IA VALUES (\ + .if ( "un-initialized" == "${sq_ia.Ia_ID}" ) 0\ .else - ${sq_ls.Part_ID}\ + ${sq_ia.Ia_ID}\ .end if -\ - .if ( "un-initialized" == "${sq_ls.Source_Part_ID}" ) -, 0\ + ); +.end for +.select many sq_fas from instances of SQ_FA +.for each sq_fa in sq_fas +INSERT INTO SQ_FA VALUES (\ + .if ( "un-initialized" == "${sq_fa.Ia_ID}" ) + 0\ .else -, ${sq_ls.Source_Part_ID}\ + ${sq_fa.Ia_ID}\ .end if -, ''\ -, ${sq_ls.Destroyed} ); + ); .end for -.select many sq_pps from instances of SQ_PP -.for each sq_pp in sq_pps -INSERT INTO SQ_PP VALUES (\ - .if ( "un-initialized" == "${sq_pp.Part_ID}" ) +.select many sq_favs from instances of SQ_FAV +.for each sq_fav in sq_favs +INSERT INTO SQ_FAV VALUES (\ + .if ( "un-initialized" == "${sq_fav.Av_ID}" ) 0\ .else - ${sq_pp.Part_ID}\ + ${sq_fav.Av_ID}\ .end if -\ - .if ( "un-initialized" == "${sq_pp.Package_ID}" ) -, 0\ - .else -, ${sq_pp.Package_ID}\ - .end if -, '${sq_pp.Label}', '${sq_pp.InformalName}', ''\ -, ${sq_pp.isFormal} ); -.end for -.select many sq_tss from instances of SQ_TS -.for each sq_ts in sq_tss -INSERT INTO SQ_TS VALUES (\ - .if ( "un-initialized" == "${sq_ts.Span_ID}" ) - 0\ - .else - ${sq_ts.Span_ID}\ - .end if -\ - .if ( "un-initialized" == "${sq_ts.Mark_ID}" ) -, 0\ - .else -, ${sq_ts.Mark_ID}\ - .end if -\ - .if ( "un-initialized" == "${sq_ts.Prev_Mark_ID}" ) -, 0\ - .else -, ${sq_ts.Prev_Mark_ID}\ - .end if -, '${sq_ts.Name}', ''\ ); .end for -.select many sq_tms from instances of SQ_TM -.for each sq_tm in sq_tms -INSERT INTO SQ_TM VALUES (\ - .if ( "un-initialized" == "${sq_tm.Mark_ID}" ) +.select many sq_iavs from instances of SQ_IAV +.for each sq_iav in sq_iavs +INSERT INTO SQ_IAV VALUES (\ + .if ( "un-initialized" == "${sq_iav.Av_ID}" ) 0\ .else - ${sq_tm.Mark_ID}\ - .end if -, '${sq_tm.Name}'\ - .if ( "un-initialized" == "${sq_tm.Part_ID}" ) -, 0\ - .else -, ${sq_tm.Part_ID}\ + ${sq_iav.Av_ID}\ .end if -, ''\ ); .end for .select many ia_ucps from instances of IA_UCP @@ -3461,17 +3369,24 @@ INSERT INTO IA_UCP VALUES (\ , '${ia_ucp.Name}', ''\ ); .end for -.print "Interface Package" -.select many ip_ipinips from instances of IP_IPINIP -.for each ip_ipinip in ip_ipinips -INSERT INTO IP_IPINIP VALUES (\ - .if ( "un-initialized" == "${ip_ipinip.Package_ID}" ) +.select many sq_pps from instances of SQ_PP +.for each sq_pp in sq_pps +INSERT INTO SQ_PP VALUES (\ + .if ( "un-initialized" == "${sq_pp.Part_ID}" ) 0\ .else - ${ip_ipinip.Package_ID}\ + ${sq_pp.Part_ID}\ .end if - ); +\ + .if ( "un-initialized" == "${sq_pp.Package_ID}" ) +, 0\ + .else +, ${sq_pp.Package_ID}\ + .end if +, '${sq_pp.Label}', '${sq_pp.InformalName}', ''\ +, ${sq_pp.isFormal} ); .end for +.print "Interface Package" .select many ip_ips from instances of IP_IP .for each ip_ip in ip_ips INSERT INTO IP_IP VALUES (\ @@ -3513,7 +3428,39 @@ INSERT INTO IP_IP VALUES (\ , '${ip_ip.Name}', ''\ ); .end for +.select many ip_ipinips from instances of IP_IPINIP +.for each ip_ipinip in ip_ipinips +INSERT INTO IP_IPINIP VALUES (\ + .if ( "un-initialized" == "${ip_ipinip.Package_ID}" ) + 0\ + .else + ${ip_ipinip.Package_ID}\ + .end if + ); +.end for .print "Invocation" +.select many act_tfms from instances of ACT_TFM +.for each act_tfm in act_tfms +INSERT INTO ACT_TFM VALUES (\ + .if ( "un-initialized" == "${act_tfm.Statement_ID}" ) + 0\ + .else + ${act_tfm.Statement_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_tfm.Tfr_ID}" ) +, 0\ + .else +, ${act_tfm.Tfr_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_tfm.Var_ID}" ) +, 0\ + .else +, ${act_tfm.Var_ID}\ + .end if +, ${act_tfm.operationNameLineNumber}, ${act_tfm.operationNameColumn}, ${act_tfm.modelClassKeyLettersLineNumber}, ${act_tfm.modelClassKeyLettersColumn} ); +.end for .select many act_brgs from instances of ACT_BRG .for each act_brg in act_brgs INSERT INTO ACT_BRG VALUES (\ @@ -3530,6 +3477,22 @@ INSERT INTO ACT_BRG VALUES (\ .end if , ${act_brg.bridgeNameLineNumber}, ${act_brg.bridgeNameColumn}, ${act_brg.externalEntityKeyLettersLineNumber}, ${act_brg.externalEntityKeyLettersColumn} ); .end for +.select many act_rets from instances of ACT_RET +.for each act_ret in act_rets +INSERT INTO ACT_RET VALUES (\ + .if ( "un-initialized" == "${act_ret.Statement_ID}" ) + 0\ + .else + ${act_ret.Statement_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_ret.Value_ID}" ) +, 0\ + .else +, ${act_ret.Value_ID}\ + .end if + ); +.end for .select many act_fncs from instances of ACT_FNC .for each act_fnc in act_fncs INSERT INTO ACT_FNC VALUES (\ @@ -3574,44 +3537,6 @@ INSERT INTO ACT_IOP VALUES (\ .end if ); .end for -.select many act_tfms from instances of ACT_TFM -.for each act_tfm in act_tfms -INSERT INTO ACT_TFM VALUES (\ - .if ( "un-initialized" == "${act_tfm.Statement_ID}" ) - 0\ - .else - ${act_tfm.Statement_ID}\ - .end if -\ - .if ( "un-initialized" == "${act_tfm.Tfr_ID}" ) -, 0\ - .else -, ${act_tfm.Tfr_ID}\ - .end if -\ - .if ( "un-initialized" == "${act_tfm.Var_ID}" ) -, 0\ - .else -, ${act_tfm.Var_ID}\ - .end if -, ${act_tfm.operationNameLineNumber}, ${act_tfm.operationNameColumn}, ${act_tfm.modelClassKeyLettersLineNumber}, ${act_tfm.modelClassKeyLettersColumn} ); -.end for -.select many act_rets from instances of ACT_RET -.for each act_ret in act_rets -INSERT INTO ACT_RET VALUES (\ - .if ( "un-initialized" == "${act_ret.Statement_ID}" ) - 0\ - .else - ${act_ret.Statement_ID}\ - .end if -\ - .if ( "un-initialized" == "${act_ret.Value_ID}" ) -, 0\ - .else -, ${act_ret.Value_ID}\ - .end if - ); -.end for .select many act_sgns from instances of ACT_SGN .for each act_sgn in act_sgns INSERT INTO ACT_SGN VALUES (\ @@ -3641,116 +3566,96 @@ INSERT INTO ACT_SGN VALUES (\ ); .end for .print "Message" -.select many msg_ams from instances of MSG_AM -.for each msg_am in msg_ams -INSERT INTO MSG_AM VALUES (\ - .if ( "un-initialized" == "${msg_am.Msg_ID}" ) - 0\ - .else - ${msg_am.Msg_ID}\ - .end if -, '${msg_am.InformalName}', ''\ -, '${msg_am.GuardCondition}', '${msg_am.DurationObservation}', '${msg_am.DurationConstraint}', ${msg_am.isFormal}, '${msg_am.Label}', '${msg_am.SequenceNumb}' ); -.end for -.select many msg_bas from instances of MSG_BA -.for each msg_ba in msg_bas -INSERT INTO MSG_BA VALUES (\ - .if ( "un-initialized" == "${msg_ba.Arg_ID}" ) +.select many msg_ms from instances of MSG_M +.for each msg_m in msg_ms +INSERT INTO MSG_M VALUES (\ + .if ( "un-initialized" == "${msg_m.Msg_ID}" ) 0\ .else - ${msg_ba.Arg_ID}\ + ${msg_m.Msg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_ba.BParm_ID}" ) + .if ( "un-initialized" == "${msg_m.Receiver_Part_ID}" ) , 0\ .else -, ${msg_ba.BParm_ID}\ - .end if - ); -.end for -.select many msg_bs from instances of MSG_B -.for each msg_b in msg_bs -INSERT INTO MSG_B VALUES (\ - .if ( "un-initialized" == "${msg_b.Msg_ID}" ) - 0\ - .else - ${msg_b.Msg_ID}\ +, ${msg_m.Receiver_Part_ID}\ .end if \ - .if ( "un-initialized" == "${msg_b.Brg_ID}" ) + .if ( "un-initialized" == "${msg_m.Sender_Part_ID}" ) , 0\ .else -, ${msg_b.Brg_ID}\ +, ${msg_m.Sender_Part_ID}\ .end if - ); +, ${msg_m.participatesInCommunication} ); .end for -.select many msg_eas from instances of MSG_EA -.for each msg_ea in msg_eas -INSERT INTO MSG_EA VALUES (\ - .if ( "un-initialized" == "${msg_ea.Arg_ID}" ) +.select many msg_as from instances of MSG_A +.for each msg_a in msg_as +INSERT INTO MSG_A VALUES (\ + .if ( "un-initialized" == "${msg_a.Arg_ID}" ) 0\ .else - ${msg_ea.Arg_ID}\ + ${msg_a.Arg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_ea.SM_ID}" ) + .if ( "un-initialized" == "${msg_a.Informal_Msg_ID}" ) , 0\ .else -, ${msg_ea.SM_ID}\ +, ${msg_a.Informal_Msg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_ea.SMedi_ID}" ) + .if ( "un-initialized" == "${msg_a.Formal_Msg_ID}" ) , 0\ .else -, ${msg_ea.SMedi_ID}\ +, ${msg_a.Formal_Msg_ID}\ .end if - ); +, '${msg_a.Label}', '${msg_a.Value}', '${msg_a.InformalName}', ''\ +, ${msg_a.isFormal} ); .end for -.select many msg_es from instances of MSG_E -.for each msg_e in msg_es -INSERT INTO MSG_E VALUES (\ - .if ( "un-initialized" == "${msg_e.Msg_ID}" ) +.select many msg_os from instances of MSG_O +.for each msg_o in msg_os +INSERT INTO MSG_O VALUES (\ + .if ( "un-initialized" == "${msg_o.Msg_ID}" ) 0\ .else - ${msg_e.Msg_ID}\ + ${msg_o.Msg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_e.SMevt_ID}" ) + .if ( "un-initialized" == "${msg_o.Tfr_ID}" ) , 0\ .else -, ${msg_e.SMevt_ID}\ +, ${msg_o.Tfr_ID}\ .end if ); .end for -.select many msg_epas from instances of MSG_EPA -.for each msg_epa in msg_epas -INSERT INTO MSG_EPA VALUES (\ - .if ( "un-initialized" == "${msg_epa.Arg_ID}" ) +.select many msg_bs from instances of MSG_B +.for each msg_b in msg_bs +INSERT INTO MSG_B VALUES (\ + .if ( "un-initialized" == "${msg_b.Msg_ID}" ) 0\ .else - ${msg_epa.Arg_ID}\ + ${msg_b.Msg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_epa.PP_Id}" ) + .if ( "un-initialized" == "${msg_b.Brg_ID}" ) , 0\ .else -, ${msg_epa.PP_Id}\ +, ${msg_b.Brg_ID}\ .end if ); .end for -.select many msg_fas from instances of MSG_FA -.for each msg_fa in msg_fas -INSERT INTO MSG_FA VALUES (\ - .if ( "un-initialized" == "${msg_fa.Arg_ID}" ) +.select many msg_es from instances of MSG_E +.for each msg_e in msg_es +INSERT INTO MSG_E VALUES (\ + .if ( "un-initialized" == "${msg_e.Msg_ID}" ) 0\ .else - ${msg_fa.Arg_ID}\ + ${msg_e.Msg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_fa.SParm_ID}" ) + .if ( "un-initialized" == "${msg_e.SMevt_ID}" ) , 0\ .else -, ${msg_fa.SParm_ID}\ +, ${msg_e.SMevt_ID}\ .end if ); .end for @@ -3770,139 +3675,138 @@ INSERT INTO MSG_F VALUES (\ .end if ); .end for -.select many msg_ias from instances of MSG_IA -.for each msg_ia in msg_ias -INSERT INTO MSG_IA VALUES (\ - .if ( "un-initialized" == "${msg_ia.Arg_ID}" ) +.select many msg_bas from instances of MSG_BA +.for each msg_ba in msg_bas +INSERT INTO MSG_BA VALUES (\ + .if ( "un-initialized" == "${msg_ba.Arg_ID}" ) 0\ .else - ${msg_ia.Arg_ID}\ + ${msg_ba.Arg_ID}\ .end if - ); -.end for -.select many msg_iams from instances of MSG_IAM -.for each msg_iam in msg_iams -INSERT INTO MSG_IAM VALUES (\ - .if ( "un-initialized" == "${msg_iam.Msg_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${msg_ba.BParm_ID}" ) +, 0\ .else - ${msg_iam.Msg_ID}\ +, ${msg_ba.BParm_ID}\ .end if ); .end for -.select many msg_isms from instances of MSG_ISM -.for each msg_ism in msg_isms -INSERT INTO MSG_ISM VALUES (\ - .if ( "un-initialized" == "${msg_ism.Msg_ID}" ) +.select many msg_oas from instances of MSG_OA +.for each msg_oa in msg_oas +INSERT INTO MSG_OA VALUES (\ + .if ( "un-initialized" == "${msg_oa.Arg_ID}" ) 0\ .else - ${msg_ism.Msg_ID}\ + ${msg_oa.Arg_ID}\ + .end if +\ + .if ( "un-initialized" == "${msg_oa.TParm_ID}" ) +, 0\ + .else +, ${msg_oa.TParm_ID}\ .end if ); .end for -.select many msg_iops from instances of MSG_IOP -.for each msg_iop in msg_iops -INSERT INTO MSG_IOP VALUES (\ - .if ( "un-initialized" == "${msg_iop.Msg_ID}" ) +.select many msg_fas from instances of MSG_FA +.for each msg_fa in msg_fas +INSERT INTO MSG_FA VALUES (\ + .if ( "un-initialized" == "${msg_fa.Arg_ID}" ) 0\ .else - ${msg_iop.Msg_ID}\ + ${msg_fa.Arg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_iop.Id}" ) + .if ( "un-initialized" == "${msg_fa.SParm_ID}" ) , 0\ .else -, ${msg_iop.Id}\ +, ${msg_fa.SParm_ID}\ .end if ); .end for -.select many msg_as from instances of MSG_A -.for each msg_a in msg_as -INSERT INTO MSG_A VALUES (\ - .if ( "un-initialized" == "${msg_a.Arg_ID}" ) +.select many msg_eas from instances of MSG_EA +.for each msg_ea in msg_eas +INSERT INTO MSG_EA VALUES (\ + .if ( "un-initialized" == "${msg_ea.Arg_ID}" ) 0\ .else - ${msg_a.Arg_ID}\ + ${msg_ea.Arg_ID}\ .end if \ - .if ( "un-initialized" == "${msg_a.Informal_Msg_ID}" ) + .if ( "un-initialized" == "${msg_ea.SM_ID}" ) , 0\ .else -, ${msg_a.Informal_Msg_ID}\ +, ${msg_ea.SM_ID}\ .end if \ - .if ( "un-initialized" == "${msg_a.Formal_Msg_ID}" ) + .if ( "un-initialized" == "${msg_ea.SMedi_ID}" ) , 0\ .else -, ${msg_a.Formal_Msg_ID}\ +, ${msg_ea.SMedi_ID}\ .end if -, '${msg_a.Label}', '${msg_a.Value}', '${msg_a.InformalName}', ''\ -, ${msg_a.isFormal} ); + ); .end for -.select many msg_ms from instances of MSG_M -.for each msg_m in msg_ms -INSERT INTO MSG_M VALUES (\ - .if ( "un-initialized" == "${msg_m.Msg_ID}" ) +.select many msg_rs from instances of MSG_R +.for each msg_r in msg_rs +INSERT INTO MSG_R VALUES (\ + .if ( "un-initialized" == "${msg_r.Msg_ID}" ) 0\ .else - ${msg_m.Msg_ID}\ - .end if -\ - .if ( "un-initialized" == "${msg_m.Receiver_Part_ID}" ) -, 0\ - .else -, ${msg_m.Receiver_Part_ID}\ + ${msg_r.Msg_ID}\ .end if -\ - .if ( "un-initialized" == "${msg_m.Sender_Part_ID}" ) -, 0\ +, '${msg_r.Name}', ''\ +, '${msg_r.GuardCondition}', '${msg_r.ResultTarget}', '${msg_r.ReturnValue}', '${msg_r.SequenceNumb}' ); +.end for +.select many msg_sms from instances of MSG_SM +.for each msg_sm in msg_sms +INSERT INTO MSG_SM VALUES (\ + .if ( "un-initialized" == "${msg_sm.Msg_ID}" ) + 0\ .else -, ${msg_m.Sender_Part_ID}\ + ${msg_sm.Msg_ID}\ .end if -, ${msg_m.participatesInCommunication} ); +, '${msg_sm.InformalName}', ''\ +, '${msg_sm.GuardCondition}', '${msg_sm.ResultTarget}', '${msg_sm.ReturnValue}', ${msg_sm.isFormal}, '${msg_sm.Label}', '${msg_sm.SequenceNumb}' ); .end for -.select many msg_oas from instances of MSG_OA -.for each msg_oa in msg_oas -INSERT INTO MSG_OA VALUES (\ - .if ( "un-initialized" == "${msg_oa.Arg_ID}" ) +.select many msg_ams from instances of MSG_AM +.for each msg_am in msg_ams +INSERT INTO MSG_AM VALUES (\ + .if ( "un-initialized" == "${msg_am.Msg_ID}" ) 0\ .else - ${msg_oa.Arg_ID}\ + ${msg_am.Msg_ID}\ .end if -\ - .if ( "un-initialized" == "${msg_oa.TParm_ID}" ) -, 0\ +, '${msg_am.InformalName}', ''\ +, '${msg_am.GuardCondition}', '${msg_am.DurationObservation}', '${msg_am.DurationConstraint}', ${msg_am.isFormal}, '${msg_am.Label}', '${msg_am.SequenceNumb}' ); +.end for +.select many msg_isms from instances of MSG_ISM +.for each msg_ism in msg_isms +INSERT INTO MSG_ISM VALUES (\ + .if ( "un-initialized" == "${msg_ism.Msg_ID}" ) + 0\ .else -, ${msg_oa.TParm_ID}\ + ${msg_ism.Msg_ID}\ .end if ); .end for -.select many msg_os from instances of MSG_O -.for each msg_o in msg_os -INSERT INTO MSG_O VALUES (\ - .if ( "un-initialized" == "${msg_o.Msg_ID}" ) +.select many msg_iams from instances of MSG_IAM +.for each msg_iam in msg_iams +INSERT INTO MSG_IAM VALUES (\ + .if ( "un-initialized" == "${msg_iam.Msg_ID}" ) 0\ .else - ${msg_o.Msg_ID}\ - .end if -\ - .if ( "un-initialized" == "${msg_o.Tfr_ID}" ) -, 0\ - .else -, ${msg_o.Tfr_ID}\ + ${msg_iam.Msg_ID}\ .end if ); .end for -.select many msg_rs from instances of MSG_R -.for each msg_r in msg_rs -INSERT INTO MSG_R VALUES (\ - .if ( "un-initialized" == "${msg_r.Msg_ID}" ) +.select many msg_ias from instances of MSG_IA +.for each msg_ia in msg_ias +INSERT INTO MSG_IA VALUES (\ + .if ( "un-initialized" == "${msg_ia.Arg_ID}" ) 0\ .else - ${msg_r.Msg_ID}\ + ${msg_ia.Arg_ID}\ .end if -, '${msg_r.Name}', ''\ -, '${msg_r.GuardCondition}', '${msg_r.ResultTarget}', '${msg_r.ReturnValue}', '${msg_r.SequenceNumb}' ); + ); .end for .select many msg_sigs from instances of MSG_SIG .for each msg_sig in msg_sigs @@ -3920,72 +3824,72 @@ INSERT INTO MSG_SIG VALUES (\ .end if ); .end for -.select many msg_sms from instances of MSG_SM -.for each msg_sm in msg_sms -INSERT INTO MSG_SM VALUES (\ - .if ( "un-initialized" == "${msg_sm.Msg_ID}" ) +.select many msg_iops from instances of MSG_IOP +.for each msg_iop in msg_iops +INSERT INTO MSG_IOP VALUES (\ + .if ( "un-initialized" == "${msg_iop.Msg_ID}" ) 0\ .else - ${msg_sm.Msg_ID}\ + ${msg_iop.Msg_ID}\ .end if -, '${msg_sm.InformalName}', ''\ -, '${msg_sm.GuardCondition}', '${msg_sm.ResultTarget}', '${msg_sm.ReturnValue}', ${msg_sm.isFormal}, '${msg_sm.Label}', '${msg_sm.SequenceNumb}' ); -.end for -.print "Packageable Element" -.select many pe_crss from instances of PE_CRS -.for each pe_crs in pe_crss -INSERT INTO PE_CRS VALUES (\ - .if ( "un-initialized" == "${pe_crs.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${msg_iop.Id}" ) +, 0\ .else - ${pe_crs.Id}\ +, ${msg_iop.Id}\ .end if -, '${pe_crs.Name}', ${pe_crs.Type} ); + ); .end for -.select many pe_cvss from instances of PE_CVS -.for each pe_cvs in pe_cvss -INSERT INTO PE_CVS VALUES (\ - .if ( "un-initialized" == "${pe_cvs.Visibility_ID}" ) +.select many msg_epas from instances of MSG_EPA +.for each msg_epa in msg_epas +INSERT INTO MSG_EPA VALUES (\ + .if ( "un-initialized" == "${msg_epa.Arg_ID}" ) 0\ .else - ${pe_cvs.Visibility_ID}\ - .end if -\ - .if ( "un-initialized" == "${pe_cvs.Element_ID}" ) -, 0\ - .else -, ${pe_cvs.Element_ID}\ + ${msg_epa.Arg_ID}\ .end if \ - .if ( "un-initialized" == "${pe_cvs.Id}" ) + .if ( "un-initialized" == "${msg_epa.PP_Id}" ) , 0\ .else -, ${pe_cvs.Id}\ +, ${msg_epa.PP_Id}\ .end if -, '${pe_cvs.Name}', ${pe_cvs.Type} ); + ); .end for -.select many pe_viss from instances of PE_VIS -.for each pe_vis in pe_viss -INSERT INTO PE_VIS VALUES (\ - .if ( "un-initialized" == "${pe_vis.Visibility_ID}" ) +.print "Package Linking" +.select many pl_eepids from instances of PL_EEPID +.for each pl_eepid in pl_eepids +INSERT INTO PL_EEPID VALUES (\ + .if ( "un-initialized" == "${pl_eepid.Dom_ID}" ) 0\ .else - ${pe_vis.Visibility_ID}\ + ${pl_eepid.Dom_ID}\ .end if \ - .if ( "un-initialized" == "${pe_vis.Element_ID}" ) + .if ( "un-initialized" == "${pl_eepid.EEPack_ID}" ) , 0\ .else -, ${pe_vis.Element_ID}\ +, ${pl_eepid.EEPack_ID}\ + .end if + ); +.end for +.select many pl_fpids from instances of PL_FPID +.for each pl_fpid in pl_fpids +INSERT INTO PL_FPID VALUES (\ + .if ( "un-initialized" == "${pl_fpid.FunPack_ID}" ) + 0\ + .else + ${pl_fpid.FunPack_ID}\ .end if \ - .if ( "un-initialized" == "${pe_vis.Package_ID}" ) + .if ( "un-initialized" == "${pl_fpid.Dom_ID}" ) , 0\ .else -, ${pe_vis.Package_ID}\ +, ${pl_fpid.Dom_ID}\ .end if -, '${pe_vis.Name}', ${pe_vis.Type} ); + ); .end for +.print "Packageable Element" .select many pe_pes from instances of PE_PE .for each pe_pe in pe_pes INSERT INTO PE_PE VALUES (\ @@ -4008,49 +3912,114 @@ INSERT INTO PE_PE VALUES (\ .end if , ${pe_pe.type} ); .end for -.select many pe_srss from instances of PE_SRS -.for each pe_srs in pe_srss -INSERT INTO PE_SRS VALUES (\ - .if ( "un-initialized" == "${pe_srs.Package_ID}" ) +.select many pe_viss from instances of PE_VIS +.for each pe_vis in pe_viss +INSERT INTO PE_VIS VALUES (\ + .if ( "un-initialized" == "${pe_vis.Visibility_ID}" ) 0\ .else - ${pe_srs.Package_ID}\ + ${pe_vis.Visibility_ID}\ .end if -, '${pe_srs.Name}', ${pe_srs.Type} ); -.end for -.print "Persistence Associations" -.select many pa_dics from instances of PA_DIC -.for each pa_dic in pa_dics -INSERT INTO PA_DIC VALUES (\ - .if ( "un-initialized" == "${pa_dic.Component_Id}" ) - 0\ - .else - ${pa_dic.Component_Id}\ +\ + .if ( "un-initialized" == "${pe_vis.Element_ID}" ) +, 0\ + .else +, ${pe_vis.Element_ID}\ .end if \ - .if ( "un-initialized" == "${pa_dic.Delegation_Id}" ) + .if ( "un-initialized" == "${pe_vis.Package_ID}" ) , 0\ .else -, ${pa_dic.Delegation_Id}\ +, ${pe_vis.Package_ID}\ .end if - ); +, '${pe_vis.Name}', ${pe_vis.Type} ); .end for -.select many pa_sicps from instances of PA_SICP -.for each pa_sicp in pa_sicps -INSERT INTO PA_SICP VALUES (\ - .if ( "un-initialized" == "${pa_sicp.ComponentPackage_ID}" ) +.select many pe_cvss from instances of PE_CVS +.for each pe_cvs in pe_cvss +INSERT INTO PE_CVS VALUES (\ + .if ( "un-initialized" == "${pe_cvs.Visibility_ID}" ) 0\ .else - ${pa_sicp.ComponentPackage_ID}\ + ${pe_cvs.Visibility_ID}\ .end if \ - .if ( "un-initialized" == "${pa_sicp.Satisfaction_Id}" ) + .if ( "un-initialized" == "${pe_cvs.Element_ID}" ) , 0\ .else -, ${pa_sicp.Satisfaction_Id}\ +, ${pe_cvs.Element_ID}\ + .end if +\ + .if ( "un-initialized" == "${pe_cvs.Id}" ) +, 0\ + .else +, ${pe_cvs.Id}\ + .end if +, '${pe_cvs.Name}', ${pe_cvs.Type} ); +.end for +.select many pe_srss from instances of PE_SRS +.for each pe_srs in pe_srss +INSERT INTO PE_SRS VALUES (\ + .if ( "un-initialized" == "${pe_srs.Package_ID}" ) + 0\ + .else + ${pe_srs.Package_ID}\ + .end if +, '${pe_srs.Name}', ${pe_srs.Type} ); +.end for +.select many pe_crss from instances of PE_CRS +.for each pe_crs in pe_crss +INSERT INTO PE_CRS VALUES (\ + .if ( "un-initialized" == "${pe_crs.Id}" ) + 0\ + .else + ${pe_crs.Id}\ + .end if +, '${pe_crs.Name}', ${pe_crs.Type} ); +.end for +.print "Participation" +.select many sp_sps from instances of SP_SP +.for each sp_sp in sp_sps +INSERT INTO SP_SP VALUES (\ + .if ( "un-initialized" == "${sp_sp.Id}" ) + 0\ + .else + ${sp_sp.Id}\ + .end if +\ + .if ( "un-initialized" == "${sp_sp.Engine_Id}" ) +, 0\ + .else +, ${sp_sp.Engine_Id}\ .end if ); .end for +.select many sp_ses from instances of SP_SE +.for each sp_se in sp_ses +INSERT INTO SP_SE VALUES (\ + .if ( "un-initialized" == "${sp_se.Id}" ) + 0\ + .else + ${sp_se.Id}\ + .end if +\ + .if ( "un-initialized" == "${sp_se.Participant_Id}" ) +, 0\ + .else +, ${sp_se.Participant_Id}\ + .end if +, '${sp_se.modelRootId}', '${sp_se.className}', ${sp_se.elementId} ); +.end for +.select many sp_alss from instances of SP_ALS +.for each sp_als in sp_alss +INSERT INTO SP_ALS VALUES (\ + .if ( "un-initialized" == "${sp_als.Id}" ) + 0\ + .else + ${sp_als.Id}\ + .end if +, '${sp_als.searchableValue}' ); +.end for +.print "Persistence Associations" .select many pa_sics from instances of PA_SIC .for each pa_sic in pa_sics INSERT INTO PA_SIC VALUES (\ @@ -4067,41 +4036,96 @@ INSERT INTO PA_SIC VALUES (\ .end if ); .end for -.print "Relate And Unrelate" -.select many act_rus from instances of ACT_RU -.for each act_ru in act_rus -INSERT INTO ACT_RU VALUES (\ - .if ( "un-initialized" == "${act_ru.Statement_ID}" ) +.select many pa_sicps from instances of PA_SICP +.for each pa_sicp in pa_sicps +INSERT INTO PA_SICP VALUES (\ + .if ( "un-initialized" == "${pa_sicp.ComponentPackage_ID}" ) 0\ .else - ${act_ru.Statement_ID}\ + ${pa_sicp.ComponentPackage_ID}\ .end if \ - .if ( "un-initialized" == "${act_ru.One_Side_Var_ID}" ) + .if ( "un-initialized" == "${pa_sicp.Satisfaction_Id}" ) , 0\ .else -, ${act_ru.One_Side_Var_ID}\ +, ${pa_sicp.Satisfaction_Id}\ + .end if + ); +.end for +.select many pa_dics from instances of PA_DIC +.for each pa_dic in pa_dics +INSERT INTO PA_DIC VALUES (\ + .if ( "un-initialized" == "${pa_dic.Component_Id}" ) + 0\ + .else + ${pa_dic.Component_Id}\ .end if \ - .if ( "un-initialized" == "${act_ru.Other_Side_Var_ID}" ) + .if ( "un-initialized" == "${pa_dic.Delegation_Id}" ) , 0\ .else -, ${act_ru.Other_Side_Var_ID}\ +, ${pa_dic.Delegation_Id}\ + .end if + ); +.end for +.print "Query" +.select many squ_qs from instances of SQU_Q +.for each squ_q in squ_qs +INSERT INTO SQU_Q VALUES (\ + .if ( "un-initialized" == "${squ_q.Id}" ) + 0\ + .else + ${squ_q.Id}\ .end if \ - .if ( "un-initialized" == "${act_ru.Associative_Var_ID}" ) + .if ( "un-initialized" == "${squ_q.Engine_Id}" ) , 0\ .else -, ${act_ru.Associative_Var_ID}\ +, ${squ_q.Engine_Id}\ .end if -, '${act_ru.relationship_phrase}'\ - .if ( "un-initialized" == "${act_ru.Rel_ID}" ) -, 0\ +, '${squ_q.pattern}', ${squ_q.regEx}, ${squ_q.caseSensitive}, ${squ_q.scope} ); +.end for +.select many squ_ds from instances of SQU_D +.for each squ_d in squ_ds +INSERT INTO SQU_D VALUES (\ + .if ( "un-initialized" == "${squ_d.Id}" ) + 0\ .else -, ${act_ru.Rel_ID}\ + ${squ_d.Id}\ .end if -, ${act_ru.associationNumberLineNumber}, ${act_ru.associationNumberColumn}, ${act_ru.associationPhraseLineNumber}, ${act_ru.associationPhraseColumn} ); + ); +.end for +.select many squ_rs from instances of SQU_R +.for each squ_r in squ_rs +INSERT INTO SQU_R VALUES (\ + .if ( "un-initialized" == "${squ_r.Id}" ) + 0\ + .else + ${squ_r.Id}\ + .end if + ); +.end for +.select many squ_des from instances of SQU_DE +.for each squ_de in squ_des +INSERT INTO SQU_DE VALUES (\ + .if ( "un-initialized" == "${squ_de.Id}" ) + 0\ + .else + ${squ_de.Id}\ + .end if + ); +.end for +.select many squ_as from instances of SQU_A +.for each squ_a in squ_as +INSERT INTO SQU_A VALUES (\ + .if ( "un-initialized" == "${squ_a.Id}" ) + 0\ + .else + ${squ_a.Id}\ + .end if + ); .end for +.print "Relate And Unrelate" .select many act_rels from instances of ACT_REL .for each act_rel in act_rels INSERT INTO ACT_REL VALUES (\ @@ -4130,6 +4154,68 @@ INSERT INTO ACT_REL VALUES (\ .end if , ${act_rel.associationNumberLineNumber}, ${act_rel.associationNumberColumn}, ${act_rel.associationPhraseLineNumber}, ${act_rel.associationPhraseColumn} ); .end for +.select many act_unrs from instances of ACT_UNR +.for each act_unr in act_unrs +INSERT INTO ACT_UNR VALUES (\ + .if ( "un-initialized" == "${act_unr.Statement_ID}" ) + 0\ + .else + ${act_unr.Statement_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_unr.One_Side_Var_ID}" ) +, 0\ + .else +, ${act_unr.One_Side_Var_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_unr.Other_Side_Var_ID}" ) +, 0\ + .else +, ${act_unr.Other_Side_Var_ID}\ + .end if +, '${act_unr.relationship_phrase}'\ + .if ( "un-initialized" == "${act_unr.Rel_ID}" ) +, 0\ + .else +, ${act_unr.Rel_ID}\ + .end if +, ${act_unr.associationNumberLineNumber}, ${act_unr.associationNumberColumn}, ${act_unr.associationPhraseLineNumber}, ${act_unr.associationPhraseColumn} ); +.end for +.select many act_rus from instances of ACT_RU +.for each act_ru in act_rus +INSERT INTO ACT_RU VALUES (\ + .if ( "un-initialized" == "${act_ru.Statement_ID}" ) + 0\ + .else + ${act_ru.Statement_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_ru.One_Side_Var_ID}" ) +, 0\ + .else +, ${act_ru.One_Side_Var_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_ru.Other_Side_Var_ID}" ) +, 0\ + .else +, ${act_ru.Other_Side_Var_ID}\ + .end if +\ + .if ( "un-initialized" == "${act_ru.Associative_Var_ID}" ) +, 0\ + .else +, ${act_ru.Associative_Var_ID}\ + .end if +, '${act_ru.relationship_phrase}'\ + .if ( "un-initialized" == "${act_ru.Rel_ID}" ) +, 0\ + .else +, ${act_ru.Rel_ID}\ + .end if +, ${act_ru.associationNumberLineNumber}, ${act_ru.associationNumberColumn}, ${act_ru.associationPhraseLineNumber}, ${act_ru.associationPhraseColumn} ); +.end for .select many act_urus from instances of ACT_URU .for each act_uru in act_urus INSERT INTO ACT_URU VALUES (\ @@ -4164,1143 +4250,908 @@ INSERT INTO ACT_URU VALUES (\ .end if , ${act_uru.associationNumberLineNumber}, ${act_uru.associationNumberColumn}, ${act_uru.associationPhraseLineNumber}, ${act_uru.associationPhraseColumn} ); .end for -.select many act_unrs from instances of ACT_UNR -.for each act_unr in act_unrs -INSERT INTO ACT_UNR VALUES (\ - .if ( "un-initialized" == "${act_unr.Statement_ID}" ) +.print "Result" +.select many sr_srs from instances of SR_SR +.for each sr_sr in sr_srs +INSERT INTO SR_SR VALUES (\ + .if ( "un-initialized" == "${sr_sr.Id}" ) 0\ .else - ${act_unr.Statement_ID}\ + ${sr_sr.Id}\ .end if \ - .if ( "un-initialized" == "${act_unr.One_Side_Var_ID}" ) + .if ( "un-initialized" == "${sr_sr.Engine_Id}" ) , 0\ .else -, ${act_unr.One_Side_Var_ID}\ +, ${sr_sr.Engine_Id}\ .end if \ - .if ( "un-initialized" == "${act_unr.Other_Side_Var_ID}" ) -, 0\ - .else -, ${act_unr.Other_Side_Var_ID}\ - .end if -, '${act_unr.relationship_phrase}'\ - .if ( "un-initialized" == "${act_unr.Rel_ID}" ) + .if ( "un-initialized" == "${sr_sr.MatchedParticipant_Id}" ) , 0\ .else -, ${act_unr.Rel_ID}\ - .end if -, ${act_unr.associationNumberLineNumber}, ${act_unr.associationNumberColumn}, ${act_unr.associationPhraseLineNumber}, ${act_unr.associationPhraseColumn} ); -.end for -.print "Search" -.print "Engine" -.select many sen_ales from instances of SEN_ALE -.for each sen_ale in sen_ales -INSERT INTO SEN_ALE VALUES (\ - .if ( "un-initialized" == "${sen_ale.Id}" ) - 0\ - .else - ${sen_ale.Id}\ +, ${sr_sr.MatchedParticipant_Id}\ .end if ); .end for -.select many sen_dces from instances of SEN_DCE -.for each sen_dce in sen_dces -INSERT INTO SEN_DCE VALUES (\ - .if ( "un-initialized" == "${sen_dce.Id}" ) +.select many sr_ms from instances of SR_M +.for each sr_m in sr_ms +INSERT INTO SR_M VALUES (\ + .if ( "un-initialized" == "${sr_m.Id}" ) 0\ .else - ${sen_dce.Id}\ + ${sr_m.Id}\ .end if - ); -.end for -.select many sen_des from instances of SEN_DE -.for each sen_de in sen_des -INSERT INTO SEN_DE VALUES (\ - .if ( "un-initialized" == "${sen_de.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${sr_m.Result_Id}" ) +, 0\ .else - ${sen_de.Id}\ +, ${sr_m.Result_Id}\ .end if ); .end for -.select many sen_res from instances of SEN_RE -.for each sen_re in sen_res -INSERT INTO SEN_RE VALUES (\ - .if ( "un-initialized" == "${sen_re.Id}" ) +.select many sr_cms from instances of SR_CM +.for each sr_cm in sr_cms +INSERT INTO SR_CM VALUES (\ + .if ( "un-initialized" == "${sr_cm.Id}" ) 0\ .else - ${sen_re.Id}\ + ${sr_cm.Id}\ .end if - ); +, ${sr_cm.startPosition}, ${sr_cm.matchLength} ); .end for -.select many sen_es from instances of SEN_E -.for each sen_e in sen_es -INSERT INTO SEN_E VALUES (\ - .if ( "un-initialized" == "${sen_e.Id}" ) +.select many sr_nms from instances of SR_NM +.for each sr_nm in sr_nms +INSERT INTO SR_NM VALUES (\ + .if ( "un-initialized" == "${sr_nm.Id}" ) 0\ .else - ${sen_e.Id}\ + ${sr_nm.Id}\ .end if - ); +, ${sr_nm.Unnamed Attribute} ); .end for -.print "Participation" -.select many sp_alss from instances of SP_ALS -.for each sp_als in sp_alss -INSERT INTO SP_ALS VALUES (\ - .if ( "un-initialized" == "${sp_als.Id}" ) +.select many sr_cmrs from instances of SR_CMR +.for each sr_cmr in sr_cmrs +INSERT INTO SR_CMR VALUES (\ + .if ( "un-initialized" == "${sr_cmr.Id}" ) 0\ .else - ${sp_als.Id}\ + ${sr_cmr.Id}\ .end if -, '${sp_als.searchableValue}' ); +, ${sr_cmr.startPosition}, ${sr_cmr.length} ); .end for -.select many sp_dss from instances of SP_DS -.for each sp_ds in sp_dss -INSERT INTO SP_DS VALUES (\ - .if ( "un-initialized" == "${sp_ds.Id}" ) +.print "Search" +.print "Sequence" +.select many sq_ss from instances of SQ_S +.for each sq_s in sq_ss +INSERT INTO SQ_S VALUES (\ + .if ( "un-initialized" == "${sq_s.Package_ID}" ) 0\ .else - ${sp_ds.Id}\ + ${sq_s.Package_ID}\ .end if -, '${sp_ds.searchableValue}' ); -.end for -.select many sp_nss from instances of SP_NS -.for each sp_ns in sp_nss -INSERT INTO SP_NS VALUES (\ - .if ( "un-initialized" == "${sp_ns.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${sq_s.Dom_ID}" ) +, 0\ .else - ${sp_ns.Id}\ +, ${sq_s.Dom_ID}\ .end if -, '${sp_ns.searchableValue}' ); -.end for -.select many sp_sps from instances of SP_SP -.for each sp_sp in sp_sps -INSERT INTO SP_SP VALUES (\ - .if ( "un-initialized" == "${sp_sp.Id}" ) - 0\ +, '${sq_s.Name}'\ + .if ( "un-initialized" == "${sq_s.SS_ID}" ) +, 0\ .else - ${sp_sp.Id}\ +, ${sq_s.SS_ID}\ .end if \ - .if ( "un-initialized" == "${sp_sp.Engine_Id}" ) + .if ( "un-initialized" == "${sq_s.Prev_Package_ID}" ) , 0\ .else -, ${sp_sp.Engine_Id}\ - .end if - ); -.end for -.select many sp_ses from instances of SP_SE -.for each sp_se in sp_ses -INSERT INTO SP_SE VALUES (\ - .if ( "un-initialized" == "${sp_se.Id}" ) - 0\ - .else - ${sp_se.Id}\ +, ${sq_s.Prev_Package_ID}\ .end if +, ''\ \ - .if ( "un-initialized" == "${sp_se.Participant_Id}" ) + .if ( "un-initialized" == "${sq_s.Sys_ID}" ) , 0\ .else -, ${sp_se.Participant_Id}\ +, ${sq_s.Sys_ID}\ .end if -, '${sp_se.modelRootId}', '${sp_se.className}', ${sp_se.elementId} ); -.end for -.print "Query" -.select many squ_as from instances of SQU_A -.for each squ_a in squ_as -INSERT INTO SQU_A VALUES (\ - .if ( "un-initialized" == "${squ_a.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${sq_s.Component_Package_ID}" ) +, 0\ .else - ${squ_a.Id}\ +, ${sq_s.Component_Package_ID}\ .end if - ); -.end for -.select many squ_ds from instances of SQU_D -.for each squ_d in squ_ds -INSERT INTO SQU_D VALUES (\ - .if ( "un-initialized" == "${squ_d.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${sq_s.Component_Id}" ) +, 0\ .else - ${squ_d.Id}\ +, ${sq_s.Component_Id}\ .end if ); .end for -.select many squ_des from instances of SQU_DE -.for each squ_de in squ_des -INSERT INTO SQU_DE VALUES (\ - .if ( "un-initialized" == "${squ_de.Id}" ) +.select many sq_siss from instances of SQ_SIS +.for each sq_sis in sq_siss +INSERT INTO SQ_SIS VALUES (\ + .if ( "un-initialized" == "${sq_sis.Package_ID}" ) 0\ .else - ${squ_de.Id}\ + ${sq_sis.Package_ID}\ .end if ); .end for -.select many squ_qs from instances of SQU_Q -.for each squ_q in squ_qs -INSERT INTO SQU_Q VALUES (\ - .if ( "un-initialized" == "${squ_q.Id}" ) +.select many sq_miss from instances of SQ_MIS +.for each sq_mis in sq_miss +INSERT INTO SQ_MIS VALUES (\ + .if ( "un-initialized" == "${sq_mis.Msg_ID}" ) 0\ .else - ${squ_q.Id}\ + ${sq_mis.Msg_ID}\ .end if \ - .if ( "un-initialized" == "${squ_q.Engine_Id}" ) + .if ( "un-initialized" == "${sq_mis.Package_ID}" ) , 0\ .else -, ${squ_q.Engine_Id}\ - .end if -, '${squ_q.pattern}', ${squ_q.regEx}, ${squ_q.caseSensitive}, ${squ_q.scope} ); -.end for -.select many squ_rs from instances of SQU_R -.for each squ_r in squ_rs -INSERT INTO SQU_R VALUES (\ - .if ( "un-initialized" == "${squ_r.Id}" ) - 0\ - .else - ${squ_r.Id}\ +, ${sq_mis.Package_ID}\ .end if ); .end for -.print "Result" -.select many sr_cmrs from instances of SR_CMR -.for each sr_cmr in sr_cmrs -INSERT INTO SR_CMR VALUES (\ - .if ( "un-initialized" == "${sr_cmr.Id}" ) - 0\ - .else - ${sr_cmr.Id}\ - .end if -, ${sr_cmr.startPosition}, ${sr_cmr.length} ); -.end for -.select many sr_cms from instances of SR_CM -.for each sr_cm in sr_cms -INSERT INTO SR_CM VALUES (\ - .if ( "un-initialized" == "${sr_cm.Id}" ) +.print "Signal Provisions and Requirements" +.select many spr_reps from instances of SPR_REP +.for each spr_rep in spr_reps +INSERT INTO SPR_REP VALUES (\ + .if ( "un-initialized" == "${spr_rep.Id}" ) 0\ .else - ${sr_cm.Id}\ + ${spr_rep.Id}\ .end if -, ${sr_cm.startPosition}, ${sr_cm.matchLength} ); -.end for -.select many sr_ms from instances of SR_M -.for each sr_m in sr_ms -INSERT INTO SR_M VALUES (\ - .if ( "un-initialized" == "${sr_m.Id}" ) - 0\ +\ + .if ( "un-initialized" == "${spr_rep.ExecutableProperty_Id}" ) +, 0\ .else - ${sr_m.Id}\ +, ${spr_rep.ExecutableProperty_Id}\ .end if \ - .if ( "un-initialized" == "${sr_m.Result_Id}" ) + .if ( "un-initialized" == "${spr_rep.Requirement_Id}" ) , 0\ .else -, ${sr_m.Result_Id}\ +, ${spr_rep.Requirement_Id}\ .end if ); .end for -.select many sr_nms from instances of SR_NM -.for each sr_nm in sr_nms -INSERT INTO SR_NM VALUES (\ - .if ( "un-initialized" == "${sr_nm.Id}" ) - 0\ - .else - ${sr_nm.Id}\ - .end if -, ${sr_nm.Unnamed Attribute} ); -.end for -.select many sr_srs from instances of SR_SR -.for each sr_sr in sr_srs -INSERT INTO SR_SR VALUES (\ - .if ( "un-initialized" == "${sr_sr.Id}" ) +.select many spr_peps from instances of SPR_PEP +.for each spr_pep in spr_peps +INSERT INTO SPR_PEP VALUES (\ + .if ( "un-initialized" == "${spr_pep.Id}" ) 0\ .else - ${sr_sr.Id}\ + ${spr_pep.Id}\ .end if \ - .if ( "un-initialized" == "${sr_sr.Engine_Id}" ) + .if ( "un-initialized" == "${spr_pep.ExecutableProperty_Id}" ) , 0\ .else -, ${sr_sr.Engine_Id}\ +, ${spr_pep.ExecutableProperty_Id}\ .end if \ - .if ( "un-initialized" == "${sr_sr.MatchedParticipant_Id}" ) + .if ( "un-initialized" == "${spr_pep.Provision_Id}" ) , 0\ .else -, ${sr_sr.MatchedParticipant_Id}\ +, ${spr_pep.Provision_Id}\ .end if ); .end for -.print "Translation Extensions" -.select many te_abas from instances of TE_ABA -.for each te_aba in te_abas -INSERT INTO TE_ABA VALUES (\ - .if ( "un-initialized" == "${te_aba.AbaID}" ) +.select many spr_ros from instances of SPR_RO +.for each spr_ro in spr_ros +INSERT INTO SPR_RO VALUES (\ + .if ( "un-initialized" == "${spr_ro.Id}" ) 0\ .else - ${te_aba.AbaID}\ + ${spr_ro.Id}\ .end if -, '${te_aba.subtypeKL}'\ - .if ( "un-initialized" == "${te_aba.te_cID}" ) -, 0\ +, '${spr_ro.Name}', ''\ +, ''\ +, ${spr_ro.Suc_Pars} ); +.end for +.select many spr_rss from instances of SPR_RS +.for each spr_rs in spr_rss +INSERT INTO SPR_RS VALUES (\ + .if ( "un-initialized" == "${spr_rs.Id}" ) + 0\ .else -, ${te_aba.te_cID}\ + ${spr_rs.Id}\ .end if -, ${te_aba.SelfEventCount}, ${te_aba.NonSelfEventCount}, '${te_aba.ParameterDeclaration}', '${te_aba.ParameterDefinition}', '${te_aba.ParameterStructure}', '${te_aba.ParameterTrace}', '${te_aba.ParameterFormat}', '${te_aba.ParameterInvocation}', '${te_aba.ParameterAssignment}', '${te_aba.ParameterAssignmentBase}', '${te_aba.scope}', '${te_aba.GeneratedName}', '${te_aba.ReturnDataType}', ${te_aba.dimensions}\ - .if ( "un-initialized" == "${te_aba.te_dimID}" ) -, 0\ +, '${spr_rs.Name}', ''\ +, ''\ +, ${spr_rs.Suc_Pars} ); +.end for +.select many spr_pos from instances of SPR_PO +.for each spr_po in spr_pos +INSERT INTO SPR_PO VALUES (\ + .if ( "un-initialized" == "${spr_po.Id}" ) + 0\ .else -, ${te_aba.te_dimID}\ + ${spr_po.Id}\ .end if -, '${te_aba.array_spec}', '${te_aba.code}' ); +, '${spr_po.Name}', ''\ +, ''\ +, ${spr_po.Suc_Pars} ); .end for -.select many te_cias from instances of TE_CIA -.for each te_cia in te_cias -INSERT INTO TE_CIA VALUES ( '${te_cia.class_info_name}', '${te_cia.class_info_type}', '${te_cia.active_count}', '${te_cia.class_count}', '${te_cia.count_type}' ); +.select many spr_pss from instances of SPR_PS +.for each spr_ps in spr_pss +INSERT INTO SPR_PS VALUES (\ + .if ( "un-initialized" == "${spr_ps.Id}" ) + 0\ + .else + ${spr_ps.Id}\ + .end if +, '${spr_ps.Name}', ''\ +, ''\ +, ${spr_ps.Suc_Pars} ); .end for -.select many te_cis from instances of TE_CI -.for each te_ci in te_cis -INSERT INTO TE_CI VALUES (\ - .if ( "un-initialized" == "${te_ci.ID}" ) +.print "State Machine" +.select many sm_sms from instances of SM_SM +.for each sm_sm in sm_sms +INSERT INTO SM_SM VALUES (\ + .if ( "un-initialized" == "${sm_sm.SM_ID}" ) 0\ .else - ${te_ci.ID}\ + ${sm_sm.SM_ID}\ .end if -, '${te_ci.Name}', '${te_ci.ClassifierName}', '${te_ci.template_parameter_values}'\ - .if ( "un-initialized" == "${te_ci.te_cID}" ) -, 0\ +, ''\ +, ${sm_sm.Config_ID} ); +.end for +.select many sm_states from instances of SM_STATE +.for each sm_state in sm_states +INSERT INTO SM_STATE VALUES (\ + .if ( "un-initialized" == "${sm_state.SMstt_ID}" ) + 0\ .else -, ${te_ci.te_cID}\ + ${sm_state.SMstt_ID}\ .end if \ - .if ( "un-initialized" == "${te_ci.cl_icId}" ) + .if ( "un-initialized" == "${sm_state.SM_ID}" ) , 0\ .else -, ${te_ci.cl_icId}\ +, ${sm_state.SM_ID}\ .end if - ); -.end for -.select many te_disps from instances of TE_DISP -.for each te_disp in te_disps -INSERT INTO TE_DISP VALUES ( ${te_disp.Dispatcher_ID}, ${te_disp.SystemID}, '${te_disp.Name}', ''\ - ); -.end for -.select many te_dcis from instances of TE_DCI -.for each te_dci in te_dcis -INSERT INTO TE_DCI VALUES (\ - .if ( "un-initialized" == "${te_dci.te_cID}" ) - 0\ +\ + .if ( "un-initialized" == "${sm_state.SMspd_ID}" ) +, 0\ .else - ${te_dci.te_cID}\ +, ${sm_state.SMspd_ID}\ .end if -, '${te_dci.class_numbers}', '${te_dci.union}', '${te_dci.task_list}', '${te_dci.task_numbers}', '${te_dci.max}', '${te_dci.max_models}', '${te_dci.init}', '${te_dci.array_name}' ); +, '${sm_state.Name}', ${sm_state.Numb}, ${sm_state.Final} ); .end for -.select many te_acts from instances of TE_ACT -.for each te_act in te_acts -INSERT INTO TE_ACT VALUES (\ - .if ( "un-initialized" == "${te_act.AbaID}" ) +.select many sm_evts from instances of SM_EVT +.for each sm_evt in sm_evts +INSERT INTO SM_EVT VALUES (\ + .if ( "un-initialized" == "${sm_evt.SMevt_ID}" ) 0\ .else - ${te_act.AbaID}\ - .end if -, '${te_act.GeneratedName}', ${te_act.number}\ - .if ( "un-initialized" == "${te_act.SM_ID}" ) -, 0\ - .else -, ${te_act.SM_ID}\ + ${sm_evt.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_act.Act_ID}" ) + .if ( "un-initialized" == "${sm_evt.SM_ID}" ) , 0\ .else -, ${te_act.Act_ID}\ +, ${sm_evt.SM_ID}\ .end if - ); -.end for -.select many te_pars from instances of TE_PAR -.for each te_par in te_pars -INSERT INTO TE_PAR VALUES ( '${te_par.Name}', ${te_par.By_Ref}, '${te_par.buffer}'\ - .if ( "un-initialized" == "${te_par.Value_ID}" ) +\ + .if ( "un-initialized" == "${sm_evt.SMspd_ID}" ) , 0\ .else -, ${te_par.Value_ID}\ +, ${sm_evt.SMspd_ID}\ .end if +, ${sm_evt.Numb}, '${sm_evt.Mning}', ${sm_evt.Is_Lbl_U}, '${sm_evt.Unq_Lbl}', '${sm_evt.Drv_Lbl}', ''\ ); .end for -.select many te_attrs from instances of TE_ATTR -.for each te_attr in te_attrs -INSERT INTO TE_ATTR VALUES (\ - .if ( "un-initialized" == "${te_attr.ID}" ) +.select many sm_semes from instances of SM_SEME +.for each sm_seme in sm_semes +INSERT INTO SM_SEME VALUES (\ + .if ( "un-initialized" == "${sm_seme.SMstt_ID}" ) 0\ .else - ${te_attr.ID}\ - .end if -, ${te_attr.Used}, ${te_attr.read}, ${te_attr.written}, ${te_attr.Included}, ${te_attr.Order}, '${te_attr.ParamBuffer}', '${te_attr.Name}', '${te_attr.GeneratedName}', '${te_attr.DefaultValue}', ${te_attr.translate}, ${te_attr.dimensions}\ - .if ( "un-initialized" == "${te_attr.te_dimID}" ) -, 0\ - .else -, ${te_attr.te_dimID}\ + ${sm_seme.SMstt_ID}\ .end if -, '${te_attr.array_spec}', '${te_attr.te_classGeneratedName}', '${te_attr.GeneratedType}'\ - .if ( "un-initialized" == "${te_attr.prevID}" ) +\ + .if ( "un-initialized" == "${sm_seme.SMevt_ID}" ) , 0\ .else -, ${te_attr.prevID}\ +, ${sm_seme.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_attr.Attr_ID}" ) + .if ( "un-initialized" == "${sm_seme.SM_ID}" ) , 0\ .else -, ${te_attr.Attr_ID}\ +, ${sm_seme.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_attr.Obj_ID}" ) + .if ( "un-initialized" == "${sm_seme.SMspd_ID}" ) , 0\ .else -, ${te_attr.Obj_ID}\ +, ${sm_seme.SMspd_ID}\ .end if ); .end for -.select many te_brgs from instances of TE_BRG -.for each te_brg in te_brgs -INSERT INTO TE_BRG VALUES ( '${te_brg.EEname}', '${te_brg.EEkeyletters}', '${te_brg.Name}', '${te_brg.GeneratedName}'\ - .if ( "un-initialized" == "${te_brg.AbaID}" ) -, 0\ +.select many sm_nstxns from instances of SM_NSTXN +.for each sm_nstxn in sm_nstxns +INSERT INTO SM_NSTXN VALUES (\ + .if ( "un-initialized" == "${sm_nstxn.Trans_ID}" ) + 0\ .else -, ${te_brg.AbaID}\ + ${sm_nstxn.Trans_ID}\ .end if \ - .if ( "un-initialized" == "${te_brg.Brg_ID}" ) + .if ( "un-initialized" == "${sm_nstxn.SM_ID}" ) , 0\ .else -, ${te_brg.Brg_ID}\ +, ${sm_nstxn.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_brg.EE_ID}" ) + .if ( "un-initialized" == "${sm_nstxn.SMstt_ID}" ) , 0\ .else -, ${te_brg.EE_ID}\ +, ${sm_nstxn.SMstt_ID}\ .end if - ); -.end for -.select many te_classs from instances of TE_CLASS -.for each te_class in te_classs -INSERT INTO TE_CLASS VALUES ( '${te_class.Name}', ${te_class.Numb}, '${te_class.Key_Lett}', '${te_class.GeneratedName}', '${te_class.CBGeneratedName}', ${te_class.Included}, ${te_class.PEIsDefinedInData}, ${te_class.IsFixedPopulation}, ${te_class.IsReadOnly}, ${te_class.ExcludeFromGen}, ${te_class.MaxExtentSize}, ${te_class.SelfCreated}, ${te_class.NonSelfCreated}, ${te_class.Persistent}, ${te_class.Order}, ${te_class.IsTrace}, ${te_class.ContainerIndex}, ${te_class.Task}, '${te_class.class_file}', '${te_class.system_class_number}', '${te_class.CBsystem_class_number}', '${te_class.persist_link}', '${te_class.dispatcher}', '${te_class.CBdispatcher}', '${te_class.attribute_format}', '${te_class.attribute_dump}'\ - .if ( "un-initialized" == "${te_class.te_cID}" ) +\ + .if ( "un-initialized" == "${sm_nstxn.SMevt_ID}" ) , 0\ .else -, ${te_class.te_cID}\ +, ${sm_nstxn.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_class.Obj_ID}" ) + .if ( "un-initialized" == "${sm_nstxn.SMspd_ID}" ) , 0\ .else -, ${te_class.Obj_ID}\ +, ${sm_nstxn.SMspd_ID}\ .end if ); .end for -.select many te_cs from instances of TE_C -.for each te_c in te_cs -INSERT INTO TE_C VALUES (\ - .if ( "un-initialized" == "${te_c.ID}" ) +.select many sm_eigns from instances of SM_EIGN +.for each sm_eign in sm_eigns +INSERT INTO SM_EIGN VALUES (\ + .if ( "un-initialized" == "${sm_eign.SMstt_ID}" ) 0\ .else - ${te_c.ID}\ + ${sm_eign.SMstt_ID}\ .end if -, '${te_c.Name}', ''\ -, ${te_c.number}, ${te_c.StateTrace}, ${te_c.StmtTrace}, ${te_c.DetectEmpty}, ${te_c.OptDisabled}, ${te_c.RawComments}, ${te_c.CodeComments}, ${te_c.CollectionsFlavor}, '${te_c.classes_file}', '${te_c.functions_file}', ${te_c.MaxObjExtent}, ${te_c.MaxRelExtent}, ${te_c.MaxSelectExtent}, ${te_c.MaxSelfEvents}, ${te_c.MaxNonSelfEvents}, ${te_c.MaxPriorityEvents}, ${te_c.MaxTimers}, ${te_c.InterleavedBridges}, ${te_c.PEIClassCount}, ${te_c.PersistentClassCount}, '${te_c.domain_mark_file}', '${te_c.class_mark_file}', '${te_c.events_mark_file}', '${te_c.module_file}', '${te_c.port_file}', '${te_c.include_file}', ${te_c.included_in_build}, ${te_c.internal_behavior}, ${te_c.isRealized}, ${te_c.SystemID}\ - .if ( "un-initialized" == "${te_c.Dom_ID}" ) +\ + .if ( "un-initialized" == "${sm_eign.SMevt_ID}" ) , 0\ .else -, ${te_c.Dom_ID}\ +, ${sm_eign.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_c.cId}" ) + .if ( "un-initialized" == "${sm_eign.SM_ID}" ) , 0\ .else -, ${te_c.cId}\ +, ${sm_eign.SM_ID}\ + .end if +\ + .if ( "un-initialized" == "${sm_eign.SMspd_ID}" ) +, 0\ + .else +, ${sm_eign.SMspd_ID}\ .end if +, ''\ ); .end for -.select many te_dts from instances of TE_DT -.for each te_dt in te_dts -INSERT INTO TE_DT VALUES (\ - .if ( "un-initialized" == "${te_dt.ID}" ) +.select many sm_chs from instances of SM_CH +.for each sm_ch in sm_chs +INSERT INTO SM_CH VALUES (\ + .if ( "un-initialized" == "${sm_ch.SMstt_ID}" ) 0\ .else - ${te_dt.ID}\ + ${sm_ch.SMstt_ID}\ .end if -, '${te_dt.Name}', ${te_dt.Core_Typ}, ${te_dt.Included}, '${te_dt.ExtName}', '${te_dt.Include_File}', '${te_dt.Initial_Value}', '${te_dt.Value}', ${te_dt.Is_Enum}, '${te_dt.Owning_Dom_Name}', '${te_dt.string_format}', ${te_dt.generated}\ - .if ( "un-initialized" == "${te_dt.te_cID}" ) +\ + .if ( "un-initialized" == "${sm_ch.SMevt_ID}" ) , 0\ .else -, ${te_dt.te_cID}\ +, ${sm_ch.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_dt.DT_ID}" ) + .if ( "un-initialized" == "${sm_ch.SM_ID}" ) , 0\ .else -, ${te_dt.DT_ID}\ +, ${sm_ch.SM_ID}\ .end if - ); -.end for -.select many te_dbattrs from instances of TE_DBATTR -.for each te_dbattr in te_dbattrs -INSERT INTO TE_DBATTR VALUES ( ${te_dbattr.Included}\ - .if ( "un-initialized" == "${te_dbattr.AbaID}" ) +\ + .if ( "un-initialized" == "${sm_ch.SMspd_ID}" ) , 0\ .else -, ${te_dbattr.AbaID}\ +, ${sm_ch.SMspd_ID}\ .end if -, '${te_dbattr.GeneratedName}'\ - .if ( "un-initialized" == "${te_dbattr.Attr_ID}" ) +, ''\ + ); +.end for +.select many sm_txns from instances of SM_TXN +.for each sm_txn in sm_txns +INSERT INTO SM_TXN VALUES (\ + .if ( "un-initialized" == "${sm_txn.Trans_ID}" ) + 0\ + .else + ${sm_txn.Trans_ID}\ + .end if +\ + .if ( "un-initialized" == "${sm_txn.SM_ID}" ) , 0\ .else -, ${te_dbattr.Attr_ID}\ +, ${sm_txn.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_dbattr.Obj_ID}" ) + .if ( "un-initialized" == "${sm_txn.SMstt_ID}" ) , 0\ .else -, ${te_dbattr.Obj_ID}\ +, ${sm_txn.SMstt_ID}\ + .end if +\ + .if ( "un-initialized" == "${sm_txn.SMspd_ID}" ) +, 0\ + .else +, ${sm_txn.SMspd_ID}\ .end if ); .end for -.select many te_dims from instances of TE_DIM -.for each te_dim in te_dims -INSERT INTO TE_DIM VALUES (\ - .if ( "un-initialized" == "${te_dim.te_dimID}" ) +.select many sm_netxns from instances of SM_NETXN +.for each sm_netxn in sm_netxns +INSERT INTO SM_NETXN VALUES (\ + .if ( "un-initialized" == "${sm_netxn.Trans_ID}" ) 0\ .else - ${te_dim.te_dimID}\ + ${sm_netxn.Trans_ID}\ .end if -, ${te_dim.elementCount}, ${te_dim.dimensionCount}\ - .if ( "un-initialized" == "${te_dim.next_te_dimID}" ) +\ + .if ( "un-initialized" == "${sm_netxn.SM_ID}" ) , 0\ .else -, ${te_dim.next_te_dimID}\ +, ${sm_netxn.SM_ID}\ .end if - ); -.end for -.select many te_enums from instances of TE_ENUM -.for each te_enum in te_enums -INSERT INTO TE_ENUM VALUES ( '${te_enum.Name}', '${te_enum.Value}', ${te_enum.Order}, '${te_enum.GeneratedName}'\ - .if ( "un-initialized" == "${te_enum.Enum_ID}" ) +\ + .if ( "un-initialized" == "${sm_netxn.SMstt_ID}" ) , 0\ .else -, ${te_enum.Enum_ID}\ +, ${sm_netxn.SMstt_ID}\ + .end if +\ + .if ( "un-initialized" == "${sm_netxn.SMspd_ID}" ) +, 0\ + .else +, ${sm_netxn.SMspd_ID}\ .end if ); .end for -.select many te_evts from instances of TE_EVT -.for each te_evt in te_evts -INSERT INTO TE_EVT VALUES (\ - .if ( "un-initialized" == "${te_evt.ID}" ) +.select many sm_crtxns from instances of SM_CRTXN +.for each sm_crtxn in sm_crtxns +INSERT INTO SM_CRTXN VALUES (\ + .if ( "un-initialized" == "${sm_crtxn.Trans_ID}" ) 0\ .else - ${te_evt.ID}\ + ${sm_crtxn.Trans_ID}\ .end if -, '${te_evt.Name}', ${te_evt.Numb}, '${te_evt.GeneratedName}', '${te_evt.Enumerator}', ${te_evt.Order}, ${te_evt.Used}, ${te_evt.UsedCount}, ${te_evt.Priority}\ - .if ( "un-initialized" == "${te_evt.SM_ID}" ) +\ + .if ( "un-initialized" == "${sm_crtxn.SM_ID}" ) , 0\ .else -, ${te_evt.SM_ID}\ +, ${sm_crtxn.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_evt.SMevt_ID}" ) + .if ( "un-initialized" == "${sm_crtxn.SMevt_ID}" ) , 0\ .else -, ${te_evt.SMevt_ID}\ +, ${sm_crtxn.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_evt.te_smID}" ) + .if ( "un-initialized" == "${sm_crtxn.SMspd_ID}" ) , 0\ .else -, ${te_evt.te_smID}\ +, ${sm_crtxn.SMspd_ID}\ .end if ); .end for -.select many te_ees from instances of TE_EE -.for each te_ee in te_ees -INSERT INTO TE_EE VALUES ( '${te_ee.Name}', '${te_ee.RegisteredName}', '${te_ee.Key_Lett}', ''\ -, ${te_ee.Included}, '${te_ee.file}', '${te_ee.Include_File}', ${te_ee.Used}\ - .if ( "un-initialized" == "${te_ee.te_cID}" ) -, 0\ +.select many sm_moores from instances of SM_MOORE +.for each sm_moore in sm_moores +INSERT INTO SM_MOORE VALUES (\ + .if ( "un-initialized" == "${sm_moore.SM_ID}" ) + 0\ .else -, ${te_ee.te_cID}\ + ${sm_moore.SM_ID}\ .end if -\ - .if ( "un-initialized" == "${te_ee.EE_ID}" ) -, 0\ + ); +.end for +.select many sm_mealys from instances of SM_MEALY +.for each sm_mealy in sm_mealys +INSERT INTO SM_MEALY VALUES (\ + .if ( "un-initialized" == "${sm_mealy.SM_ID}" ) + 0\ .else -, ${te_ee.EE_ID}\ + ${sm_mealy.SM_ID}\ .end if ); .end for -.select many te_syncs from instances of TE_SYNC -.for each te_sync in te_syncs -INSERT INTO TE_SYNC VALUES ( '${te_sync.Name}', ${te_sync.Included}, ${te_sync.IsInitFunction}, ${te_sync.IsSafeForInterrupts}, ${te_sync.XlateSemantics}, ${te_sync.Order}\ - .if ( "un-initialized" == "${te_sync.AbaID}" ) -, 0\ +.select many sm_moahs from instances of SM_MOAH +.for each sm_moah in sm_moahs +INSERT INTO SM_MOAH VALUES (\ + .if ( "un-initialized" == "${sm_moah.Act_ID}" ) + 0\ .else -, ${te_sync.AbaID}\ + ${sm_moah.Act_ID}\ .end if -, '${te_sync.GeneratedName}', '${te_sync.intraface_method}', '${te_sync.deferred_method}'\ - .if ( "un-initialized" == "${te_sync.te_cID}" ) +\ + .if ( "un-initialized" == "${sm_moah.SM_ID}" ) , 0\ .else -, ${te_sync.te_cID}\ +, ${sm_moah.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_sync.Sync_ID}" ) + .if ( "un-initialized" == "${sm_moah.SMstt_ID}" ) , 0\ .else -, ${te_sync.Sync_ID}\ +, ${sm_moah.SMstt_ID}\ .end if ); .end for -.select many te_mbrs from instances of TE_MBR -.for each te_mbr in te_mbrs -INSERT INTO TE_MBR VALUES (\ - .if ( "un-initialized" == "${te_mbr.ID}" ) +.select many sm_meahs from instances of SM_MEAH +.for each sm_meah in sm_meahs +INSERT INTO SM_MEAH VALUES (\ + .if ( "un-initialized" == "${sm_meah.Act_ID}" ) 0\ .else - ${te_mbr.ID}\ - .end if -, '${te_mbr.Name}', '${te_mbr.GeneratedName}', ${te_mbr.dimensions}\ - .if ( "un-initialized" == "${te_mbr.te_dimID}" ) -, 0\ - .else -, ${te_mbr.te_dimID}\ + ${sm_meah.Act_ID}\ .end if -, '${te_mbr.array_spec}'\ - .if ( "un-initialized" == "${te_mbr.previousID}" ) +\ + .if ( "un-initialized" == "${sm_meah.SM_ID}" ) , 0\ .else -, ${te_mbr.previousID}\ +, ${sm_meah.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_mbr.te_dtID}" ) + .if ( "un-initialized" == "${sm_meah.Trans_ID}" ) , 0\ .else -, ${te_mbr.te_dtID}\ +, ${sm_meah.Trans_ID}\ .end if -\ - .if ( "un-initialized" == "${te_mbr.Member_ID}" ) -, 0\ + ); +.end for +.select many sm_ahs from instances of SM_AH +.for each sm_ah in sm_ahs +INSERT INTO SM_AH VALUES (\ + .if ( "un-initialized" == "${sm_ah.Act_ID}" ) + 0\ .else -, ${te_mbr.Member_ID}\ + ${sm_ah.Act_ID}\ .end if \ - .if ( "un-initialized" == "${te_mbr.DT_ID}" ) + .if ( "un-initialized" == "${sm_ah.SM_ID}" ) , 0\ .else -, ${te_mbr.DT_ID}\ +, ${sm_ah.SM_ID}\ .end if ); .end for -.select many te_macts from instances of TE_MACT -.for each te_mact in te_macts -INSERT INTO TE_MACT VALUES (\ - .if ( "un-initialized" == "${te_mact.AbaID}" ) +.select many sm_acts from instances of SM_ACT +.for each sm_act in sm_acts +INSERT INTO SM_ACT VALUES (\ + .if ( "un-initialized" == "${sm_act.Act_ID}" ) 0\ .else - ${te_mact.AbaID}\ + ${sm_act.Act_ID}\ .end if \ - .if ( "un-initialized" == "${te_mact.ID}" ) + .if ( "un-initialized" == "${sm_act.SM_ID}" ) , 0\ .else -, ${te_mact.ID}\ +, ${sm_act.SM_ID}\ .end if -, '${te_mact.Name}', ''\ -, '${te_mact.GeneratedName}', '${te_mact.ComponentName}', '${te_mact.DomainName}', '${te_mact.PortName}', '${te_mact.InterfaceName}', '${te_mact.MessageName}', ${te_mact.Direction}, ${te_mact.Provision}, '${te_mact.subtypeKL}', ${te_mact.polymorphic}, ${te_mact.trace}, ${te_mact.Order}\ - .if ( "un-initialized" == "${te_mact.SPR_POId}" ) -, 0\ +, ${sm_act.Suc_Pars}, ''\ +, ''\ + ); +.end for +.select many sm_evtdis from instances of SM_EVTDI +.for each sm_evtdi in sm_evtdis +INSERT INTO SM_EVTDI VALUES (\ + .if ( "un-initialized" == "${sm_evtdi.SMedi_ID}" ) + 0\ .else -, ${te_mact.SPR_POId}\ + ${sm_evtdi.SMedi_ID}\ .end if \ - .if ( "un-initialized" == "${te_mact.SPR_PSId}" ) + .if ( "un-initialized" == "${sm_evtdi.SM_ID}" ) , 0\ .else -, ${te_mact.SPR_PSId}\ +, ${sm_evtdi.SM_ID}\ .end if +, '${sm_evtdi.Name}', ''\ \ - .if ( "un-initialized" == "${te_mact.SPR_ROId}" ) + .if ( "un-initialized" == "${sm_evtdi.DT_ID}" ) , 0\ .else -, ${te_mact.SPR_ROId}\ +, ${sm_evtdi.DT_ID}\ .end if -\ - .if ( "un-initialized" == "${te_mact.SPR_RSId}" ) +, '${sm_evtdi.Dimensions}'\ + .if ( "un-initialized" == "${sm_evtdi.SMevt_ID}" ) , 0\ .else -, ${te_mact.SPR_RSId}\ +, ${sm_evtdi.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_mact.te_cID}" ) + .if ( "un-initialized" == "${sm_evtdi.Previous_SMedi_ID}" ) , 0\ .else -, ${te_mact.te_cID}\ +, ${sm_evtdi.Previous_SMedi_ID}\ + .end if + ); +.end for +.select many sm_supdts from instances of SM_SUPDT +.for each sm_supdt in sm_supdts +INSERT INTO SM_SUPDT VALUES (\ + .if ( "un-initialized" == "${sm_supdt.SMspd_ID}" ) + 0\ + .else + ${sm_supdt.SMspd_ID}\ .end if \ - .if ( "un-initialized" == "${te_mact.te_poID}" ) + .if ( "un-initialized" == "${sm_supdt.SM_ID}" ) , 0\ .else -, ${te_mact.te_poID}\ +, ${sm_supdt.SM_ID}\ + .end if +, ${sm_supdt.Non_Local} ); +.end for +.select many sm_sdis from instances of SM_SDI +.for each sm_sdi in sm_sdis +INSERT INTO SM_SDI VALUES (\ + .if ( "un-initialized" == "${sm_sdi.SMedi_ID}" ) + 0\ + .else + ${sm_sdi.SMedi_ID}\ .end if \ - .if ( "un-initialized" == "${te_mact.te_evtID}" ) + .if ( "un-initialized" == "${sm_sdi.SMspd_ID}" ) , 0\ .else -, ${te_mact.te_evtID}\ +, ${sm_sdi.SMspd_ID}\ .end if \ - .if ( "un-initialized" == "${te_mact.nextID}" ) + .if ( "un-initialized" == "${sm_sdi.SM_ID}" ) , 0\ .else -, ${te_mact.nextID}\ +, ${sm_sdi.SM_ID}\ .end if ); .end for -.select many te_tfrs from instances of TE_TFR -.for each te_tfr in te_tfrs -INSERT INTO TE_TFR VALUES ( ${te_tfr.Included}, ${te_tfr.XlateSemantics}, ${te_tfr.Instance_Based}, '${te_tfr.Key_Lett}', '${te_tfr.Name}', '${te_tfr.GeneratedName}'\ - .if ( "un-initialized" == "${te_tfr.AbaID}" ) -, 0\ - .else -, ${te_tfr.AbaID}\ - .end if -\ - .if ( "un-initialized" == "${te_tfr.Tfr_ID}" ) -, 0\ - .else -, ${te_tfr.Tfr_ID}\ - .end if - ); -.end for -.select many te_parms from instances of TE_PARM -.for each te_parm in te_parms -INSERT INTO TE_PARM VALUES ( '${te_parm.Name}', ''\ -, ${te_parm.Order}, '${te_parm.ParamBuffer}', '${te_parm.OALParamBuffer}'\ - .if ( "un-initialized" == "${te_parm.ID}" ) -, 0\ - .else -, ${te_parm.ID}\ - .end if -\ - .if ( "un-initialized" == "${te_parm.nextID}" ) -, 0\ - .else -, ${te_parm.nextID}\ - .end if -, '${te_parm.GeneratedName}', ${te_parm.By_Ref}\ - .if ( "un-initialized" == "${te_parm.te_dtID}" ) -, 0\ - .else -, ${te_parm.te_dtID}\ - .end if -, ${te_parm.dimensions}\ - .if ( "un-initialized" == "${te_parm.te_dimID}" ) -, 0\ - .else -, ${te_parm.te_dimID}\ - .end if -, '${te_parm.array_spec}'\ - .if ( "un-initialized" == "${te_parm.AbaID}" ) -, 0\ - .else -, ${te_parm.AbaID}\ - .end if -\ - .if ( "un-initialized" == "${te_parm.SM_ID}" ) -, 0\ - .else -, ${te_parm.SM_ID}\ - .end if -\ - .if ( "un-initialized" == "${te_parm.SMedi_ID}" ) -, 0\ - .else -, ${te_parm.SMedi_ID}\ - .end if -\ - .if ( "un-initialized" == "${te_parm.SParm_ID}" ) -, 0\ - .else -, ${te_parm.SParm_ID}\ - .end if -\ - .if ( "un-initialized" == "${te_parm.TParm_ID}" ) -, 0\ - .else -, ${te_parm.TParm_ID}\ - .end if -\ - .if ( "un-initialized" == "${te_parm.PP_Id}" ) -, 0\ +.select many sm_isms from instances of SM_ISM +.for each sm_ism in sm_isms +INSERT INTO SM_ISM VALUES (\ + .if ( "un-initialized" == "${sm_ism.SM_ID}" ) + 0\ .else -, ${te_parm.PP_Id}\ + ${sm_ism.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_parm.BParm_ID}" ) + .if ( "un-initialized" == "${sm_ism.Obj_ID}" ) , 0\ .else -, ${te_parm.BParm_ID}\ +, ${sm_ism.Obj_ID}\ .end if ); .end for -.select many te_pos from instances of TE_PO -.for each te_po in te_pos -INSERT INTO TE_PO VALUES (\ - .if ( "un-initialized" == "${te_po.ID}" ) +.select many sm_asms from instances of SM_ASM +.for each sm_asm in sm_asms +INSERT INTO SM_ASM VALUES (\ + .if ( "un-initialized" == "${sm_asm.SM_ID}" ) 0\ .else - ${te_po.ID}\ - .end if -, '${te_po.Name}', '${te_po.GeneratedName}', '${te_po.InterfaceName}', '${te_po.PackageName}', ${te_po.Provision}, ${te_po.polymorphic}, ${te_po.sibling}, ${te_po.Order}\ - .if ( "un-initialized" == "${te_po.te_cID}" ) -, 0\ - .else -, ${te_po.te_cID}\ - .end if -\ - .if ( "un-initialized" == "${te_po.c_iId}" ) -, 0\ - .else -, ${te_po.c_iId}\ + ${sm_asm.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_po.c_poId}" ) -, 0\ - .else -, ${te_po.c_poId}\ - .end if - ); -.end for -.select many te_rels from instances of TE_REL -.for each te_rel in te_rels -INSERT INTO TE_REL VALUES ( ${te_rel.Numb}, ${te_rel.LinkNeeded}, ${te_rel.UnlinkNeeded}, ${te_rel.Navigated}, ${te_rel.Order}, ${te_rel.storage_needed}\ - .if ( "un-initialized" == "${te_rel.Rel_ID}" ) + .if ( "un-initialized" == "${sm_asm.Obj_ID}" ) , 0\ .else -, ${te_rel.Rel_ID}\ +, ${sm_asm.Obj_ID}\ .end if ); .end for -.select many te_sms from instances of TE_SM -.for each te_sm in te_sms -INSERT INTO TE_SM VALUES (\ - .if ( "un-initialized" == "${te_sm.ID}" ) +.select many sm_pevts from instances of SM_PEVT +.for each sm_pevt in sm_pevts +INSERT INTO SM_PEVT VALUES (\ + .if ( "un-initialized" == "${sm_pevt.SMevt_ID}" ) 0\ .else - ${te_sm.ID}\ - .end if -, ${te_sm.complete}, '${te_sm.initial_state}', '${te_sm.SEMname}', '${te_sm.action_array}', '${te_sm.action_type}', '${te_sm.events_union}', '${te_sm.txn_action_array}', ${te_sm.txn_action_count}, '${te_sm.state_names_array}', ${te_sm.num_states}, ${te_sm.num_events}\ - .if ( "un-initialized" == "${te_sm.SM_ID}" ) -, 0\ - .else -, ${te_sm.SM_ID}\ - .end if -, '${te_sm.te_classGeneratedName}' ); -.end for -.select many te_states from instances of TE_STATE -.for each te_state in te_states -INSERT INTO TE_STATE VALUES ( '${te_state.Name}', '${te_state.enumerator}', ${te_state.Numb}, ${te_state.number}, ${te_state.Order}\ - .if ( "un-initialized" == "${te_state.SM_ID}" ) -, 0\ - .else -, ${te_state.SM_ID}\ + ${sm_pevt.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_state.SMstt_ID}" ) -, 0\ - .else -, ${te_state.SMstt_ID}\ - .end if - ); -.end for -.select many te_syss from instances of TE_SYS -.for each te_sys in te_syss -INSERT INTO TE_SYS VALUES ( ${te_sys.SystemID}, '${te_sys.ModelCompilerName}', '${te_sys.ModelCompilerVersion}', '${te_sys.ModelCompilerSerNum}', '${te_sys.ModelCompilerKey}', '${te_sys.BridgePointLicenseKey}', '${te_sys.ExecutableName}', ${te_sys.MaxStringLen}, ${te_sys.MaxObjExtent}, ${te_sys.MaxRelExtent}, ${te_sys.MaxSelectExtent}, ${te_sys.TotalContainers}, ${te_sys.MaxSelfEvents}, ${te_sys.MaxNonSelfEvents}, ${te_sys.MaxTimers}, ${te_sys.MaxInterleavedBridges}, ${te_sys.MaxInterleavedBridgeDataSize}, ${te_sys.CollectionsFlavor}, ${te_sys.ForcePriorityEvents}, ${te_sys.PEIClassCount}, ${te_sys.PersistentClassCount}, ${te_sys.PersistInstanceCacheDepth}, ${te_sys.PersistLinkCacheDepth}, ${te_sys.UnitsToDynamicallyAllocate}, ${te_sys.InstanceLoading}, '${te_sys.self_name}', '${te_sys.Name}', ${te_sys.AUTOSAR}, ${te_sys.VFB}, '${te_sys.SystemCPortsType}', ${te_sys.AllPortsPoly}, '${te_sys.DomainClassNumberName}'\ - .if ( "un-initialized" == "${te_sys.Sys_ID}" ) + .if ( "un-initialized" == "${sm_pevt.SM_ID}" ) , 0\ .else -, ${te_sys.Sys_ID}\ +, ${sm_pevt.SM_ID}\ .end if - ); -.end for -.select many te_wheres from instances of TE_WHERE -.for each te_where in te_wheres -INSERT INTO TE_WHERE VALUES ( ${te_where.WhereKey}, '${te_where.select_any_where}', ${te_where.Oid_ID}\ - .if ( "un-initialized" == "${te_where.Obj_ID}" ) +\ + .if ( "un-initialized" == "${sm_pevt.SMspd_ID}" ) , 0\ .else -, ${te_where.Obj_ID}\ +, ${sm_pevt.SMspd_ID}\ .end if - ); -.end for -.select many te_snippets from instances of TE_SNIPPET -.for each te_snippet in te_snippets -INSERT INTO TE_SNIPPET VALUES ( '${te_snippet.Index}', '${te_snippet.Body}' ); +, '${sm_pevt.localClassName}', '${sm_pevt.localClassKL}', '${sm_pevt.localEventMning}' ); .end for -.select many te_iirs from instances of TE_IIR -.for each te_iir in te_iirs -INSERT INTO TE_IIR VALUES (\ - .if ( "un-initialized" == "${te_iir.ID}" ) +.select many sm_sevts from instances of SM_SEVT +.for each sm_sevt in sm_sevts +INSERT INTO SM_SEVT VALUES (\ + .if ( "un-initialized" == "${sm_sevt.SMevt_ID}" ) 0\ .else - ${te_iir.ID}\ - .end if -, '${te_iir.component_name}', '${te_iir.port_name}', '${te_iir.interface_name}', ${te_iir.polymorphic}, '${te_iir.template_parameter_values}', '${te_iir.C2C}'\ - .if ( "un-initialized" == "${te_iir.cl_iirId}" ) -, 0\ - .else -, ${te_iir.cl_iirId}\ - .end if -\ - .if ( "un-initialized" == "${te_iir.c_irId}" ) -, 0\ - .else -, ${te_iir.c_irId}\ + ${sm_sevt.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_iir.te_poID}" ) + .if ( "un-initialized" == "${sm_sevt.SM_ID}" ) , 0\ .else -, ${te_iir.te_poID}\ +, ${sm_sevt.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_iir.provider_te_iirID}" ) + .if ( "un-initialized" == "${sm_sevt.SMspd_ID}" ) , 0\ .else -, ${te_iir.provider_te_iirID}\ +, ${sm_sevt.SMspd_ID}\ .end if ); .end for -.select many te_queues from instances of TE_QUEUE -.for each te_queue in te_queues -INSERT INTO TE_QUEUE VALUES ( ${te_queue.Queue_ID}, ${te_queue.Dispatcher_ID}, ${te_queue.Type}, ''\ -, ${te_queue.RenderCode}, ${te_queue.MaxDepth} ); -.end for -.select many te_navs from instances of TE_NAV -.for each te_nav in te_navs -INSERT INTO TE_NAV VALUES ( ${te_nav.NavigatedTo}\ - .if ( "un-initialized" == "${te_nav.OIR_ID}" ) -, 0\ +.select many sm_nlevts from instances of SM_NLEVT +.for each sm_nlevt in sm_nlevts +INSERT INTO SM_NLEVT VALUES (\ + .if ( "un-initialized" == "${sm_nlevt.SMevt_ID}" ) + 0\ .else -, ${te_nav.OIR_ID}\ + ${sm_nlevt.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_nav.Obj_ID}" ) + .if ( "un-initialized" == "${sm_nlevt.SM_ID}" ) , 0\ .else -, ${te_nav.Obj_ID}\ +, ${sm_nlevt.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_nav.Rel_ID}" ) -, 0\ - .else -, ${te_nav.Rel_ID}\ - .end if - ); -.end for -.select many te_swcs from instances of TE_SWC -.for each te_swc in te_swcs -INSERT INTO TE_SWC VALUES ( '${te_swc.Obj_Kl}', '${te_swc.Where_Spec}', '${te_swc.Key}', ${te_swc.Ret_Val}, ${te_swc.Built_In}, ${te_swc.Oid_ID}\ - .if ( "un-initialized" == "${te_swc.Obj_ID}" ) + .if ( "un-initialized" == "${sm_nlevt.SMspd_ID}" ) , 0\ .else -, ${te_swc.Obj_ID}\ - .end if - ); -.end for -.select many te_containers from instances of TE_CONTAINER -.for each te_container in te_containers -INSERT INTO TE_CONTAINER VALUES ( '${te_container.flavor}' ); -.end for -.select many te_copyrights from instances of TE_COPYRIGHT -.for each te_copyright in te_copyrights -INSERT INTO TE_COPYRIGHT VALUES ( '${te_copyright.body}' ); -.end for -.select many te_dlists from instances of TE_DLIST -.for each te_dlist in te_dlists -INSERT INTO TE_DLIST VALUES ( '${te_dlist.flavor}', '${te_dlist.remove_node}' ); -.end for -.select many te_dmas from instances of TE_DMA -.for each te_dma in te_dmas -INSERT INTO TE_DMA VALUES ( '${te_dma.file}', '${te_dma.allocate}', '${te_dma.release}', ${te_dma.debugging_heap} ); -.end for -.select many te_eqs from instances of TE_EQ -.for each te_eq in te_eqs -INSERT INTO TE_EQ VALUES ( '${te_eq.ignored}', '${te_eq.cant_happen}', '${te_eq.system_events_union}', '${te_eq.system_event_pool}', '${te_eq.constant_type}', '${te_eq.base_event_type}', '${te_eq.base_variable}', '${te_eq.max_events}', '${te_eq.max_self_events}', '${te_eq.max_nonself_events}', '${te_eq.new}', '${te_eq.allocate}', '${te_eq.delete}', '${te_eq.modify}', '${te_eq.self}', '${te_eq.non_self}', '${te_eq.search_and_destroy}', '${te_eq.run_flag}', '${te_eq.event_message_variable}', '${te_eq.scope}' ); -.end for -.select many te_extents from instances of TE_EXTENT -.for each te_extent in te_extents -INSERT INTO TE_EXTENT VALUES ( '${te_extent.sets_type}', '${te_extent.type}', '${te_extent.active}', '${te_extent.inactive}', '${te_extent.initializer}', '${te_extent.size_type}', '${te_extent.size_name}', '${te_extent.istate_type}', '${te_extent.istate_name}', '${te_extent.container_type}', '${te_extent.container_name}', '${te_extent.pool_type}', '${te_extent.pool_name}', '${te_extent.population_type}', '${te_extent.population_name}', '${te_extent.rstorsize_type}', '${te_extent.rstorsize_name}', '${te_extent.linkfunc_name}' ); -.end for -.select many te_files from instances of TE_FILE -.for each te_file in te_files -INSERT INTO TE_FILE VALUES ( '${te_file.hdr_file_ext}', '${te_file.src_file_ext}', '${te_file.asm_file_ext}', '${te_file.obj_file_ext}', '${te_file.rpt_file_ext}', '${te_file.sys_main}', '${te_file.factory}', '${te_file.events}', '${te_file.nvs}', '${te_file.nvs_bridge}', '${te_file.sets}', '${te_file.types}', '${te_file.thread}', '${te_file.trace}', '${te_file.tim}', '${te_file.callout}', '${te_file.ilb}', '${te_file.persist}', '${te_file.xtumlload}', '${te_file.interfaces}', '${te_file.registers}', '${te_file.domain_color_path}', '${te_file.domain_source_path}', '${te_file.domain_include_path}', '${te_file.domain_sql_path}', '${te_file.system_source_path}', '${te_file.system_include_path}', '${te_file.system_color_path}', '${te_file.bridge_mark}', '${te_file.registry_mark}', '${te_file.system_mark}', '${te_file.datatype_mark}', '${te_file.event_mark}', '${te_file.class_mark}', '${te_file.domain_mark}', '${te_file.domain_functions_mark}', '${te_file.system_functions_mark}', '${te_file.arc_path}', '${te_file.root_path}' ); -.end for -.select many te_instances from instances of TE_INSTANCE -.for each te_instance in te_instances -INSERT INTO TE_INSTANCE VALUES ( '${te_instance.create}', '${te_instance.create_persistent}', '${te_instance.delete}', '${te_instance.delete_persistent}', '${te_instance.self}', '${te_instance.global_self}', '${te_instance.base}', '${te_instance.handle}', '${te_instance.factory_init}', '${te_instance.base_class}', '${te_instance.max_extent}', '${te_instance.max_association_extent}', '${te_instance.max_transient_extent}', '${te_instance.current_state}', '${te_instance.scope}', '${te_instance.get_dci}', '${te_instance.get_event_dispatcher}', '${te_instance.get_thread_assignment}', '${te_instance.module}' ); -.end for -.select many te_ilbs from instances of TE_ILB -.for each te_ilb in te_ilbs -INSERT INTO TE_ILB VALUES ( '${te_ilb.file}', '${te_ilb.define_name}', '${te_ilb.data_define_name}', '${te_ilb.interleave_bridge}', '${te_ilb.interleave_bridge_done}', '${te_ilb.get_data}', '${te_ilb.dispatch}' ); -.end for -.select many te_persists from instances of TE_PERSIST -.for each te_persist in te_persists -INSERT INTO TE_PERSIST VALUES ( '${te_persist.persist_file}', '${te_persist.class_union}', '${te_persist.instance_cache_depth}', '${te_persist.link_cache_depth}', '${te_persist.check_mark}', '${te_persist.post_link}', '${te_persist.link_type_name}', '${te_persist.link_type_type}', '${te_persist.factory_init}', '${te_persist.commit}', '${te_persist.restore}', '${te_persist.remove}' ); -.end for -.select many te_prefixs from instances of TE_PREFIX -.for each te_prefix in te_prefixs -INSERT INTO TE_PREFIX VALUES ( '${te_prefix.symbol}', '${te_prefix.symbolsw}', '${te_prefix.type}', '${te_prefix.typesw}', '${te_prefix.define_u}', '${te_prefix.define_c}', '${te_prefix.define_csw}', '${te_prefix.define_usw}', '${te_prefix.file}', '${te_prefix.result}', '${te_prefix.provided_port}', '${te_prefix.required_port}', '${te_prefix.channel}' ); -.end for -.select many te_relinfos from instances of TE_RELINFO -.for each te_relinfo in te_relinfos -INSERT INTO TE_RELINFO VALUES (\ - .if ( "un-initialized" == "${te_relinfo.obj}" ) - 0\ - .else - ${te_relinfo.obj}\ +, ${sm_nlevt.SMspd_ID}\ .end if \ - .if ( "un-initialized" == "${te_relinfo.related_obj}" ) + .if ( "un-initialized" == "${sm_nlevt.polySMevt_ID}" ) , 0\ .else -, ${te_relinfo.related_obj}\ +, ${sm_nlevt.polySMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_relinfo.rel}" ) + .if ( "un-initialized" == "${sm_nlevt.polySM_ID}" ) , 0\ .else -, ${te_relinfo.rel}\ +, ${sm_nlevt.polySM_ID}\ .end if \ - .if ( "un-initialized" == "${te_relinfo.rto}" ) + .if ( "un-initialized" == "${sm_nlevt.polySMspd_ID}" ) , 0\ .else -, ${te_relinfo.rto}\ +, ${sm_nlevt.polySMspd_ID}\ + .end if +, '${sm_nlevt.Local_Meaning}' ); +.end for +.select many sm_levts from instances of SM_LEVT +.for each sm_levt in sm_levts +INSERT INTO SM_LEVT VALUES (\ + .if ( "un-initialized" == "${sm_levt.SMevt_ID}" ) + 0\ + .else + ${sm_levt.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${te_relinfo.rgo}" ) + .if ( "un-initialized" == "${sm_levt.SM_ID}" ) , 0\ .else -, ${te_relinfo.rgo}\ +, ${sm_levt.SM_ID}\ .end if \ - .if ( "un-initialized" == "${te_relinfo.oir}" ) + .if ( "un-initialized" == "${sm_levt.SMspd_ID}" ) , 0\ .else -, ${te_relinfo.oir}\ +, ${sm_levt.SMspd_ID}\ .end if -, ${te_relinfo.multiplicity}, ${te_relinfo.gen_link_methods}, '${te_relinfo.rel_phrase}', ${te_relinfo.is_formalizer}, ${te_relinfo.is_supertype}, ${te_relinfo.generate_subtype}, ${te_relinfo.gen_declaration} ); -.end for -.select many te_relstores from instances of TE_RELSTORE -.for each te_relstore in te_relstores -INSERT INTO TE_RELSTORE VALUES ( '${te_relstore.data_declare}', '${te_relstore.data_init}', '${te_relstore.link_calls}', ${te_relstore.link_index}, '${te_relstore.data_fini}', '${te_relstore.self_name}' ); -.end for -.select many te_sets from instances of TE_SET -.for each te_set in te_sets -INSERT INTO TE_SET VALUES ( '${te_set.number_of_containoids}', '${te_set.iterator_class_name}', '${te_set.factory}', '${te_set.init}', '${te_set.copy}', '${te_set.clear}', '${te_set.insert_element}', '${te_set.insert_instance}', '${te_set.insert_block}', '${te_set.remove_element}', '${te_set.remove_instance}', '${te_set.element_count}', '${te_set.contains}', '${te_set.equality}', '${te_set.emptiness}', '${te_set.get_any}', '${te_set.iterator_reset}', '${te_set.iterator_next}', '${te_set.base_class}', '${te_set.element_type}', '${te_set.scope}', '${te_set.module}' ); -.end for -.select many te_slists from instances of TE_SLIST -.for each te_slist in te_slists -INSERT INTO TE_SLIST VALUES ( '${te_slist.flavor}', '${te_slist.remove_node}' ); -.end for -.select many te_strings from instances of TE_STRING -.for each te_string in te_strings -INSERT INTO TE_STRING VALUES ( '${te_string.memset}', '${te_string.memmove}', '${te_string.strcpy}', '${te_string.stradd}', '${te_string.strlen}', '${te_string.strcmp}', '${te_string.strget}', '${te_string.itoa}', '${te_string.atoi}', '${te_string.max_string_length}', '${te_string.debug_buffer_depth}' ); -.end for -.select many te_targets from instances of TE_TARGET -.for each te_target in te_targets -INSERT INTO TE_TARGET VALUES ( '${te_target.language}', '${te_target.c2cplusplus_linkage_begin}', '${te_target.c2cplusplus_linkage_end}', '${te_target.main}' ); -.end for -.select many te_threads from instances of TE_THREAD -.for each te_thread in te_threads -INSERT INTO TE_THREAD VALUES ( '${te_thread.file}', '${te_thread.create}', '${te_thread.mutex_lock}', '${te_thread.mutex_unlock}', '${te_thread.nonbusy_wait}', '${te_thread.nonbusy_wake}', '${te_thread.shutdown}', ${te_thread.enabled}, '${te_thread.flavor}', ${te_thread.serialize}, ${te_thread.number_of_threads}, '${te_thread.extra_initialization}', '${te_thread.AUTOSAR_enabled}' ); -.end for -.select many te_tims from instances of TE_TIM -.for each te_tim in te_tims -INSERT INTO TE_TIM VALUES ( '${te_tim.max_timers}', ${te_tim.keyed_timer_support}, ${te_tim.recurring_timer_support}, ${te_tim.timer_event_search_and_destroy}, '${te_tim.internal_type}', '${te_tim.scope}', '${te_tim.event_name}' ); -.end for -.select many te_traces from instances of TE_TRACE -.for each te_trace in te_traces -INSERT INTO TE_TRACE VALUES ( '${te_trace.component_msg_start}', '${te_trace.component_msg_end}', '${te_trace.state_txn_start}', '${te_trace.state_txn_end}', '${te_trace.state_txn_event_ignored}', '${te_trace.state_txn_cant_happen}', '${te_trace.oal_trace}' ); -.end for -.select many te_typemaps from instances of TE_TYPEMAP -.for each te_typemap in te_typemaps -INSERT INTO TE_TYPEMAP VALUES ( '${te_typemap.instance_index_name}', '${te_typemap.instance_index_type}', '${te_typemap.object_size_name}', '${te_typemap.object_size_type}', '${te_typemap.object_number_name}', '${te_typemap.object_number_type}', '${te_typemap.state_number_name}', '${te_typemap.state_number_type}', '${te_typemap.domain_number_name}', '${te_typemap.domain_number_type}', '${te_typemap.event_number_name}', '${te_typemap.event_number_type}', '${te_typemap.event_priority_name}', '${te_typemap.event_priority_type}', '${te_typemap.event_flags_name}', '${te_typemap.event_flags_type}', '${te_typemap.poly_return_name}', '${te_typemap.poly_return_type}', '${te_typemap.SEM_cell_name}', '${te_typemap.SEM_cell_type}' ); -.end for -.select many te_callouts from instances of TE_CALLOUT -.for each te_callout in te_callouts -INSERT INTO TE_CALLOUT VALUES ( '${te_callout.file}', '${te_callout.initialization}', '${te_callout.pre_xtUML_initialization}', '${te_callout.post_xtUML_initialization}', '${te_callout.background_processing}', '${te_callout.event_cant_happen}', '${te_callout.pre_shutdown}', '${te_callout.post_shutdown}', '${te_callout.event_no_instance}', '${te_callout.event_free_list_empty}', '${te_callout.empty_handle_detected}', '${te_callout.object_pool_empty}', '${te_callout.node_list_empty}', '${te_callout.interleaved_bridge_overflow}', '${te_callout.self_event_queue_empty}', '${te_callout.non_self_event_queue_empty}', '${te_callout.persistence_error}' ); + ); .end for -.print "Subsystem" -.select many o_refs from instances of O_REF -.for each o_ref in o_refs -INSERT INTO O_REF VALUES (\ - .if ( "un-initialized" == "${o_ref.Obj_ID}" ) +.select many sm_sgevts from instances of SM_SGEVT +.for each sm_sgevt in sm_sgevts +INSERT INTO SM_SGEVT VALUES (\ + .if ( "un-initialized" == "${sm_sgevt.SMevt_ID}" ) 0\ .else - ${o_ref.Obj_ID}\ + ${sm_sgevt.SMevt_ID}\ .end if \ - .if ( "un-initialized" == "${o_ref.RObj_ID}" ) + .if ( "un-initialized" == "${sm_sgevt.SM_ID}" ) , 0\ .else -, ${o_ref.RObj_ID}\ +, ${sm_sgevt.SM_ID}\ .end if -, ${o_ref.ROid_ID}\ - .if ( "un-initialized" == "${o_ref.RAttr_ID}" ) +\ + .if ( "un-initialized" == "${sm_sgevt.SMspd_ID}" ) , 0\ .else -, ${o_ref.RAttr_ID}\ +, ${sm_sgevt.SMspd_ID}\ .end if \ - .if ( "un-initialized" == "${o_ref.Rel_ID}" ) + .if ( "un-initialized" == "${sm_sgevt.Provided_Signal_Id}" ) , 0\ .else -, ${o_ref.Rel_ID}\ +, ${sm_sgevt.Provided_Signal_Id}\ .end if \ - .if ( "un-initialized" == "${o_ref.OIR_ID}" ) + .if ( "un-initialized" == "${sm_sgevt.Required_Signal_Id}" ) , 0\ .else -, ${o_ref.OIR_ID}\ +, ${sm_sgevt.Required_Signal_Id}\ + .end if +, '${sm_sgevt.signal_name}' ); +.end for +.select many sm_tahs from instances of SM_TAH +.for each sm_tah in sm_tahs +INSERT INTO SM_TAH VALUES (\ + .if ( "un-initialized" == "${sm_tah.Act_ID}" ) + 0\ + .else + ${sm_tah.Act_ID}\ .end if \ - .if ( "un-initialized" == "${o_ref.ROIR_ID}" ) + .if ( "un-initialized" == "${sm_tah.SM_ID}" ) , 0\ .else -, ${o_ref.ROIR_ID}\ +, ${sm_tah.SM_ID}\ .end if \ - .if ( "un-initialized" == "${o_ref.Attr_ID}" ) + .if ( "un-initialized" == "${sm_tah.Trans_ID}" ) , 0\ .else -, ${o_ref.Attr_ID}\ +, ${sm_tah.Trans_ID}\ + .end if + ); +.end for +.print "Subsystem" +.select many o_objs from instances of O_OBJ +.for each o_obj in o_objs +INSERT INTO O_OBJ VALUES (\ + .if ( "un-initialized" == "${o_obj.Obj_ID}" ) + 0\ + .else + ${o_obj.Obj_ID}\ .end if +, '${o_obj.Name}', ${o_obj.Numb}, '${o_obj.Key_Lett}', ''\ \ - .if ( "un-initialized" == "${o_ref.ARef_ID}" ) + .if ( "un-initialized" == "${o_obj.SS_ID}" ) , 0\ .else -, ${o_ref.ARef_ID}\ +, ${o_obj.SS_ID}\ + .end if + ); +.end for +.select many o_iobjs from instances of O_IOBJ +.for each o_iobj in o_iobjs +INSERT INTO O_IOBJ VALUES (\ + .if ( "un-initialized" == "${o_iobj.IObj_ID}" ) + 0\ + .else + ${o_iobj.IObj_ID}\ .end if \ - .if ( "un-initialized" == "${o_ref.PARef_ID}" ) + .if ( "un-initialized" == "${o_iobj.Obj_ID}" ) , 0\ .else -, ${o_ref.PARef_ID}\ +, ${o_iobj.Obj_ID}\ .end if -, ${o_ref.Is_Cstrd}, ''\ -, '${o_ref.RObj_Name}', '${o_ref.RAttr_Name}', '${o_ref.Rel_Name}' ); +, ${o_iobj.Modl_Typ}\ + .if ( "un-initialized" == "${o_iobj.SS_ID}" ) +, 0\ + .else +, ${o_iobj.SS_ID}\ + .end if +, '${o_iobj.Obj_Name}', '${o_iobj.Obj_KL}' ); .end for .select many o_attrs from instances of O_ATTR .for each o_attr in o_attrs @@ -5331,19 +5182,13 @@ INSERT INTO O_ATTR VALUES (\ .end if , '${o_attr.Dimensions}', '${o_attr.DefaultValue}' ); .end for -.select many o_battrs from instances of O_BATTR -.for each o_battr in o_battrs -INSERT INTO O_BATTR VALUES (\ - .if ( "un-initialized" == "${o_battr.Attr_ID}" ) - 0\ - .else - ${o_battr.Attr_ID}\ - .end if -\ - .if ( "un-initialized" == "${o_battr.Obj_ID}" ) +.select many o_ids from instances of O_ID +.for each o_id in o_ids +INSERT INTO O_ID VALUES ( ${o_id.Oid_ID}\ + .if ( "un-initialized" == "${o_id.Obj_ID}" ) , 0\ .else -, ${o_battr.Obj_ID}\ +, ${o_id.Obj_ID}\ .end if ); .end for @@ -5363,13 +5208,19 @@ INSERT INTO O_OIDA VALUES (\ .end if , ${o_oida.Oid_ID}, '${o_oida.localAttributeName}' ); .end for -.select many o_ids from instances of O_ID -.for each o_id in o_ids -INSERT INTO O_ID VALUES ( ${o_id.Oid_ID}\ - .if ( "un-initialized" == "${o_id.Obj_ID}" ) +.select many o_battrs from instances of O_BATTR +.for each o_battr in o_battrs +INSERT INTO O_BATTR VALUES (\ + .if ( "un-initialized" == "${o_battr.Attr_ID}" ) + 0\ + .else + ${o_battr.Attr_ID}\ + .end if +\ + .if ( "un-initialized" == "${o_battr.Obj_ID}" ) , 0\ .else -, ${o_id.Obj_ID}\ +, ${o_battr.Obj_ID}\ .end if ); .end for @@ -5390,88 +5241,135 @@ INSERT INTO O_DBATTR VALUES (\ , ''\ , ${o_dbattr.Suc_Pars} ); .end for -.select many o_iobjs from instances of O_IOBJ -.for each o_iobj in o_iobjs -INSERT INTO O_IOBJ VALUES (\ - .if ( "un-initialized" == "${o_iobj.IObj_ID}" ) +.select many o_nbattrs from instances of O_NBATTR +.for each o_nbattr in o_nbattrs +INSERT INTO O_NBATTR VALUES (\ + .if ( "un-initialized" == "${o_nbattr.Attr_ID}" ) 0\ .else - ${o_iobj.IObj_ID}\ + ${o_nbattr.Attr_ID}\ + .end if +\ + .if ( "un-initialized" == "${o_nbattr.Obj_ID}" ) +, 0\ + .else +, ${o_nbattr.Obj_ID}\ + .end if + ); +.end for +.select many o_rattrs from instances of O_RATTR +.for each o_rattr in o_rattrs +INSERT INTO O_RATTR VALUES (\ + .if ( "un-initialized" == "${o_rattr.Attr_ID}" ) + 0\ + .else + ${o_rattr.Attr_ID}\ + .end if +\ + .if ( "un-initialized" == "${o_rattr.Obj_ID}" ) +, 0\ + .else +, ${o_rattr.Obj_ID}\ + .end if +\ + .if ( "un-initialized" == "${o_rattr.BAttr_ID}" ) +, 0\ + .else +, ${o_rattr.BAttr_ID}\ + .end if +\ + .if ( "un-initialized" == "${o_rattr.BObj_ID}" ) +, 0\ + .else +, ${o_rattr.BObj_ID}\ + .end if +, ${o_rattr.Ref_Mode}, '${o_rattr.BaseAttrName}' ); +.end for +.select many o_refs from instances of O_REF +.for each o_ref in o_refs +INSERT INTO O_REF VALUES (\ + .if ( "un-initialized" == "${o_ref.Obj_ID}" ) + 0\ + .else + ${o_ref.Obj_ID}\ + .end if +\ + .if ( "un-initialized" == "${o_ref.RObj_ID}" ) +, 0\ + .else +, ${o_ref.RObj_ID}\ + .end if +, ${o_ref.ROid_ID}\ + .if ( "un-initialized" == "${o_ref.RAttr_ID}" ) +, 0\ + .else +, ${o_ref.RAttr_ID}\ .end if \ - .if ( "un-initialized" == "${o_iobj.Obj_ID}" ) + .if ( "un-initialized" == "${o_ref.Rel_ID}" ) , 0\ .else -, ${o_iobj.Obj_ID}\ +, ${o_ref.Rel_ID}\ .end if -, ${o_iobj.Modl_Typ}\ - .if ( "un-initialized" == "${o_iobj.SS_ID}" ) +\ + .if ( "un-initialized" == "${o_ref.OIR_ID}" ) , 0\ .else -, ${o_iobj.SS_ID}\ +, ${o_ref.OIR_ID}\ .end if -, '${o_iobj.Obj_Name}', '${o_iobj.Obj_KL}' ); -.end for -.select many o_objs from instances of O_OBJ -.for each o_obj in o_objs -INSERT INTO O_OBJ VALUES (\ - .if ( "un-initialized" == "${o_obj.Obj_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${o_ref.ROIR_ID}" ) +, 0\ .else - ${o_obj.Obj_ID}\ +, ${o_ref.ROIR_ID}\ .end if -, '${o_obj.Name}', ${o_obj.Numb}, '${o_obj.Key_Lett}', ''\ \ - .if ( "un-initialized" == "${o_obj.SS_ID}" ) + .if ( "un-initialized" == "${o_ref.Attr_ID}" ) , 0\ .else -, ${o_obj.SS_ID}\ +, ${o_ref.Attr_ID}\ .end if - ); -.end for -.select many o_nbattrs from instances of O_NBATTR -.for each o_nbattr in o_nbattrs -INSERT INTO O_NBATTR VALUES (\ - .if ( "un-initialized" == "${o_nbattr.Attr_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${o_ref.ARef_ID}" ) +, 0\ .else - ${o_nbattr.Attr_ID}\ +, ${o_ref.ARef_ID}\ .end if \ - .if ( "un-initialized" == "${o_nbattr.Obj_ID}" ) + .if ( "un-initialized" == "${o_ref.PARef_ID}" ) , 0\ .else -, ${o_nbattr.Obj_ID}\ +, ${o_ref.PARef_ID}\ .end if - ); +, ${o_ref.Is_Cstrd}, ''\ +, '${o_ref.RObj_Name}', '${o_ref.RAttr_Name}', '${o_ref.Rel_Name}' ); .end for -.select many o_tparms from instances of O_TPARM -.for each o_tparm in o_tparms -INSERT INTO O_TPARM VALUES (\ - .if ( "un-initialized" == "${o_tparm.TParm_ID}" ) +.select many o_rtidas from instances of O_RTIDA +.for each o_rtida in o_rtidas +INSERT INTO O_RTIDA VALUES (\ + .if ( "un-initialized" == "${o_rtida.Attr_ID}" ) 0\ .else - ${o_tparm.TParm_ID}\ + ${o_rtida.Attr_ID}\ .end if \ - .if ( "un-initialized" == "${o_tparm.Tfr_ID}" ) + .if ( "un-initialized" == "${o_rtida.Obj_ID}" ) , 0\ .else -, ${o_tparm.Tfr_ID}\ +, ${o_rtida.Obj_ID}\ .end if -, '${o_tparm.Name}'\ - .if ( "un-initialized" == "${o_tparm.DT_ID}" ) +, ${o_rtida.Oid_ID}\ + .if ( "un-initialized" == "${o_rtida.Rel_ID}" ) , 0\ .else -, ${o_tparm.DT_ID}\ +, ${o_rtida.Rel_ID}\ .end if -, ${o_tparm.By_Ref}, '${o_tparm.Dimensions}'\ - .if ( "un-initialized" == "${o_tparm.Previous_TParm_ID}" ) +\ + .if ( "un-initialized" == "${o_rtida.OIR_ID}" ) , 0\ .else -, ${o_tparm.Previous_TParm_ID}\ +, ${o_rtida.OIR_ID}\ .end if -, ''\ ); .end for .select many o_tfrs from instances of O_TFR @@ -5504,838 +5402,904 @@ INSERT INTO O_TFR VALUES (\ .end if ); .end for -.select many o_ravrs from instances of O_RAVR -.for each o_ravr in o_ravrs -INSERT INTO O_RAVR VALUES ( ); -.end for -.select many o_rattrs from instances of O_RATTR -.for each o_rattr in o_rattrs -INSERT INTO O_RATTR VALUES (\ - .if ( "un-initialized" == "${o_rattr.Attr_ID}" ) +.select many o_tparms from instances of O_TPARM +.for each o_tparm in o_tparms +INSERT INTO O_TPARM VALUES (\ + .if ( "un-initialized" == "${o_tparm.TParm_ID}" ) 0\ .else - ${o_rattr.Attr_ID}\ + ${o_tparm.TParm_ID}\ .end if \ - .if ( "un-initialized" == "${o_rattr.Obj_ID}" ) + .if ( "un-initialized" == "${o_tparm.Tfr_ID}" ) , 0\ .else -, ${o_rattr.Obj_ID}\ +, ${o_tparm.Tfr_ID}\ .end if -\ - .if ( "un-initialized" == "${o_rattr.BAttr_ID}" ) +, '${o_tparm.Name}'\ + .if ( "un-initialized" == "${o_tparm.DT_ID}" ) , 0\ .else -, ${o_rattr.BAttr_ID}\ +, ${o_tparm.DT_ID}\ .end if -\ - .if ( "un-initialized" == "${o_rattr.BObj_ID}" ) +, ${o_tparm.By_Ref}, '${o_tparm.Dimensions}'\ + .if ( "un-initialized" == "${o_tparm.Previous_TParm_ID}" ) , 0\ .else -, ${o_rattr.BObj_ID}\ +, ${o_tparm.Previous_TParm_ID}\ .end if -, ${o_rattr.Ref_Mode}, '${o_rattr.BaseAttrName}' ); +, ''\ + ); .end for -.select many o_rtidas from instances of O_RTIDA -.for each o_rtida in o_rtidas -INSERT INTO O_RTIDA VALUES (\ - .if ( "un-initialized" == "${o_rtida.Attr_ID}" ) +.select many o_ravrs from instances of O_RAVR +.for each o_ravr in o_ravrs +INSERT INTO O_RAVR VALUES ( ); +.end for +.print "System Level Datatypes" +.select many sld_sdps from instances of SLD_SDP +.for each sld_sdp in sld_sdps +INSERT INTO SLD_SDP VALUES (\ + .if ( "un-initialized" == "${sld_sdp.Sys_ID}" ) 0\ .else - ${o_rtida.Attr_ID}\ + ${sld_sdp.Sys_ID}\ .end if \ - .if ( "un-initialized" == "${o_rtida.Obj_ID}" ) + .if ( "un-initialized" == "${sld_sdp.Package_ID}" ) , 0\ .else -, ${o_rtida.Obj_ID}\ +, ${sld_sdp.Package_ID}\ .end if -, ${o_rtida.Oid_ID}\ - .if ( "un-initialized" == "${o_rtida.Rel_ID}" ) + ); +.end for +.select many sld_sdinps from instances of SLD_SDINP +.for each sld_sdinp in sld_sdinps +INSERT INTO SLD_SDINP VALUES (\ + .if ( "un-initialized" == "${sld_sdinp.Package_ID}" ) + 0\ + .else + ${sld_sdinp.Package_ID}\ + .end if +\ + .if ( "un-initialized" == "${sld_sdinp.DT_ID}" ) , 0\ .else -, ${o_rtida.Rel_ID}\ +, ${sld_sdinp.DT_ID}\ .end if \ - .if ( "un-initialized" == "${o_rtida.OIR_ID}" ) + .if ( "un-initialized" == "${sld_sdinp.Sys_ID}" ) , 0\ .else -, ${o_rtida.OIR_ID}\ +, ${sld_sdinp.Sys_ID}\ .end if ); .end for -.print "State Machine" -.select many sm_ahs from instances of SM_AH -.for each sm_ah in sm_ahs -INSERT INTO SM_AH VALUES (\ - .if ( "un-initialized" == "${sm_ah.Act_ID}" ) +.select many sld_scinps from instances of SLD_SCINP +.for each sld_scinp in sld_scinps +INSERT INTO SLD_SCINP VALUES (\ + .if ( "un-initialized" == "${sld_scinp.Sys_ID}" ) 0\ .else - ${sm_ah.Act_ID}\ + ${sld_scinp.Sys_ID}\ .end if \ - .if ( "un-initialized" == "${sm_ah.SM_ID}" ) + .if ( "un-initialized" == "${sld_scinp.Package_ID}" ) , 0\ .else -, ${sm_ah.SM_ID}\ - .end if - ); -.end for -.select many sm_acts from instances of SM_ACT -.for each sm_act in sm_acts -INSERT INTO SM_ACT VALUES (\ - .if ( "un-initialized" == "${sm_act.Act_ID}" ) - 0\ - .else - ${sm_act.Act_ID}\ +, ${sld_scinp.Package_ID}\ .end if \ - .if ( "un-initialized" == "${sm_act.SM_ID}" ) + .if ( "un-initialized" == "${sld_scinp.Constant_Spec_ID}" ) , 0\ .else -, ${sm_act.SM_ID}\ +, ${sld_scinp.Constant_Spec_ID}\ .end if -, ${sm_act.Suc_Pars}, ''\ -, ''\ ); .end for -.select many sm_chs from instances of SM_CH -.for each sm_ch in sm_chs -INSERT INTO SM_CH VALUES (\ - .if ( "un-initialized" == "${sm_ch.SMstt_ID}" ) +.print "Translation Extensions" +.select many te_swcs from instances of TE_SWC +.for each te_swc in te_swcs +INSERT INTO TE_SWC VALUES ( '${te_swc.Obj_Kl}', '${te_swc.Where_Spec}', '${te_swc.Key}', ${te_swc.Ret_Val}, ${te_swc.Built_In}, ${te_swc.Oid_ID}, '${te_swc.GeneratedName}' ); +.end for +.select many te_cis from instances of TE_CI +.for each te_ci in te_cis +INSERT INTO TE_CI VALUES (\ + .if ( "un-initialized" == "${te_ci.ID}" ) 0\ .else - ${sm_ch.SMstt_ID}\ + ${te_ci.ID}\ .end if -\ - .if ( "un-initialized" == "${sm_ch.SMevt_ID}" ) +, '${te_ci.Name}', '${te_ci.ClassifierName}', '${te_ci.template_parameter_values}'\ + .if ( "un-initialized" == "${te_ci.te_cID}" ) , 0\ .else -, ${sm_ch.SMevt_ID}\ +, ${te_ci.te_cID}\ .end if \ - .if ( "un-initialized" == "${sm_ch.SM_ID}" ) + .if ( "un-initialized" == "${te_ci.cl_icId}" ) , 0\ .else -, ${sm_ch.SM_ID}\ +, ${te_ci.cl_icId}\ .end if -\ - .if ( "un-initialized" == "${sm_ch.SMspd_ID}" ) + ); +.end for +.select many te_syss from instances of TE_SYS +.for each te_sys in te_syss +INSERT INTO TE_SYS VALUES ( ${te_sys.SystemID}, '${te_sys.ModelCompilerName}', '${te_sys.ModelCompilerVersion}', '${te_sys.ModelCompilerSerNum}', '${te_sys.ModelCompilerKey}', '${te_sys.BridgePointLicenseKey}', '${te_sys.ExecutableName}', ${te_sys.MaxStringLen}, ${te_sys.MaxObjExtent}, ${te_sys.MaxRelExtent}, ${te_sys.MaxSelectExtent}, ${te_sys.TotalContainers}, ${te_sys.MaxSelfEvents}, ${te_sys.MaxNonSelfEvents}, ${te_sys.MaxTimers}, ${te_sys.MaxInterleavedBridges}, ${te_sys.MaxInterleavedBridgeDataSize}, ${te_sys.CollectionsFlavor}, ${te_sys.ForcePriorityEvents}, ${te_sys.PEIClassCount}, ${te_sys.PersistentClassCount}, ${te_sys.PersistInstanceCacheDepth}, ${te_sys.PersistLinkCacheDepth}, ${te_sys.UnitsToDynamicallyAllocate}, ${te_sys.InstanceLoading}, '${te_sys.self_name}', '${te_sys.Name}', ${te_sys.AUTOSAR}, ${te_sys.VFB}, '${te_sys.SystemCPortsType}', ${te_sys.AllPortsPoly}, '${te_sys.DomainClassNumberName}'\ + .if ( "un-initialized" == "${te_sys.Sys_ID}" ) , 0\ .else -, ${sm_ch.SMspd_ID}\ +, ${te_sys.Sys_ID}\ .end if -, ''\ ); .end for -.select many sm_asms from instances of SM_ASM -.for each sm_asm in sm_asms -INSERT INTO SM_ASM VALUES (\ - .if ( "un-initialized" == "${sm_asm.SM_ID}" ) +.select many te_disps from instances of TE_DISP +.for each te_disp in te_disps +INSERT INTO TE_DISP VALUES ( ${te_disp.Dispatcher_ID}, ${te_disp.SystemID}, '${te_disp.Name}', ''\ + ); +.end for +.select many te_queues from instances of TE_QUEUE +.for each te_queue in te_queues +INSERT INTO TE_QUEUE VALUES ( ${te_queue.Queue_ID}, ${te_queue.Dispatcher_ID}, ${te_queue.Type}, ''\ +, ${te_queue.RenderCode}, ${te_queue.MaxDepth} ); +.end for +.select many te_abas from instances of TE_ABA +.for each te_aba in te_abas +INSERT INTO TE_ABA VALUES (\ + .if ( "un-initialized" == "${te_aba.AbaID}" ) 0\ .else - ${sm_asm.SM_ID}\ + ${te_aba.AbaID}\ .end if -\ - .if ( "un-initialized" == "${sm_asm.Obj_ID}" ) +, '${te_aba.subtypeKL}'\ + .if ( "un-initialized" == "${te_aba.te_cID}" ) , 0\ .else -, ${sm_asm.Obj_ID}\ +, ${te_aba.te_cID}\ .end if - ); -.end for -.select many sm_crtxns from instances of SM_CRTXN -.for each sm_crtxn in sm_crtxns -INSERT INTO SM_CRTXN VALUES (\ - .if ( "un-initialized" == "${sm_crtxn.Trans_ID}" ) - 0\ +, ${te_aba.SelfEventCount}, ${te_aba.NonSelfEventCount}, '${te_aba.ParameterDeclaration}', '${te_aba.ParameterDefinition}', '${te_aba.ParameterStructure}', '${te_aba.ParameterTrace}', '${te_aba.ParameterFormat}', '${te_aba.ParameterInvocation}', '${te_aba.ParameterAssignment}', '${te_aba.ParameterAssignmentBase}', '${te_aba.scope}', '${te_aba.GeneratedName}', '${te_aba.ReturnDataType}', ${te_aba.dimensions}\ + .if ( "un-initialized" == "${te_aba.te_dimID}" ) +, 0\ .else - ${sm_crtxn.Trans_ID}\ +, ${te_aba.te_dimID}\ .end if -\ - .if ( "un-initialized" == "${sm_crtxn.SM_ID}" ) -, 0\ +, '${te_aba.array_spec}', '${te_aba.code}' ); +.end for +.select many te_cs from instances of TE_C +.for each te_c in te_cs +INSERT INTO TE_C VALUES (\ + .if ( "un-initialized" == "${te_c.ID}" ) + 0\ .else -, ${sm_crtxn.SM_ID}\ + ${te_c.ID}\ .end if -\ - .if ( "un-initialized" == "${sm_crtxn.SMevt_ID}" ) +, '${te_c.Name}', ''\ +, ${te_c.number}, ${te_c.StateTrace}, ${te_c.StmtTrace}, ${te_c.DetectEmpty}, ${te_c.OptDisabled}, ${te_c.RawComments}, ${te_c.CodeComments}, ${te_c.CollectionsFlavor}, '${te_c.classes_file}', '${te_c.functions_file}', ${te_c.MaxObjExtent}, ${te_c.MaxRelExtent}, ${te_c.MaxSelectExtent}, ${te_c.MaxSelfEvents}, ${te_c.MaxNonSelfEvents}, ${te_c.MaxPriorityEvents}, ${te_c.MaxTimers}, ${te_c.InterleavedBridges}, ${te_c.PEIClassCount}, ${te_c.PersistentClassCount}, '${te_c.domain_mark_file}', '${te_c.class_mark_file}', '${te_c.events_mark_file}', '${te_c.module_file}', '${te_c.port_file}', '${te_c.include_file}', ${te_c.included_in_build}, ${te_c.internal_behavior}, ${te_c.isRealized}, ${te_c.SystemID}\ + .if ( "un-initialized" == "${te_c.Dom_ID}" ) , 0\ .else -, ${sm_crtxn.SMevt_ID}\ +, ${te_c.Dom_ID}\ .end if \ - .if ( "un-initialized" == "${sm_crtxn.SMspd_ID}" ) + .if ( "un-initialized" == "${te_c.cId}" ) , 0\ .else -, ${sm_crtxn.SMspd_ID}\ +, ${te_c.cId}\ .end if ); .end for -.select many sm_eigns from instances of SM_EIGN -.for each sm_eign in sm_eigns -INSERT INTO SM_EIGN VALUES (\ - .if ( "un-initialized" == "${sm_eign.SMstt_ID}" ) +.select many te_snippets from instances of TE_SNIPPET +.for each te_snippet in te_snippets +INSERT INTO TE_SNIPPET VALUES ( '${te_snippet.Index}', '${te_snippet.Body}' ); +.end for +.select many te_mbrs from instances of TE_MBR +.for each te_mbr in te_mbrs +INSERT INTO TE_MBR VALUES (\ + .if ( "un-initialized" == "${te_mbr.ID}" ) 0\ .else - ${sm_eign.SMstt_ID}\ + ${te_mbr.ID}\ .end if -\ - .if ( "un-initialized" == "${sm_eign.SMevt_ID}" ) +, '${te_mbr.Name}', '${te_mbr.GeneratedName}', ${te_mbr.dimensions}\ + .if ( "un-initialized" == "${te_mbr.te_dimID}" ) , 0\ .else -, ${sm_eign.SMevt_ID}\ +, ${te_mbr.te_dimID}\ .end if -\ - .if ( "un-initialized" == "${sm_eign.SM_ID}" ) +, '${te_mbr.array_spec}'\ + .if ( "un-initialized" == "${te_mbr.previousID}" ) , 0\ .else -, ${sm_eign.SM_ID}\ +, ${te_mbr.previousID}\ .end if \ - .if ( "un-initialized" == "${sm_eign.SMspd_ID}" ) + .if ( "un-initialized" == "${te_mbr.te_dtID}" ) , 0\ .else -, ${sm_eign.SMspd_ID}\ +, ${te_mbr.te_dtID}\ .end if -, ''\ - ); -.end for -.select many sm_supdts from instances of SM_SUPDT -.for each sm_supdt in sm_supdts -INSERT INTO SM_SUPDT VALUES (\ - .if ( "un-initialized" == "${sm_supdt.SMspd_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${te_mbr.Member_ID}" ) +, 0\ .else - ${sm_supdt.SMspd_ID}\ +, ${te_mbr.Member_ID}\ .end if \ - .if ( "un-initialized" == "${sm_supdt.SM_ID}" ) + .if ( "un-initialized" == "${te_mbr.DT_ID}" ) , 0\ .else -, ${sm_supdt.SM_ID}\ +, ${te_mbr.DT_ID}\ .end if -, ${sm_supdt.Non_Local} ); + ); .end for -.select many sm_isms from instances of SM_ISM -.for each sm_ism in sm_isms -INSERT INTO SM_ISM VALUES (\ - .if ( "un-initialized" == "${sm_ism.SM_ID}" ) - 0\ +.select many te_ees from instances of TE_EE +.for each te_ee in te_ees +INSERT INTO TE_EE VALUES ( '${te_ee.Name}', '${te_ee.RegisteredName}', '${te_ee.Key_Lett}', ''\ +, ${te_ee.Included}, '${te_ee.file}', '${te_ee.Include_File}', ${te_ee.Used}\ + .if ( "un-initialized" == "${te_ee.te_cID}" ) +, 0\ .else - ${sm_ism.SM_ID}\ +, ${te_ee.te_cID}\ .end if \ - .if ( "un-initialized" == "${sm_ism.Obj_ID}" ) + .if ( "un-initialized" == "${te_ee.EE_ID}" ) , 0\ .else -, ${sm_ism.Obj_ID}\ +, ${te_ee.EE_ID}\ .end if ); .end for -.select many sm_levts from instances of SM_LEVT -.for each sm_levt in sm_levts -INSERT INTO SM_LEVT VALUES (\ - .if ( "un-initialized" == "${sm_levt.SMevt_ID}" ) +.select many te_dts from instances of TE_DT +.for each te_dt in te_dts +INSERT INTO TE_DT VALUES (\ + .if ( "un-initialized" == "${te_dt.ID}" ) 0\ .else - ${sm_levt.SMevt_ID}\ + ${te_dt.ID}\ .end if -\ - .if ( "un-initialized" == "${sm_levt.SM_ID}" ) +, '${te_dt.Name}', ${te_dt.Core_Typ}, ${te_dt.Included}, '${te_dt.ExtName}', '${te_dt.Include_File}', '${te_dt.Initial_Value}', '${te_dt.Value}', ${te_dt.Is_Enum}, '${te_dt.Owning_Dom_Name}', '${te_dt.string_format}', ${te_dt.generated}\ + .if ( "un-initialized" == "${te_dt.te_cID}" ) , 0\ .else -, ${sm_levt.SM_ID}\ +, ${te_dt.te_cID}\ .end if \ - .if ( "un-initialized" == "${sm_levt.SMspd_ID}" ) + .if ( "un-initialized" == "${te_dt.DT_ID}" ) , 0\ .else -, ${sm_levt.SMspd_ID}\ +, ${te_dt.DT_ID}\ .end if ); .end for -.select many sm_meahs from instances of SM_MEAH -.for each sm_meah in sm_meahs -INSERT INTO SM_MEAH VALUES (\ - .if ( "un-initialized" == "${sm_meah.Act_ID}" ) +.select many te_acts from instances of TE_ACT +.for each te_act in te_acts +INSERT INTO TE_ACT VALUES (\ + .if ( "un-initialized" == "${te_act.AbaID}" ) 0\ .else - ${sm_meah.Act_ID}\ + ${te_act.AbaID}\ .end if -\ - .if ( "un-initialized" == "${sm_meah.SM_ID}" ) +, '${te_act.GeneratedName}', ${te_act.number}\ + .if ( "un-initialized" == "${te_act.SM_ID}" ) , 0\ .else -, ${sm_meah.SM_ID}\ +, ${te_act.SM_ID}\ .end if \ - .if ( "un-initialized" == "${sm_meah.Trans_ID}" ) + .if ( "un-initialized" == "${te_act.Act_ID}" ) , 0\ .else -, ${sm_meah.Trans_ID}\ - .end if - ); -.end for -.select many sm_mealys from instances of SM_MEALY -.for each sm_mealy in sm_mealys -INSERT INTO SM_MEALY VALUES (\ - .if ( "un-initialized" == "${sm_mealy.SM_ID}" ) - 0\ - .else - ${sm_mealy.SM_ID}\ +, ${te_act.Act_ID}\ .end if ); .end for -.select many sm_moahs from instances of SM_MOAH -.for each sm_moah in sm_moahs -INSERT INTO SM_MOAH VALUES (\ - .if ( "un-initialized" == "${sm_moah.Act_ID}" ) - 0\ +.select many te_syncs from instances of TE_SYNC +.for each te_sync in te_syncs +INSERT INTO TE_SYNC VALUES ( '${te_sync.Name}', ${te_sync.Included}, ${te_sync.IsInitFunction}, ${te_sync.IsSafeForInterrupts}, ${te_sync.XlateSemantics}, ${te_sync.Order}\ + .if ( "un-initialized" == "${te_sync.AbaID}" ) +, 0\ .else - ${sm_moah.Act_ID}\ +, ${te_sync.AbaID}\ .end if -\ - .if ( "un-initialized" == "${sm_moah.SM_ID}" ) +, '${te_sync.GeneratedName}', '${te_sync.intraface_method}', '${te_sync.deferred_method}'\ + .if ( "un-initialized" == "${te_sync.te_cID}" ) , 0\ .else -, ${sm_moah.SM_ID}\ +, ${te_sync.te_cID}\ .end if \ - .if ( "un-initialized" == "${sm_moah.SMstt_ID}" ) + .if ( "un-initialized" == "${te_sync.Sync_ID}" ) , 0\ .else -, ${sm_moah.SMstt_ID}\ - .end if - ); -.end for -.select many sm_moores from instances of SM_MOORE -.for each sm_moore in sm_moores -INSERT INTO SM_MOORE VALUES (\ - .if ( "un-initialized" == "${sm_moore.SM_ID}" ) - 0\ - .else - ${sm_moore.SM_ID}\ +, ${te_sync.Sync_ID}\ .end if ); .end for -.select many sm_nstxns from instances of SM_NSTXN -.for each sm_nstxn in sm_nstxns -INSERT INTO SM_NSTXN VALUES (\ - .if ( "un-initialized" == "${sm_nstxn.Trans_ID}" ) - 0\ +.select many te_tfrs from instances of TE_TFR +.for each te_tfr in te_tfrs +INSERT INTO TE_TFR VALUES ( ${te_tfr.Included}, ${te_tfr.XlateSemantics}, ${te_tfr.Instance_Based}, '${te_tfr.Key_Lett}', '${te_tfr.Name}', '${te_tfr.GeneratedName}'\ + .if ( "un-initialized" == "${te_tfr.AbaID}" ) +, 0\ .else - ${sm_nstxn.Trans_ID}\ +, ${te_tfr.AbaID}\ .end if \ - .if ( "un-initialized" == "${sm_nstxn.SM_ID}" ) + .if ( "un-initialized" == "${te_tfr.Tfr_ID}" ) , 0\ .else -, ${sm_nstxn.SM_ID}\ +, ${te_tfr.Tfr_ID}\ .end if -\ - .if ( "un-initialized" == "${sm_nstxn.SMstt_ID}" ) + ); +.end for +.select many te_brgs from instances of TE_BRG +.for each te_brg in te_brgs +INSERT INTO TE_BRG VALUES ( '${te_brg.EEname}', '${te_brg.EEkeyletters}', '${te_brg.Name}', '${te_brg.GeneratedName}'\ + .if ( "un-initialized" == "${te_brg.AbaID}" ) , 0\ .else -, ${sm_nstxn.SMstt_ID}\ +, ${te_brg.AbaID}\ .end if \ - .if ( "un-initialized" == "${sm_nstxn.SMevt_ID}" ) + .if ( "un-initialized" == "${te_brg.Brg_ID}" ) , 0\ .else -, ${sm_nstxn.SMevt_ID}\ +, ${te_brg.Brg_ID}\ .end if \ - .if ( "un-initialized" == "${sm_nstxn.SMspd_ID}" ) + .if ( "un-initialized" == "${te_brg.EE_ID}" ) , 0\ .else -, ${sm_nstxn.SMspd_ID}\ +, ${te_brg.EE_ID}\ .end if ); .end for -.select many sm_netxns from instances of SM_NETXN -.for each sm_netxn in sm_netxns -INSERT INTO SM_NETXN VALUES (\ - .if ( "un-initialized" == "${sm_netxn.Trans_ID}" ) - 0\ +.select many te_dbattrs from instances of TE_DBATTR +.for each te_dbattr in te_dbattrs +INSERT INTO TE_DBATTR VALUES ( ${te_dbattr.Included}\ + .if ( "un-initialized" == "${te_dbattr.AbaID}" ) +, 0\ .else - ${sm_netxn.Trans_ID}\ +, ${te_dbattr.AbaID}\ .end if -\ - .if ( "un-initialized" == "${sm_netxn.SM_ID}" ) +, '${te_dbattr.GeneratedName}'\ + .if ( "un-initialized" == "${te_dbattr.Attr_ID}" ) , 0\ .else -, ${sm_netxn.SM_ID}\ +, ${te_dbattr.Attr_ID}\ .end if \ - .if ( "un-initialized" == "${sm_netxn.SMstt_ID}" ) + .if ( "un-initialized" == "${te_dbattr.Obj_ID}" ) , 0\ .else -, ${sm_netxn.SMstt_ID}\ +, ${te_dbattr.Obj_ID}\ .end if -\ - .if ( "un-initialized" == "${sm_netxn.SMspd_ID}" ) + ); +.end for +.select many te_enums from instances of TE_ENUM +.for each te_enum in te_enums +INSERT INTO TE_ENUM VALUES ( '${te_enum.Name}', '${te_enum.Value}', ${te_enum.Order}, '${te_enum.GeneratedName}'\ + .if ( "un-initialized" == "${te_enum.Enum_ID}" ) , 0\ .else -, ${sm_netxn.SMspd_ID}\ +, ${te_enum.Enum_ID}\ .end if ); .end for -.select many sm_nlevts from instances of SM_NLEVT -.for each sm_nlevt in sm_nlevts -INSERT INTO SM_NLEVT VALUES (\ - .if ( "un-initialized" == "${sm_nlevt.SMevt_ID}" ) - 0\ +.select many te_parms from instances of TE_PARM +.for each te_parm in te_parms +INSERT INTO TE_PARM VALUES ( '${te_parm.Name}', ''\ +, ${te_parm.Order}, '${te_parm.ParamBuffer}', '${te_parm.OALParamBuffer}'\ + .if ( "un-initialized" == "${te_parm.ID}" ) +, 0\ .else - ${sm_nlevt.SMevt_ID}\ +, ${te_parm.ID}\ .end if \ - .if ( "un-initialized" == "${sm_nlevt.SM_ID}" ) + .if ( "un-initialized" == "${te_parm.nextID}" ) , 0\ .else -, ${sm_nlevt.SM_ID}\ +, ${te_parm.nextID}\ .end if -\ - .if ( "un-initialized" == "${sm_nlevt.SMspd_ID}" ) +, '${te_parm.GeneratedName}', ${te_parm.By_Ref}\ + .if ( "un-initialized" == "${te_parm.te_dtID}" ) +, 0\ + .else +, ${te_parm.te_dtID}\ + .end if +, ${te_parm.dimensions}\ + .if ( "un-initialized" == "${te_parm.te_dimID}" ) , 0\ .else -, ${sm_nlevt.SMspd_ID}\ +, ${te_parm.te_dimID}\ .end if -\ - .if ( "un-initialized" == "${sm_nlevt.polySMevt_ID}" ) +, '${te_parm.array_spec}'\ + .if ( "un-initialized" == "${te_parm.AbaID}" ) , 0\ .else -, ${sm_nlevt.polySMevt_ID}\ +, ${te_parm.AbaID}\ .end if \ - .if ( "un-initialized" == "${sm_nlevt.polySM_ID}" ) + .if ( "un-initialized" == "${te_parm.SM_ID}" ) , 0\ .else -, ${sm_nlevt.polySM_ID}\ +, ${te_parm.SM_ID}\ .end if \ - .if ( "un-initialized" == "${sm_nlevt.polySMspd_ID}" ) + .if ( "un-initialized" == "${te_parm.SMedi_ID}" ) , 0\ .else -, ${sm_nlevt.polySMspd_ID}\ - .end if -, '${sm_nlevt.Local_Meaning}' ); -.end for -.select many sm_pevts from instances of SM_PEVT -.for each sm_pevt in sm_pevts -INSERT INTO SM_PEVT VALUES (\ - .if ( "un-initialized" == "${sm_pevt.SMevt_ID}" ) - 0\ - .else - ${sm_pevt.SMevt_ID}\ +, ${te_parm.SMedi_ID}\ .end if \ - .if ( "un-initialized" == "${sm_pevt.SM_ID}" ) + .if ( "un-initialized" == "${te_parm.SParm_ID}" ) , 0\ .else -, ${sm_pevt.SM_ID}\ +, ${te_parm.SParm_ID}\ .end if \ - .if ( "un-initialized" == "${sm_pevt.SMspd_ID}" ) + .if ( "un-initialized" == "${te_parm.TParm_ID}" ) , 0\ .else -, ${sm_pevt.SMspd_ID}\ +, ${te_parm.TParm_ID}\ .end if -, '${sm_pevt.localClassName}', '${sm_pevt.localClassKL}', '${sm_pevt.localEventMning}' ); -.end for -.select many sm_sevts from instances of SM_SEVT -.for each sm_sevt in sm_sevts -INSERT INTO SM_SEVT VALUES (\ - .if ( "un-initialized" == "${sm_sevt.SMevt_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${te_parm.PP_Id}" ) +, 0\ .else - ${sm_sevt.SMevt_ID}\ +, ${te_parm.PP_Id}\ .end if \ - .if ( "un-initialized" == "${sm_sevt.SM_ID}" ) + .if ( "un-initialized" == "${te_parm.BParm_ID}" ) , 0\ .else -, ${sm_sevt.SM_ID}\ +, ${te_parm.BParm_ID}\ .end if -\ - .if ( "un-initialized" == "${sm_sevt.SMspd_ID}" ) + ); +.end for +.select many te_wheres from instances of TE_WHERE +.for each te_where in te_wheres +INSERT INTO TE_WHERE VALUES ( ${te_where.WhereKey}, '${te_where.select_any_where}', ${te_where.Oid_ID}\ + .if ( "un-initialized" == "${te_where.Obj_ID}" ) , 0\ .else -, ${sm_sevt.SMspd_ID}\ +, ${te_where.Obj_ID}\ .end if ); .end for -.select many sm_sgevts from instances of SM_SGEVT -.for each sm_sgevt in sm_sgevts -INSERT INTO SM_SGEVT VALUES (\ - .if ( "un-initialized" == "${sm_sgevt.SMevt_ID}" ) +.select many te_attrs from instances of TE_ATTR +.for each te_attr in te_attrs +INSERT INTO TE_ATTR VALUES (\ + .if ( "un-initialized" == "${te_attr.ID}" ) 0\ .else - ${sm_sgevt.SMevt_ID}\ + ${te_attr.ID}\ .end if -\ - .if ( "un-initialized" == "${sm_sgevt.SM_ID}" ) +, ${te_attr.Used}, ${te_attr.read}, ${te_attr.written}, ${te_attr.Included}, ${te_attr.Order}, '${te_attr.ParamBuffer}', '${te_attr.Name}', '${te_attr.GeneratedName}', '${te_attr.DefaultValue}', ${te_attr.translate}, ${te_attr.dimensions}\ + .if ( "un-initialized" == "${te_attr.te_dimID}" ) , 0\ .else -, ${sm_sgevt.SM_ID}\ +, ${te_attr.te_dimID}\ .end if -\ - .if ( "un-initialized" == "${sm_sgevt.SMspd_ID}" ) +, '${te_attr.array_spec}', '${te_attr.te_classGeneratedName}', '${te_attr.GeneratedType}'\ + .if ( "un-initialized" == "${te_attr.prevID}" ) , 0\ .else -, ${sm_sgevt.SMspd_ID}\ +, ${te_attr.prevID}\ .end if \ - .if ( "un-initialized" == "${sm_sgevt.Provided_Signal_Id}" ) + .if ( "un-initialized" == "${te_attr.Attr_ID}" ) , 0\ .else -, ${sm_sgevt.Provided_Signal_Id}\ +, ${te_attr.Attr_ID}\ .end if \ - .if ( "un-initialized" == "${sm_sgevt.Required_Signal_Id}" ) + .if ( "un-initialized" == "${te_attr.Obj_ID}" ) , 0\ .else -, ${sm_sgevt.Required_Signal_Id}\ +, ${te_attr.Obj_ID}\ .end if ); .end for -.select many sm_semes from instances of SM_SEME -.for each sm_seme in sm_semes -INSERT INTO SM_SEME VALUES (\ - .if ( "un-initialized" == "${sm_seme.SMstt_ID}" ) - 0\ +.select many te_rels from instances of TE_REL +.for each te_rel in te_rels +INSERT INTO TE_REL VALUES ( ${te_rel.Numb}, ${te_rel.LinkNeeded}, ${te_rel.UnlinkNeeded}, ${te_rel.Navigated}, ${te_rel.Order}, ${te_rel.storage_needed}\ + .if ( "un-initialized" == "${te_rel.Rel_ID}" ) +, 0\ .else - ${sm_seme.SMstt_ID}\ +, ${te_rel.Rel_ID}\ .end if -\ - .if ( "un-initialized" == "${sm_seme.SMevt_ID}" ) + ); +.end for +.select many te_navs from instances of TE_NAV +.for each te_nav in te_navs +INSERT INTO TE_NAV VALUES ( ${te_nav.NavigatedTo}\ + .if ( "un-initialized" == "${te_nav.OIR_ID}" ) , 0\ .else -, ${sm_seme.SMevt_ID}\ +, ${te_nav.OIR_ID}\ .end if \ - .if ( "un-initialized" == "${sm_seme.SM_ID}" ) + .if ( "un-initialized" == "${te_nav.Obj_ID}" ) , 0\ .else -, ${sm_seme.SM_ID}\ +, ${te_nav.Obj_ID}\ .end if \ - .if ( "un-initialized" == "${sm_seme.SMspd_ID}" ) + .if ( "un-initialized" == "${te_nav.Rel_ID}" ) , 0\ .else -, ${sm_seme.SMspd_ID}\ +, ${te_nav.Rel_ID}\ .end if ); .end for -.select many sm_evtdis from instances of SM_EVTDI -.for each sm_evtdi in sm_evtdis -INSERT INTO SM_EVTDI VALUES (\ - .if ( "un-initialized" == "${sm_evtdi.SMedi_ID}" ) +.select many te_evts from instances of TE_EVT +.for each te_evt in te_evts +INSERT INTO TE_EVT VALUES (\ + .if ( "un-initialized" == "${te_evt.ID}" ) 0\ .else - ${sm_evtdi.SMedi_ID}\ + ${te_evt.ID}\ + .end if +, '${te_evt.Name}', ${te_evt.Numb}, '${te_evt.GeneratedName}', '${te_evt.Enumerator}', ${te_evt.Order}, ${te_evt.Used}, ${te_evt.UsedCount}, ${te_evt.Priority}\ + .if ( "un-initialized" == "${te_evt.SM_ID}" ) +, 0\ + .else +, ${te_evt.SM_ID}\ .end if \ - .if ( "un-initialized" == "${sm_evtdi.SM_ID}" ) + .if ( "un-initialized" == "${te_evt.SMevt_ID}" ) , 0\ .else -, ${sm_evtdi.SM_ID}\ +, ${te_evt.SMevt_ID}\ .end if -, '${sm_evtdi.Name}', ''\ \ - .if ( "un-initialized" == "${sm_evtdi.DT_ID}" ) + .if ( "un-initialized" == "${te_evt.te_smID}" ) , 0\ .else -, ${sm_evtdi.DT_ID}\ +, ${te_evt.te_smID}\ .end if -, '${sm_evtdi.Dimensions}'\ - .if ( "un-initialized" == "${sm_evtdi.SMevt_ID}" ) + ); +.end for +.select many te_states from instances of TE_STATE +.for each te_state in te_states +INSERT INTO TE_STATE VALUES ( '${te_state.Name}', '${te_state.enumerator}', ${te_state.Numb}, ${te_state.number}, ${te_state.Order}\ + .if ( "un-initialized" == "${te_state.SM_ID}" ) , 0\ .else -, ${sm_evtdi.SMevt_ID}\ +, ${te_state.SM_ID}\ .end if \ - .if ( "un-initialized" == "${sm_evtdi.Previous_SMedi_ID}" ) + .if ( "un-initialized" == "${te_state.SMstt_ID}" ) , 0\ .else -, ${sm_evtdi.Previous_SMedi_ID}\ +, ${te_state.SMstt_ID}\ .end if ); .end for -.select many sm_evts from instances of SM_EVT -.for each sm_evt in sm_evts -INSERT INTO SM_EVT VALUES (\ - .if ( "un-initialized" == "${sm_evt.SMevt_ID}" ) +.select many te_pos from instances of TE_PO +.for each te_po in te_pos +INSERT INTO TE_PO VALUES (\ + .if ( "un-initialized" == "${te_po.ID}" ) 0\ .else - ${sm_evt.SMevt_ID}\ + ${te_po.ID}\ + .end if +, '${te_po.Name}', '${te_po.GeneratedName}', '${te_po.InterfaceName}', '${te_po.PackageName}', ${te_po.Provision}, ${te_po.polymorphic}, ${te_po.sibling}, ${te_po.Order}\ + .if ( "un-initialized" == "${te_po.te_cID}" ) +, 0\ + .else +, ${te_po.te_cID}\ .end if \ - .if ( "un-initialized" == "${sm_evt.SM_ID}" ) + .if ( "un-initialized" == "${te_po.c_iId}" ) , 0\ .else -, ${sm_evt.SM_ID}\ +, ${te_po.c_iId}\ .end if \ - .if ( "un-initialized" == "${sm_evt.SMspd_ID}" ) + .if ( "un-initialized" == "${te_po.c_poId}" ) , 0\ .else -, ${sm_evt.SMspd_ID}\ +, ${te_po.c_poId}\ .end if -, ${sm_evt.Numb}, '${sm_evt.Mning}', ${sm_evt.Is_Lbl_U}, '${sm_evt.Unq_Lbl}', '${sm_evt.Drv_Lbl}', ''\ ); .end for -.select many sm_states from instances of SM_STATE -.for each sm_state in sm_states -INSERT INTO SM_STATE VALUES (\ - .if ( "un-initialized" == "${sm_state.SMstt_ID}" ) +.select many te_sms from instances of TE_SM +.for each te_sm in te_sms +INSERT INTO TE_SM VALUES (\ + .if ( "un-initialized" == "${te_sm.ID}" ) 0\ .else - ${sm_state.SMstt_ID}\ + ${te_sm.ID}\ .end if -\ - .if ( "un-initialized" == "${sm_state.SM_ID}" ) +, ${te_sm.complete}, '${te_sm.initial_state}', '${te_sm.SEMname}', '${te_sm.action_array}', '${te_sm.action_type}', '${te_sm.events_union}', '${te_sm.txn_action_array}', ${te_sm.txn_action_count}, '${te_sm.state_names_array}', ${te_sm.num_states}, ${te_sm.num_events}\ + .if ( "un-initialized" == "${te_sm.SM_ID}" ) , 0\ .else -, ${sm_state.SM_ID}\ +, ${te_sm.SM_ID}\ + .end if +, '${te_sm.te_classGeneratedName}' ); +.end for +.select many te_classs from instances of TE_CLASS +.for each te_class in te_classs +INSERT INTO TE_CLASS VALUES ( '${te_class.Name}', ${te_class.Numb}, '${te_class.Key_Lett}', '${te_class.GeneratedName}', '${te_class.CBGeneratedName}', ${te_class.Included}, ${te_class.PEIsDefinedInData}, ${te_class.IsFixedPopulation}, ${te_class.IsReadOnly}, ${te_class.ExcludeFromGen}, ${te_class.MaxExtentSize}, ${te_class.SelfCreated}, ${te_class.NonSelfCreated}, ${te_class.Persistent}, ${te_class.Order}, ${te_class.IsTrace}, ${te_class.ContainerIndex}, ${te_class.Task}, '${te_class.class_file}', '${te_class.system_class_number}', '${te_class.CBsystem_class_number}', '${te_class.persist_link}', '${te_class.dispatcher}', '${te_class.CBdispatcher}', '${te_class.attribute_format}', '${te_class.attribute_dump}'\ + .if ( "un-initialized" == "${te_class.te_cID}" ) +, 0\ + .else +, ${te_class.te_cID}\ .end if \ - .if ( "un-initialized" == "${sm_state.SMspd_ID}" ) + .if ( "un-initialized" == "${te_class.Obj_ID}" ) , 0\ .else -, ${sm_state.SMspd_ID}\ +, ${te_class.Obj_ID}\ .end if -, '${sm_state.Name}', ${sm_state.Numb}, ${sm_state.Final} ); + ); +.end for +.select many te_prefixs from instances of TE_PREFIX +.for each te_prefix in te_prefixs +INSERT INTO TE_PREFIX VALUES ( '${te_prefix.symbol}', '${te_prefix.symbolsw}', '${te_prefix.type}', '${te_prefix.typesw}', '${te_prefix.define_u}', '${te_prefix.define_c}', '${te_prefix.define_csw}', '${te_prefix.define_usw}', '${te_prefix.file}', '${te_prefix.result}', '${te_prefix.provided_port}', '${te_prefix.required_port}', '${te_prefix.channel}' ); +.end for +.select many te_sets from instances of TE_SET +.for each te_set in te_sets +INSERT INTO TE_SET VALUES ( '${te_set.number_of_containoids}', '${te_set.iterator_class_name}', '${te_set.factory}', '${te_set.init}', '${te_set.copy}', '${te_set.clear}', '${te_set.insert_element}', '${te_set.insert_instance}', '${te_set.insert_block}', '${te_set.remove_element}', '${te_set.remove_instance}', '${te_set.element_count}', '${te_set.contains}', '${te_set.equality}', '${te_set.emptiness}', '${te_set.get_any}', '${te_set.iterator_reset}', '${te_set.iterator_next}', '${te_set.base_class}', '${te_set.element_type}', '${te_set.scope}', '${te_set.module}' ); +.end for +.select many te_persists from instances of TE_PERSIST +.for each te_persist in te_persists +INSERT INTO TE_PERSIST VALUES ( '${te_persist.persist_file}', '${te_persist.class_union}', '${te_persist.instance_cache_depth}', '${te_persist.link_cache_depth}', '${te_persist.check_mark}', '${te_persist.post_link}', '${te_persist.link_type_name}', '${te_persist.link_type_type}', '${te_persist.factory_init}', '${te_persist.commit}', '${te_persist.restore}', '${te_persist.remove}' ); +.end for +.select many te_eqs from instances of TE_EQ +.for each te_eq in te_eqs +INSERT INTO TE_EQ VALUES ( '${te_eq.ignored}', '${te_eq.cant_happen}', '${te_eq.system_events_union}', '${te_eq.system_event_pool}', '${te_eq.constant_type}', '${te_eq.base_event_type}', '${te_eq.base_variable}', '${te_eq.max_events}', '${te_eq.max_self_events}', '${te_eq.max_nonself_events}', '${te_eq.new}', '${te_eq.allocate}', '${te_eq.delete}', '${te_eq.modify}', '${te_eq.self}', '${te_eq.non_self}', '${te_eq.search_and_destroy}', '${te_eq.run_flag}', '${te_eq.event_message_variable}', '${te_eq.scope}' ); +.end for +.select many te_ilbs from instances of TE_ILB +.for each te_ilb in te_ilbs +INSERT INTO TE_ILB VALUES ( '${te_ilb.file}', '${te_ilb.define_name}', '${te_ilb.data_define_name}', '${te_ilb.interleave_bridge}', '${te_ilb.interleave_bridge_done}', '${te_ilb.get_data}', '${te_ilb.dispatch}' ); +.end for +.select many te_threads from instances of TE_THREAD +.for each te_thread in te_threads +INSERT INTO TE_THREAD VALUES ( '${te_thread.file}', '${te_thread.create}', '${te_thread.mutex_lock}', '${te_thread.mutex_unlock}', '${te_thread.nonbusy_wait}', '${te_thread.nonbusy_wake}', '${te_thread.shutdown}', ${te_thread.enabled}, '${te_thread.flavor}', ${te_thread.serialize}, ${te_thread.number_of_threads}, '${te_thread.extra_initialization}', '${te_thread.AUTOSAR_enabled}' ); +.end for +.select many te_files from instances of TE_FILE +.for each te_file in te_files +INSERT INTO TE_FILE VALUES ( '${te_file.hdr_file_ext}', '${te_file.src_file_ext}', '${te_file.asm_file_ext}', '${te_file.obj_file_ext}', '${te_file.rpt_file_ext}', '${te_file.sys_main}', '${te_file.factory}', '${te_file.events}', '${te_file.nvs}', '${te_file.nvs_bridge}', '${te_file.sets}', '${te_file.types}', '${te_file.thread}', '${te_file.trace}', '${te_file.tim}', '${te_file.callout}', '${te_file.ilb}', '${te_file.persist}', '${te_file.xtumlload}', '${te_file.interfaces}', '${te_file.registers}', '${te_file.domain_color_path}', '${te_file.domain_source_path}', '${te_file.domain_include_path}', '${te_file.domain_sql_path}', '${te_file.system_source_path}', '${te_file.system_include_path}', '${te_file.system_color_path}', '${te_file.bridge_mark}', '${te_file.registry_mark}', '${te_file.system_mark}', '${te_file.datatype_mark}', '${te_file.event_mark}', '${te_file.class_mark}', '${te_file.domain_mark}', '${te_file.domain_functions_mark}', '${te_file.system_functions_mark}', '${te_file.arc_path}', '${te_file.root_path}' ); +.end for +.select many te_callouts from instances of TE_CALLOUT +.for each te_callout in te_callouts +INSERT INTO TE_CALLOUT VALUES ( '${te_callout.file}', '${te_callout.initialization}', '${te_callout.pre_xtUML_initialization}', '${te_callout.post_xtUML_initialization}', '${te_callout.background_processing}', '${te_callout.event_cant_happen}', '${te_callout.pre_shutdown}', '${te_callout.post_shutdown}', '${te_callout.event_no_instance}', '${te_callout.event_free_list_empty}', '${te_callout.empty_handle_detected}', '${te_callout.object_pool_empty}', '${te_callout.node_list_empty}', '${te_callout.interleaved_bridge_overflow}', '${te_callout.self_event_queue_empty}', '${te_callout.non_self_event_queue_empty}', '${te_callout.persistence_error}' ); +.end for +.select many te_strings from instances of TE_STRING +.for each te_string in te_strings +INSERT INTO TE_STRING VALUES ( '${te_string.memset}', '${te_string.memmove}', '${te_string.strcpy}', '${te_string.stradd}', '${te_string.strlen}', '${te_string.strcmp}', '${te_string.strget}', '${te_string.itoa}', '${te_string.atoi}', '${te_string.max_string_length}', '${te_string.debug_buffer_depth}' ); +.end for +.select many te_traces from instances of TE_TRACE +.for each te_trace in te_traces +INSERT INTO TE_TRACE VALUES ( '${te_trace.component_msg_start}', '${te_trace.component_msg_end}', '${te_trace.state_txn_start}', '${te_trace.state_txn_end}', '${te_trace.state_txn_event_ignored}', '${te_trace.state_txn_cant_happen}', '${te_trace.oal_trace}' ); .end for -.select many sm_sms from instances of SM_SM -.for each sm_sm in sm_sms -INSERT INTO SM_SM VALUES (\ - .if ( "un-initialized" == "${sm_sm.SM_ID}" ) - 0\ - .else - ${sm_sm.SM_ID}\ - .end if -, ''\ -, ${sm_sm.Config_ID} ); +.select many te_copyrights from instances of TE_COPYRIGHT +.for each te_copyright in te_copyrights +INSERT INTO TE_COPYRIGHT VALUES ( '${te_copyright.body}' ); .end for -.select many sm_sdis from instances of SM_SDI -.for each sm_sdi in sm_sdis -INSERT INTO SM_SDI VALUES (\ - .if ( "un-initialized" == "${sm_sdi.SMedi_ID}" ) - 0\ - .else - ${sm_sdi.SMedi_ID}\ - .end if -\ - .if ( "un-initialized" == "${sm_sdi.SMspd_ID}" ) -, 0\ - .else -, ${sm_sdi.SMspd_ID}\ - .end if -\ - .if ( "un-initialized" == "${sm_sdi.SM_ID}" ) -, 0\ - .else -, ${sm_sdi.SM_ID}\ - .end if - ); +.select many te_dmas from instances of TE_DMA +.for each te_dma in te_dmas +INSERT INTO TE_DMA VALUES ( '${te_dma.file}', '${te_dma.allocate}', '${te_dma.release}', ${te_dma.debugging_heap} ); .end for -.select many sm_tahs from instances of SM_TAH -.for each sm_tah in sm_tahs -INSERT INTO SM_TAH VALUES (\ - .if ( "un-initialized" == "${sm_tah.Act_ID}" ) +.select many te_containers from instances of TE_CONTAINER +.for each te_container in te_containers +INSERT INTO TE_CONTAINER VALUES ( '${te_container.flavor}' ); +.end for +.select many te_dlists from instances of TE_DLIST +.for each te_dlist in te_dlists +INSERT INTO TE_DLIST VALUES ( '${te_dlist.flavor}', '${te_dlist.remove_node}' ); +.end for +.select many te_slists from instances of TE_SLIST +.for each te_slist in te_slists +INSERT INTO TE_SLIST VALUES ( '${te_slist.flavor}', '${te_slist.remove_node}' ); +.end for +.select many te_targets from instances of TE_TARGET +.for each te_target in te_targets +INSERT INTO TE_TARGET VALUES ( '${te_target.language}', '${te_target.c2cplusplus_linkage_begin}', '${te_target.c2cplusplus_linkage_end}', '${te_target.main}' ); +.end for +.select many te_relinfos from instances of TE_RELINFO +.for each te_relinfo in te_relinfos +INSERT INTO TE_RELINFO VALUES (\ + .if ( "un-initialized" == "${te_relinfo.obj}" ) 0\ .else - ${sm_tah.Act_ID}\ + ${te_relinfo.obj}\ .end if \ - .if ( "un-initialized" == "${sm_tah.SM_ID}" ) + .if ( "un-initialized" == "${te_relinfo.related_obj}" ) , 0\ .else -, ${sm_tah.SM_ID}\ +, ${te_relinfo.related_obj}\ .end if \ - .if ( "un-initialized" == "${sm_tah.Trans_ID}" ) + .if ( "un-initialized" == "${te_relinfo.rel}" ) , 0\ .else -, ${sm_tah.Trans_ID}\ - .end if - ); -.end for -.select many sm_txns from instances of SM_TXN -.for each sm_txn in sm_txns -INSERT INTO SM_TXN VALUES (\ - .if ( "un-initialized" == "${sm_txn.Trans_ID}" ) - 0\ - .else - ${sm_txn.Trans_ID}\ +, ${te_relinfo.rel}\ .end if \ - .if ( "un-initialized" == "${sm_txn.SM_ID}" ) + .if ( "un-initialized" == "${te_relinfo.rto}" ) , 0\ .else -, ${sm_txn.SM_ID}\ +, ${te_relinfo.rto}\ .end if \ - .if ( "un-initialized" == "${sm_txn.SMstt_ID}" ) + .if ( "un-initialized" == "${te_relinfo.rgo}" ) , 0\ .else -, ${sm_txn.SMstt_ID}\ +, ${te_relinfo.rgo}\ .end if \ - .if ( "un-initialized" == "${sm_txn.SMspd_ID}" ) + .if ( "un-initialized" == "${te_relinfo.oir}" ) , 0\ .else -, ${sm_txn.SMspd_ID}\ +, ${te_relinfo.oir}\ .end if - ); +, ${te_relinfo.multiplicity}, ${te_relinfo.gen_link_methods}, '${te_relinfo.rel_phrase}', ${te_relinfo.is_formalizer}, ${te_relinfo.is_supertype}, ${te_relinfo.generate_subtype}, ${te_relinfo.gen_declaration} ); .end for -.print "Sequence" -.select many sq_miss from instances of SQ_MIS -.for each sq_mis in sq_miss -INSERT INTO SQ_MIS VALUES (\ - .if ( "un-initialized" == "${sq_mis.Msg_ID}" ) +.select many te_relstores from instances of TE_RELSTORE +.for each te_relstore in te_relstores +INSERT INTO TE_RELSTORE VALUES ( '${te_relstore.data_declare}', '${te_relstore.data_init}', '${te_relstore.link_calls}', ${te_relstore.link_index}, '${te_relstore.data_fini}', '${te_relstore.self_name}' ); +.end for +.select many te_instances from instances of TE_INSTANCE +.for each te_instance in te_instances +INSERT INTO TE_INSTANCE VALUES ( '${te_instance.create}', '${te_instance.create_persistent}', '${te_instance.delete}', '${te_instance.delete_persistent}', '${te_instance.self}', '${te_instance.global_self}', '${te_instance.base}', '${te_instance.handle}', '${te_instance.factory_init}', '${te_instance.base_class}', '${te_instance.max_extent}', '${te_instance.max_association_extent}', '${te_instance.max_transient_extent}', '${te_instance.current_state}', '${te_instance.scope}', '${te_instance.get_dci}', '${te_instance.get_event_dispatcher}', '${te_instance.get_thread_assignment}', '${te_instance.module}' ); +.end for +.select many te_tims from instances of TE_TIM +.for each te_tim in te_tims +INSERT INTO TE_TIM VALUES ( '${te_tim.max_timers}', ${te_tim.keyed_timer_support}, ${te_tim.recurring_timer_support}, ${te_tim.timer_event_search_and_destroy}, '${te_tim.internal_type}', '${te_tim.scope}', '${te_tim.event_name}' ); +.end for +.select many te_typemaps from instances of TE_TYPEMAP +.for each te_typemap in te_typemaps +INSERT INTO TE_TYPEMAP VALUES ( '${te_typemap.instance_index_name}', '${te_typemap.instance_index_type}', '${te_typemap.object_size_name}', '${te_typemap.object_size_type}', '${te_typemap.object_number_name}', '${te_typemap.object_number_type}', '${te_typemap.state_number_name}', '${te_typemap.state_number_type}', '${te_typemap.domain_number_name}', '${te_typemap.domain_number_type}', '${te_typemap.event_number_name}', '${te_typemap.event_number_type}', '${te_typemap.event_priority_name}', '${te_typemap.event_priority_type}', '${te_typemap.event_flags_name}', '${te_typemap.event_flags_type}', '${te_typemap.poly_return_name}', '${te_typemap.poly_return_type}', '${te_typemap.SEM_cell_name}', '${te_typemap.SEM_cell_type}' ); +.end for +.select many te_extents from instances of TE_EXTENT +.for each te_extent in te_extents +INSERT INTO TE_EXTENT VALUES ( '${te_extent.sets_type}', '${te_extent.type}', '${te_extent.active}', '${te_extent.inactive}', '${te_extent.initializer}', '${te_extent.size_type}', '${te_extent.size_name}', '${te_extent.istate_type}', '${te_extent.istate_name}', '${te_extent.container_type}', '${te_extent.container_name}', '${te_extent.pool_type}', '${te_extent.pool_name}', '${te_extent.population_type}', '${te_extent.population_name}', '${te_extent.rstorsize_type}', '${te_extent.rstorsize_name}', '${te_extent.linkfunc_name}' ); +.end for +.select many te_dims from instances of TE_DIM +.for each te_dim in te_dims +INSERT INTO TE_DIM VALUES (\ + .if ( "un-initialized" == "${te_dim.te_dimID}" ) 0\ .else - ${sq_mis.Msg_ID}\ + ${te_dim.te_dimID}\ .end if -\ - .if ( "un-initialized" == "${sq_mis.Package_ID}" ) +, ${te_dim.elementCount}, ${te_dim.dimensionCount}\ + .if ( "un-initialized" == "${te_dim.next_te_dimID}" ) , 0\ .else -, ${sq_mis.Package_ID}\ +, ${te_dim.next_te_dimID}\ .end if ); .end for -.select many sq_siss from instances of SQ_SIS -.for each sq_sis in sq_siss -INSERT INTO SQ_SIS VALUES (\ - .if ( "un-initialized" == "${sq_sis.Package_ID}" ) - 0\ +.select many te_pars from instances of TE_PAR +.for each te_par in te_pars +INSERT INTO TE_PAR VALUES ( '${te_par.Name}', ${te_par.By_Ref}, '${te_par.buffer}'\ + .if ( "un-initialized" == "${te_par.Value_ID}" ) +, 0\ .else - ${sq_sis.Package_ID}\ +, ${te_par.Value_ID}\ .end if ); .end for -.select many sq_ss from instances of SQ_S -.for each sq_s in sq_ss -INSERT INTO SQ_S VALUES (\ - .if ( "un-initialized" == "${sq_s.Package_ID}" ) +.select many te_macts from instances of TE_MACT +.for each te_mact in te_macts +INSERT INTO TE_MACT VALUES (\ + .if ( "un-initialized" == "${te_mact.AbaID}" ) 0\ .else - ${sq_s.Package_ID}\ + ${te_mact.AbaID}\ .end if \ - .if ( "un-initialized" == "${sq_s.Dom_ID}" ) + .if ( "un-initialized" == "${te_mact.ID}" ) , 0\ .else -, ${sq_s.Dom_ID}\ +, ${te_mact.ID}\ .end if -, '${sq_s.Name}'\ - .if ( "un-initialized" == "${sq_s.SS_ID}" ) +, '${te_mact.Name}', ''\ +, '${te_mact.GeneratedName}', '${te_mact.ComponentName}', '${te_mact.DomainName}', '${te_mact.PortName}', '${te_mact.InterfaceName}', '${te_mact.MessageName}', ${te_mact.Direction}, ${te_mact.Provision}, '${te_mact.subtypeKL}', ${te_mact.polymorphic}, ${te_mact.trace}, ${te_mact.Order}\ + .if ( "un-initialized" == "${te_mact.SPR_POId}" ) , 0\ .else -, ${sq_s.SS_ID}\ +, ${te_mact.SPR_POId}\ .end if \ - .if ( "un-initialized" == "${sq_s.Prev_Package_ID}" ) + .if ( "un-initialized" == "${te_mact.SPR_PSId}" ) , 0\ .else -, ${sq_s.Prev_Package_ID}\ +, ${te_mact.SPR_PSId}\ .end if -, ''\ \ - .if ( "un-initialized" == "${sq_s.Sys_ID}" ) + .if ( "un-initialized" == "${te_mact.SPR_ROId}" ) , 0\ .else -, ${sq_s.Sys_ID}\ +, ${te_mact.SPR_ROId}\ .end if \ - .if ( "un-initialized" == "${sq_s.Component_Package_ID}" ) + .if ( "un-initialized" == "${te_mact.SPR_RSId}" ) , 0\ .else -, ${sq_s.Component_Package_ID}\ +, ${te_mact.SPR_RSId}\ .end if \ - .if ( "un-initialized" == "${sq_s.Component_Id}" ) + .if ( "un-initialized" == "${te_mact.te_cID}" ) , 0\ .else -, ${sq_s.Component_Id}\ +, ${te_mact.te_cID}\ .end if - ); -.end for -.print "System Level Datatypes" -.select many sld_scinps from instances of SLD_SCINP -.for each sld_scinp in sld_scinps -INSERT INTO SLD_SCINP VALUES (\ - .if ( "un-initialized" == "${sld_scinp.Sys_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${te_mact.te_poID}" ) +, 0\ .else - ${sld_scinp.Sys_ID}\ +, ${te_mact.te_poID}\ .end if \ - .if ( "un-initialized" == "${sld_scinp.Package_ID}" ) + .if ( "un-initialized" == "${te_mact.te_evtID}" ) , 0\ .else -, ${sld_scinp.Package_ID}\ +, ${te_mact.te_evtID}\ .end if \ - .if ( "un-initialized" == "${sld_scinp.Constant_Spec_ID}" ) + .if ( "un-initialized" == "${te_mact.nextID}" ) , 0\ .else -, ${sld_scinp.Constant_Spec_ID}\ +, ${te_mact.nextID}\ .end if ); .end for -.select many sld_sdps from instances of SLD_SDP -.for each sld_sdp in sld_sdps -INSERT INTO SLD_SDP VALUES (\ - .if ( "un-initialized" == "${sld_sdp.Sys_ID}" ) +.select many te_iirs from instances of TE_IIR +.for each te_iir in te_iirs +INSERT INTO TE_IIR VALUES (\ + .if ( "un-initialized" == "${te_iir.ID}" ) 0\ .else - ${sld_sdp.Sys_ID}\ + ${te_iir.ID}\ .end if -\ - .if ( "un-initialized" == "${sld_sdp.Package_ID}" ) +, '${te_iir.component_name}', '${te_iir.port_name}', '${te_iir.interface_name}', ${te_iir.polymorphic}, '${te_iir.template_parameter_values}', '${te_iir.C2C}'\ + .if ( "un-initialized" == "${te_iir.cl_iirId}" ) , 0\ .else -, ${sld_sdp.Package_ID}\ +, ${te_iir.cl_iirId}\ .end if - ); -.end for -.select many sld_sdinps from instances of SLD_SDINP -.for each sld_sdinp in sld_sdinps -INSERT INTO SLD_SDINP VALUES (\ - .if ( "un-initialized" == "${sld_sdinp.Package_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${te_iir.c_irId}" ) +, 0\ .else - ${sld_sdinp.Package_ID}\ +, ${te_iir.c_irId}\ .end if \ - .if ( "un-initialized" == "${sld_sdinp.DT_ID}" ) + .if ( "un-initialized" == "${te_iir.te_poID}" ) , 0\ .else -, ${sld_sdinp.DT_ID}\ +, ${te_iir.te_poID}\ .end if \ - .if ( "un-initialized" == "${sld_sdinp.Sys_ID}" ) + .if ( "un-initialized" == "${te_iir.provider_te_iirID}" ) , 0\ .else -, ${sld_sdinp.Sys_ID}\ +, ${te_iir.provider_te_iirID}\ .end if ); .end for -.print "Translation Marking" -.select many tm_templates from instances of TM_TEMPLATE -.for each tm_template in tm_templates -INSERT INTO TM_TEMPLATE VALUES (\ - .if ( "un-initialized" == "${tm_template.ID}" ) +.select many te_dcis from instances of TE_DCI +.for each te_dci in te_dcis +INSERT INTO TE_DCI VALUES (\ + .if ( "un-initialized" == "${te_dci.te_cID}" ) 0\ .else - ${tm_template.ID}\ + ${te_dci.te_cID}\ .end if -, '${tm_template.tm_cPackage}', '${tm_template.tm_cName}', '${tm_template.tm_ifPackage}', '${tm_template.tm_ifName}', ${tm_template.current}, '${tm_template.template_parameters}', '${tm_template.template_parameters_default}', '${tm_template.template_actual_parameters}', '${tm_template.template_default_instantiation}' ); +, '${te_dci.class_numbers}', '${te_dci.union}', '${te_dci.task_list}', '${te_dci.task_numbers}', '${te_dci.max}', '${te_dci.max_models}', '${te_dci.init}', '${te_dci.array_name}' ); +.end for +.select many te_cias from instances of TE_CIA +.for each te_cia in te_cias +INSERT INTO TE_CIA VALUES ( '${te_cia.class_info_name}', '${te_cia.class_info_type}', '${te_cia.active_count}', '${te_cia.class_count}', '${te_cia.count_type}' ); .end for +.print "Translation Marking" .select many tm_cs from instances of TM_C .for each tm_c in tm_cs INSERT INTO TM_C VALUES ( '${tm_c.Package}', '${tm_c.Name}', '${tm_c.xName}', '${tm_c.include_file}', ${tm_c.isChannel}, ${tm_c.isRealized}\ @@ -6346,6 +6310,10 @@ INSERT INTO TM_C VALUES ( '${tm_c.Package}', '${tm_c.Name}', '${tm_c.xName}', '$ .end if ); .end for +.select many tm_syncs from instances of TM_SYNC +.for each tm_sync in tm_syncs +INSERT INTO TM_SYNC VALUES ( '${tm_sync.RegisteredDomain}', '${tm_sync.Name}', ${tm_sync.IsSafeForInterrupts}, ${tm_sync.IsInitFunction} ); +.end for .select many tm_pointers from instances of TM_POINTER .for each tm_pointer in tm_pointers INSERT INTO TM_POINTER VALUES ( '${tm_pointer.Domain}', '${tm_pointer.DT_name}', '${tm_pointer.pointer_type}', '${tm_pointer.include_file}' ); @@ -6354,17 +6322,51 @@ INSERT INTO TM_POINTER VALUES ( '${tm_pointer.Domain}', '${tm_pointer.DT_name}', .for each tm_precision in tm_precisions INSERT INTO TM_PRECISION VALUES ( '${tm_precision.Domain}', '${tm_precision.DT_name}', '${tm_precision.xName}', '${tm_precision.initial_value}' ); .end for +.select many tm_enumvals from instances of TM_ENUMVAL +.for each tm_enumval in tm_enumvals +INSERT INTO TM_ENUMVAL VALUES ( '${tm_enumval.Domain}', '${tm_enumval.enumeration}', '${tm_enumval.enumerator}', '${tm_enumval.value}' ); +.end for .select many tm_enuminits from instances of TM_ENUMINIT .for each tm_enuminit in tm_enuminits INSERT INTO TM_ENUMINIT VALUES ( '${tm_enuminit.Domain}', '${tm_enuminit.enumeration}', '${tm_enuminit.value}' ); .end for -.select many tm_enumvals from instances of TM_ENUMVAL -.for each tm_enumval in tm_enumvals -INSERT INTO TM_ENUMVAL VALUES ( '${tm_enumval.Domain}', '${tm_enumval.enumeration}', '${tm_enumval.enumerator}', '${tm_enumval.value}' ); +.select many tm_threads from instances of TM_THREAD +.for each tm_thread in tm_threads +INSERT INTO TM_THREAD VALUES ( ${tm_thread.enabled}, '${tm_thread.flavor}', ${tm_thread.serialize}, ${tm_thread.number_of_threads}, '${tm_thread.extra_initialization}' ); .end for -.select many tm_syncs from instances of TM_SYNC -.for each tm_sync in tm_syncs -INSERT INTO TM_SYNC VALUES ( '${tm_sync.RegisteredDomain}', '${tm_sync.Name}', ${tm_sync.IsSafeForInterrupts}, ${tm_sync.IsInitFunction} ); +.select many tm_systags from instances of TM_SYSTAG +.for each tm_systag in tm_systags +INSERT INTO TM_SYSTAG VALUES ( ${tm_systag.MaxStringLen}, ${tm_systag.MaxRelExtent}, ${tm_systag.MaxSelectExtent}, ${tm_systag.MaxSelfEvents}, ${tm_systag.MaxNonSelfEvents}, ${tm_systag.MaxTimers}, ${tm_systag.MaxInterleavedBridges}, ${tm_systag.MaxInterleavedBridgeDataSize}, ${tm_systag.CollectionsFlavor}, ${tm_systag.PersistInstanceCacheDepth}, ${tm_systag.PersistLinkCacheDepth}, ${tm_systag.UnitsToDynamicallyAllocate}, ${tm_systag.VFB}, ${tm_systag.InstanceLoading}, '${tm_systag.SystemCPortsType}', ${tm_systag.AllPortsPoly} ); +.end for +.select many tm_builds from instances of TM_BUILD +.for each tm_build in tm_builds +INSERT INTO TM_BUILD VALUES ( '${tm_build.package_to_build}', '${tm_build.package_obj_name}', '${tm_build.package_inst_name}' ); +.end for +.select many tm_templates from instances of TM_TEMPLATE +.for each tm_template in tm_templates +INSERT INTO TM_TEMPLATE VALUES (\ + .if ( "un-initialized" == "${tm_template.ID}" ) + 0\ + .else + ${tm_template.ID}\ + .end if +, '${tm_template.tm_cPackage}', '${tm_template.tm_cName}', '${tm_template.tm_ifPackage}', '${tm_template.tm_ifName}', ${tm_template.current}, '${tm_template.template_parameters}', '${tm_template.template_parameters_default}', '${tm_template.template_actual_parameters}', '${tm_template.template_default_instantiation}' ); +.end for +.select many tm_tps from instances of TM_TP +.for each tm_tp in tm_tps +INSERT INTO TM_TP VALUES (\ + .if ( "un-initialized" == "${tm_tp.ID}" ) + 0\ + .else + ${tm_tp.ID}\ + .end if +, '${tm_tp.typename}', '${tm_tp.Name}', '${tm_tp.DefaultValue}'\ + .if ( "un-initialized" == "${tm_tp.tm_templateID}" ) +, 0\ + .else +, ${tm_tp.tm_templateID}\ + .end if + ); .end for .select many tm_ifs from instances of TM_IF .for each tm_if in tm_ifs @@ -6376,14 +6378,6 @@ INSERT INTO TM_IF VALUES ( '${tm_if.Package}', '${tm_if.Name}'\ .end if ); .end for -.select many tm_systags from instances of TM_SYSTAG -.for each tm_systag in tm_systags -INSERT INTO TM_SYSTAG VALUES ( ${tm_systag.MaxStringLen}, ${tm_systag.MaxRelExtent}, ${tm_systag.MaxSelectExtent}, ${tm_systag.MaxSelfEvents}, ${tm_systag.MaxNonSelfEvents}, ${tm_systag.MaxTimers}, ${tm_systag.MaxInterleavedBridges}, ${tm_systag.MaxInterleavedBridgeDataSize}, ${tm_systag.CollectionsFlavor}, ${tm_systag.PersistInstanceCacheDepth}, ${tm_systag.PersistLinkCacheDepth}, ${tm_systag.UnitsToDynamicallyAllocate}, ${tm_systag.VFB}, ${tm_systag.InstanceLoading}, '${tm_systag.SystemCPortsType}', ${tm_systag.AllPortsPoly} ); -.end for -.select many tm_threads from instances of TM_THREAD -.for each tm_thread in tm_threads -INSERT INTO TM_THREAD VALUES ( ${tm_thread.enabled}, '${tm_thread.flavor}', ${tm_thread.serialize}, ${tm_thread.number_of_threads}, '${tm_thread.extra_initialization}' ); -.end for .select many tm_tpvs from instances of TM_TPV .for each tm_tpv in tm_tpvs INSERT INTO TM_TPV VALUES (\ @@ -6412,100 +6406,51 @@ INSERT INTO TM_TPV VALUES (\ .end if ); .end for -.select many tm_tps from instances of TM_TP -.for each tm_tp in tm_tps -INSERT INTO TM_TP VALUES (\ - .if ( "un-initialized" == "${tm_tp.ID}" ) - 0\ - .else - ${tm_tp.ID}\ - .end if -, '${tm_tp.typename}', '${tm_tp.Name}', '${tm_tp.DefaultValue}'\ - .if ( "un-initialized" == "${tm_tp.tm_templateID}" ) -, 0\ - .else -, ${tm_tp.tm_templateID}\ - .end if - ); -.end for -.select many tm_builds from instances of TM_BUILD -.for each tm_build in tm_builds -INSERT INTO TM_BUILD VALUES ( '${tm_build.package_to_build}', '${tm_build.package_obj_name}', '${tm_build.package_inst_name}' ); -.end for .print "Use Case" -.select many uc_aiucs from instances of UC_AIUC -.for each uc_aiuc in uc_aiucs -INSERT INTO UC_AIUC VALUES (\ - .if ( "un-initialized" == "${uc_aiuc.Assoc_ID}" ) +.select many uc_uccs from instances of UC_UCC +.for each uc_ucc in uc_uccs +INSERT INTO UC_UCC VALUES (\ + .if ( "un-initialized" == "${uc_ucc.Package_ID}" ) 0\ .else - ${uc_aiuc.Assoc_ID}\ + ${uc_ucc.Package_ID}\ .end if \ - .if ( "un-initialized" == "${uc_aiuc.Package_ID}" ) + .if ( "un-initialized" == "${uc_ucc.Dom_ID}" ) , 0\ .else -, ${uc_aiuc.Package_ID}\ - .end if - ); -.end for -.select many uc_bas from instances of UC_BA -.for each uc_ba in uc_bas -INSERT INTO UC_BA VALUES (\ - .if ( "un-initialized" == "${uc_ba.Assoc_ID}" ) - 0\ - .else - ${uc_ba.Assoc_ID}\ +, ${uc_ucc.Dom_ID}\ .end if -, ''\ - ); -.end for -.select many uc_es from instances of UC_E -.for each uc_e in uc_es -INSERT INTO UC_E VALUES (\ - .if ( "un-initialized" == "${uc_e.Assoc_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${uc_ucc.SS_ID}" ) +, 0\ .else - ${uc_e.Assoc_ID}\ +, ${uc_ucc.SS_ID}\ .end if -, ''\ - ); -.end for -.select many uc_gs from instances of UC_G -.for each uc_g in uc_gs -INSERT INTO UC_G VALUES (\ - .if ( "un-initialized" == "${uc_g.Assoc_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${uc_ucc.Parent_Package_ID}" ) +, 0\ .else - ${uc_g.Assoc_ID}\ +, ${uc_ucc.Parent_Package_ID}\ .end if -, ''\ - ); -.end for -.select many uc_is from instances of UC_I -.for each uc_i in uc_is -INSERT INTO UC_I VALUES (\ - .if ( "un-initialized" == "${uc_i.Assoc_ID}" ) - 0\ +, '${uc_ucc.Name}', ''\ +\ + .if ( "un-initialized" == "${uc_ucc.Sys_ID}" ) +, 0\ .else - ${uc_i.Assoc_ID}\ +, ${uc_ucc.Sys_ID}\ .end if -, ''\ - ); -.end for -.select many uc_piucs from instances of UC_PIUC -.for each uc_piuc in uc_piucs -INSERT INTO UC_PIUC VALUES (\ - .if ( "un-initialized" == "${uc_piuc.Package_ID}" ) - 0\ +\ + .if ( "un-initialized" == "${uc_ucc.Component_Package_ID}" ) +, 0\ .else - ${uc_piuc.Package_ID}\ +, ${uc_ucc.Component_Package_ID}\ .end if \ - .if ( "un-initialized" == "${uc_piuc.Part_ID}" ) + .if ( "un-initialized" == "${uc_ucc.Component_Id}" ) , 0\ .else -, ${uc_piuc.Part_ID}\ +, ${uc_ucc.Component_Id}\ .end if ); .end for @@ -6531,60 +6476,89 @@ INSERT INTO UC_UCA VALUES (\ .end if ); .end for -.select many uc_uccs from instances of UC_UCC -.for each uc_ucc in uc_uccs -INSERT INTO UC_UCC VALUES (\ - .if ( "un-initialized" == "${uc_ucc.Package_ID}" ) +.select many uc_piucs from instances of UC_PIUC +.for each uc_piuc in uc_piucs +INSERT INTO UC_PIUC VALUES (\ + .if ( "un-initialized" == "${uc_piuc.Package_ID}" ) 0\ .else - ${uc_ucc.Package_ID}\ + ${uc_piuc.Package_ID}\ .end if \ - .if ( "un-initialized" == "${uc_ucc.Dom_ID}" ) + .if ( "un-initialized" == "${uc_piuc.Part_ID}" ) , 0\ .else -, ${uc_ucc.Dom_ID}\ +, ${uc_piuc.Part_ID}\ .end if -\ - .if ( "un-initialized" == "${uc_ucc.SS_ID}" ) -, 0\ + ); +.end for +.select many uc_uius from instances of UC_UIU +.for each uc_uiu in uc_uius +INSERT INTO UC_UIU VALUES (\ + .if ( "un-initialized" == "${uc_uiu.Package_ID}" ) + 0\ .else -, ${uc_ucc.SS_ID}\ + ${uc_uiu.Package_ID}\ .end if -\ - .if ( "un-initialized" == "${uc_ucc.Parent_Package_ID}" ) -, 0\ + ); +.end for +.select many uc_bas from instances of UC_BA +.for each uc_ba in uc_bas +INSERT INTO UC_BA VALUES (\ + .if ( "un-initialized" == "${uc_ba.Assoc_ID}" ) + 0\ .else -, ${uc_ucc.Parent_Package_ID}\ + ${uc_ba.Assoc_ID}\ .end if -, '${uc_ucc.Name}', ''\ -\ - .if ( "un-initialized" == "${uc_ucc.Sys_ID}" ) -, 0\ +, ''\ + ); +.end for +.select many uc_gs from instances of UC_G +.for each uc_g in uc_gs +INSERT INTO UC_G VALUES (\ + .if ( "un-initialized" == "${uc_g.Assoc_ID}" ) + 0\ .else -, ${uc_ucc.Sys_ID}\ + ${uc_g.Assoc_ID}\ .end if -\ - .if ( "un-initialized" == "${uc_ucc.Component_Package_ID}" ) -, 0\ +, ''\ + ); +.end for +.select many uc_is from instances of UC_I +.for each uc_i in uc_is +INSERT INTO UC_I VALUES (\ + .if ( "un-initialized" == "${uc_i.Assoc_ID}" ) + 0\ .else -, ${uc_ucc.Component_Package_ID}\ + ${uc_i.Assoc_ID}\ .end if -\ - .if ( "un-initialized" == "${uc_ucc.Component_Id}" ) -, 0\ +, ''\ + ); +.end for +.select many uc_es from instances of UC_E +.for each uc_e in uc_es +INSERT INTO UC_E VALUES (\ + .if ( "un-initialized" == "${uc_e.Assoc_ID}" ) + 0\ .else -, ${uc_ucc.Component_Id}\ + ${uc_e.Assoc_ID}\ .end if +, ''\ ); .end for -.select many uc_uius from instances of UC_UIU -.for each uc_uiu in uc_uius -INSERT INTO UC_UIU VALUES (\ - .if ( "un-initialized" == "${uc_uiu.Package_ID}" ) +.select many uc_aiucs from instances of UC_AIUC +.for each uc_aiuc in uc_aiucs +INSERT INTO UC_AIUC VALUES (\ + .if ( "un-initialized" == "${uc_aiuc.Assoc_ID}" ) 0\ .else - ${uc_uiu.Package_ID}\ + ${uc_aiuc.Assoc_ID}\ + .end if +\ + .if ( "un-initialized" == "${uc_aiuc.Package_ID}" ) +, 0\ + .else +, ${uc_aiuc.Package_ID}\ .end if ); .end for diff --git a/arc/q.class.instance.dumper.arc b/arc/q.class.instance.dumper.arc index 725b789f2..9cdb7b965 100644 --- a/arc/q.class.instance.dumper.arc +++ b/arc/q.class.instance.dumper.arc @@ -17,44 +17,62 @@ .assign dollarcurly = "$${" ..print "dumping class instances into SQL format..." .select many s_sss from instances of S_SS where ( ( ( ( selected.Name != "Value" ) and ( selected.Name != "Body" ) ) and ( ( selected.Name != "Event" ) and ( selected.Name != "Selection" ) ) ) and ( ( ( selected.Name != "Instance Access" ) and ( selected.Name != "Relate and Unrelate" ) ) and ( selected.Name != "Translation OAL" ) ) ) - .for each s_ss in s_sss + .invoke SortSetAlphabeticallyByNameAttr( s_sss ) + .assign s_ss_count = cardinality s_sss + .assign s_ss_number = 0 + .while ( s_ss_number < s_ss_count ) + .for each s_ss in s_sss + .if ( s_ss.Order == s_ss_number ) ..print "${s_ss.Name}" - .select many o_objs related by s_ss->O_OBJ[R2] where ( ( selected.Key_Lett != "TE_VAL" ) and ( selected.Key_Lett != "TE_VAR" ) ) - .for each o_obj in o_objs + .select many o_objs related by s_ss->O_OBJ[R2] where ( ( selected.Key_Lett != "TE_VAL" ) and ( selected.Key_Lett != "TE_VAR" ) ) + .invoke SortSetAscendingByAttr_Numb( o_objs ) + .assign o_obj_count = cardinality o_objs + .assign o_obj_number = 0 + .while ( o_obj_number < o_obj_count ) + .for each o_obj in o_objs + .if ( o_obj.Order == o_obj_number ) ..select many $l{o_obj.Key_Lett}s from instances of ${o_obj.Key_Lett} ..for each $l{o_obj.Key_Lett} in $l{o_obj.Key_Lett}s INSERT INTO ${o_obj.Key_Lett} VALUES (\ - .select one o_attr related by o_obj->O_ATTR[R102] where ( selected.PAttr_ID == 0 ) - .assign delimiter = "" - .while ( not_empty o_attr ) - .if ( "${o_attr.Descrip:Persistent}" != "false" ) - .assign attributename = o_attr.Name - .invoke d = GetAttributeCodeGenType( o_attr ) - .assign s_dt = d.dt - .if ( "string" == s_dt.Name ) - .if ( ( "Action_Semantics_internal" == attributename ) or ( "Descrip" == attributename ) ) + .select one o_attr related by o_obj->O_ATTR[R102] where ( selected.PAttr_ID == 0 ) + .assign delimiter = "" + .while ( not_empty o_attr ) + .if ( "${o_attr.Descrip:Persistent}" != "false" ) + .assign attributename = o_attr.Name + .invoke d = GetAttributeCodeGenType( o_attr ) + .assign s_dt = d.dt + .if ( "string" == s_dt.Name ) + .if ( ( "Action_Semantics_internal" == attributename ) or ( "Descrip" == attributename ) ) ${delimiter} ''\\ - .else + .else ${delimiter} '$${$l{o_obj.Key_Lett}.${attributename}}'\ - .end if - .elif ( "unique_id" == s_dt.Name ) + .end if + .elif ( "unique_id" == s_dt.Name ) \\ ..if ( "un-initialized" == "$${$l{o_obj.Key_Lett}.${attributename}}" ) ${delimiter} 0\\ ..else ${delimiter} ${dollarcurly}$l{o_obj.Key_Lett}.${attributename}}\\ ..end if - .else + .else ${delimiter} ${dollarcurly}$l{o_obj.Key_Lett}.${attributename}}\ - .end if - .assign delimiter = "," - .end if - .select one o_attr related by o_attr->O_ATTR[R103.'succeeds'] - .end while + .end if + .assign delimiter = "," + .end if + .select one o_attr related by o_attr->O_ATTR[R103.'succeeds'] + .end while ); ..end for + .break for + .end if + .end for + .assign o_obj_number = o_obj_number + 1 + .end while + .break for + .end if .end for - .end for + .assign s_ss_number = s_ss_number + 1 + .end while ..emit to file "_system.sql" ..exit 508 .end function diff --git a/arc/q.datatype.arc b/arc/q.datatype.arc index 6d8ef3d3e..04f795970 100644 --- a/arc/q.datatype.arc +++ b/arc/q.datatype.arc @@ -18,12 +18,13 @@ .//============================================================================ .function GetBaseTypeForUDT .param inst_ref s_udt - .select one attr_result related by s_udt->S_DT[R18]; - .select one s_udt related by attr_result->S_UDT[R17]; + .select one s_dt related by s_udt->S_DT[R18] + .select one s_udt related by s_dt->S_UDT[R17] .if ( not_empty s_udt ) - .invoke btype = GetBaseTypeForUDT( s_udt ) - .assign attr_result = btype.result + .invoke r = GetBaseTypeForUDT( s_udt ) + .assign s_dt = r.result .end if + .assign attr_result = s_dt .end function .// .//============================================================================ @@ -101,7 +102,7 @@ .function MapUserSpecifiedDataTypePrecision .param inst_ref te_dt .param string mapping - .assign attr_error = false + .assign error = false .assign type = mapping .if ( (type == "uchar_t") or ((type == "u_char") or (type == "unsignedchar")) ) .assign te_dt.ExtName = "unsigned char" @@ -167,8 +168,9 @@ .assign te_dt.ExtName = "volatile unsigned long" .// .else - .assign attr_error = true + .assign error = true .end if + .assign attr_result = error .end function .// .// Return the structure type for persistent links. @@ -176,9 +178,10 @@ .select any te_file from instances of TE_FILE .assign sys_types_file_name = ( te_file.types + "." ) + te_file.hdr_file_ext .select many special_te_dts from instances of TE_DT where ( ( selected.Include_File != "" ) and ( selected.Include_File != sys_types_file_name ) ) - .assign attr_s = "" + .assign s = "" .for each special_te_dt in special_te_dts - .assign attr_s = ( attr_s + "#include " ) + ( special_te_dt.Include_File + "\n" ) + .assign s = ( s + "#include " ) + ( special_te_dt.Include_File + "\n" ) .end for + .assign attr_result = s .end function .// diff --git a/arc/q.mc_metamodel.populate.arc b/arc/q.mc_metamodel.populate.arc index 9834dffe2..f5344c773 100644 --- a/arc/q.mc_metamodel.populate.arc +++ b/arc/q.mc_metamodel.populate.arc @@ -871,7 +871,7 @@ .end if .if ( ( s_cdt.Core_Typ == 2 ) or ( s_cdt.Core_Typ == 3 ) ) .invoke r = MapUserSpecifiedDataTypePrecision( te_dt, tm_precision.xName ) - .assign status_error = r.error + .assign status_error = r.result .if ( status_error ) .assign te_dt.ExtName = tm_precision.xName .end if @@ -2062,15 +2062,7 @@ .assign actual_te_parms = actual_te_parms | te_parm .end if .end for - .invoke params = te_parm_RenderParameters( actual_te_parms ) - .assign te_aba.ParameterDefinition = params.definition - .assign te_aba.ParameterDeclaration = params.declaration - .assign te_aba.ParameterInvocation = params.invocation - .assign te_aba.ParameterStructure = params.structure - .assign te_aba.ParameterTrace = params.parameter_trace - .assign te_aba.ParameterFormat = params.string_format - .assign te_aba.ParameterAssignment = params.assignment - .assign te_aba.ParameterAssignmentBase = params.assignment_base + .invoke te_parm_RenderParameters( actual_te_parms, te_aba ) .assign te_aba.scope = "" .if ( ( "C++" == te_target.language ) or ( "SystemC" == te_target.language ) ) .assign te_aba.scope = scope + "::" diff --git a/arc/q.oal.analyze.arc b/arc/q.oal.analyze.arc index 075cf8f42..9e4bde7d1 100644 --- a/arc/q.oal.analyze.arc +++ b/arc/q.oal.analyze.arc @@ -570,9 +570,9 @@ .// Object ${te_class.Name} (${te_class.Key_Lett}) Identifier *${key_number} .create object instance te_swc of TE_SWC .// relate te_swc to te_class across R2001; - .// CDS We need to move R2001 from O_OBJ to TE_CLASS. - .assign te_swc.Obj_Kl = te_class.Key_Lett + .assign te_swc.GeneratedName = te_class.GeneratedName .// end relate + .assign te_swc.Obj_Kl = te_class.Key_Lett .assign te_swc.Where_Spec = where_spec .assign te_swc.Key = where_key .assign te_swc.Ret_Val = FALSE @@ -602,9 +602,9 @@ .// Object ${te_class.Name} (${te_class.Key_Lett}) Identifier *${key_number} .create object instance te_swc of TE_SWC .// relate te_swc to te_class across R2001; - .// CDS We need to move R2001 from O_OBJ to TE_CLASS. - .assign te_swc.Obj_Kl = te_class.Key_Lett + .assign te_swc.GeneratedName = te_class.GeneratedName .// end relate + .assign te_swc.Obj_Kl = te_class.Key_Lett .assign te_swc.Where_Spec = where_spec .assign te_swc.Key = where_key .assign te_swc.Ret_Val = FALSE @@ -635,9 +635,9 @@ .// Object ${te_class.Name} (${te_class.Key_Lett}) Identifier *${key_number} .create object instance te_swc of TE_SWC .// relate te_swc to te_class across R2001; - .// CDS We need to move R2001 from O_OBJ to TE_CLASS. - .assign te_swc.Obj_Kl = te_class.Key_Lett + .assign te_swc.GeneratedName = te_class.GeneratedName .// end relate + .assign te_swc.Obj_Kl = te_class.Key_Lett .assign te_swc.Where_Spec = where_spec .assign te_swc.Key = where_key .assign te_swc.Ret_Val = FALSE @@ -664,9 +664,9 @@ .// Object ${te_class.Name} (${te_class.Key_Lett}) Identifier *${key_number} .create object instance te_swc of TE_SWC .// relate te_swc to te_class across R2001; - .// CDS We need to move R2001 from O_OBJ to TE_CLASS. - .assign te_swc.Obj_Kl = te_class.Key_Lett + .assign te_swc.GeneratedName = te_class.GeneratedName .// end relate + .assign te_swc.Obj_Kl = te_class.Key_Lett .assign te_swc.Where_Spec = where_spec .assign te_swc.Key = where_key .assign te_swc.Ret_Val = FALSE diff --git a/arc/q.parameters.arc b/arc/q.parameters.arc index fd45ac5aa..88c390200 100644 --- a/arc/q.parameters.arc +++ b/arc/q.parameters.arc @@ -17,6 +17,7 @@ .// .function te_parm_RenderParameters .param inst_ref_set te_parms + .param inst_ref te_aba .// Consider that we may have additional parameters (like for passing "self"). .assign defn = "" .assign decl = " void" @@ -83,13 +84,13 @@ .assign item_number = item_number + 1 .end while .end if - .assign attr_definition = defn + "" - .assign attr_declaration = decl + " " - .assign attr_invocation = invo - .assign attr_structure = stru - .assign attr_parameter_trace = parameter_trace - .assign attr_string_format = string_format - .assign attr_assignment = assn - .assign attr_assignment_base = assnbase + .assign te_aba.ParameterDefinition = defn + "" + .assign te_aba.ParameterDeclaration = decl + " " + .assign te_aba.ParameterInvocation = invo + .assign te_aba.ParameterStructure = stru + .assign te_aba.ParameterTrace = parameter_trace + .assign te_aba.ParameterFormat = string_format + .assign te_aba.ParameterAssignment = assn + .assign te_aba.ParameterAssignmentBase = assnbase .end function .// diff --git a/arc/q.smt.generate.arc b/arc/q.smt.generate.arc index 960ba7dca..3bff48fb5 100644 --- a/arc/q.smt.generate.arc +++ b/arc/q.smt.generate.arc @@ -663,7 +663,7 @@ .assign built_in = false .assign oid_id = -1 .if ( built_in ) - .select any te_swc related by o_obj->TE_SWC[R2001] where ( selected.Key == "p_where.key" ) + .select any te_swc related by te_class->TE_SWC[R2001] where ( selected.Key == "p_where.key" ) .assign built_in = te_swc.Built_In .assign oid_id = te_swc.Oid_ID .end if diff --git a/arc/q.val.translate.arc b/arc/q.val.translate.arc index 37b45a05c..fa0c301ba 100644 --- a/arc/q.val.translate.arc +++ b/arc/q.val.translate.arc @@ -158,7 +158,7 @@ .select one te_dim related by te_var->TE_DIM[R2057] .if ( not_empty te_dim ) .// relate te_val to te_dim across R2057; - .assign te_val.te_dimID = te_dim.ID + .assign te_val.te_dimID = te_dim.te_dimID .// end relate .else .assign te_val.te_dimID = 00 diff --git a/arc/specialized/sys.arc b/arc/specialized/sys.arc index e679d470a..3108269e2 100644 --- a/arc/specialized/sys.arc +++ b/arc/specialized/sys.arc @@ -205,7 +205,8 @@ .// Generate the system code. .//============================================================================ .invoke main_decl = GetMainTaskEntryDeclaration() -.invoke return_body = GetMainTaskEntryReturn() +.invoke r = GetMainTaskEntryReturn() +.assign return_body = r.body .select any te_cia from instances of TE_CIA .// .// function-based archetype generation @@ -368,8 +369,8 @@ .assign structured_data_types = structured_data_types + s.body .// Get all components, not just those with internal behavior. .select many te_cs from instances of TE_C where ( selected.included_in_build ) -.invoke s = UserSuppliedDataTypeIncludes() -.assign user_supplied_data_types = s.s +.invoke r = UserSuppliedDataTypeIncludes() +.assign user_supplied_data_types = r.result .include "${te_file.arc_path}/t.sys_types.h" .emit to file "${te_file.system_include_path}/${te_file.types}.${te_file.hdr_file_ext}" .// diff --git a/arc/specialized/t.sys_main.c b/arc/specialized/t.sys_main.c index a7ef1d765..d2bf8e739 100644 --- a/arc/specialized/t.sys_main.c +++ b/arc/specialized/t.sys_main.c @@ -102,7 +102,7 @@ if ( false == lazy_initialized ) { .end if .end if .if ( ( te_thread.flavor != "Nucleus" ) and ( te_thread.flavor != "AUTOSAR" ) ) -${return_body.body}\ +${return_body}\ .end if .if ( te_sys.AUTOSAR ) } diff --git a/schema/sql/xtumlmc_schema.sql b/schema/sql/xtumlmc_schema.sql index 7ecd8430b..6ab04d24e 100644 --- a/schema/sql/xtumlmc_schema.sql +++ b/schema/sql/xtumlmc_schema.sql @@ -2371,7 +2371,7 @@ CREATE TABLE TE_SWC ( Ret_Val BOOLEAN, Built_In BOOLEAN, Oid_ID INTEGER, - Obj_ID UNIQUE_ID ); + GeneratedName STRING ); -- Class: 2001. Component Instance CREATE TABLE TE_CI ( @@ -6010,8 +6010,8 @@ CREATE ROP REF_ID R4404 FROM MC SLD_SCINP (Sys_ID) -- Relationships In Subsystem: Translation Extensions -- ============================================================================ -CREATE ROP REF_ID R2001 FROM MC TE_SWC (Obj_Kl) - TO 1C O_OBJ (Key_Lett); +CREATE ROP REF_ID R2001 FROM MC TE_SWC (GeneratedName) + TO 1C TE_CLASS (GeneratedName); CREATE ROP REF_ID R2002 FROM MC TE_MACT (te_cID) TO 1 TE_C (ID); From f32268b783caba3514a6d0870447e066ec457df6 Mon Sep 17 00:00:00 2001 From: Cortland Starrett Date: Fri, 22 Feb 2013 19:36:40 -0500 Subject: [PATCH 2/4] This commit removed more attr_ return structures. It also moves some data from arc functions into the model (TE_PERSIST) #4 --- arc/frag_util.arc | 60 +++++++++++++++---------------- arc/m.component.arc | 0 arc/q.class.arc | 12 +++---- arc/q.class.factory.arc | 33 +++++++++-------- arc/q.class.instance.dump.arc | 2 +- arc/q.class.instance.dumper.arc | 4 +-- arc/q.class.pei.arc | 6 ++-- arc/q.datatype.arc | 64 ++++++++++++++++----------------- arc/q.mc_metamodel.populate.arc | 8 ++--- arc/q.names.arc | 25 ------------- arc/q.smt.generate.arc | 4 +-- arc/specialized/q.mc3020.arc | 22 ++++++++++-- arc/specialized/sys.arc | 3 +- arc/specialized/t.sys_types.h | 6 +++- arc/t.sys_factory.c | 2 +- arc/t.sys_persist.c | 10 +++--- schema/sql/xtumlmc_schema.sql | 14 +++++++- 17 files changed, 138 insertions(+), 137 deletions(-) mode change 100755 => 100644 arc/m.component.arc diff --git a/arc/frag_util.arc b/arc/frag_util.arc index ef85cbf1e..35fea0761 100644 --- a/arc/frag_util.arc +++ b/arc/frag_util.arc @@ -80,37 +80,36 @@ ${indent.result}} .param inst_ref te_class .param string instance .// - .assign result = FALSE + .assign result = false .select any te_instance from instances of TE_INSTANCE .select any te_string from instances of TE_STRING .select any te_attr related by te_class->TE_ATTR[R2061] where ( selected.prevID == 0 ) .while ( not_empty te_attr ) .select one o_attr related by te_attr->O_ATTR[R2033] .if ( te_attr.translate ) - .invoke member_type = GetAttributeCodeGenType( o_attr ) - .assign cdt = member_type.cdt - .if ( not_empty cdt ) - .if ( cdt.Core_Typ == 5 ) - .assign dt = member_type.dt - .// Core_Typ == 5 is "unique_id" - .// CDS: Note "select any" when there may be more than one. - .select any o_oida related by o_attr->O_OIDA[R105] - .if ( not_empty o_oida ) - .select one te_dt related by dt->TE_DT[R2021] - .assign result = TRUE + .invoke r = GetAttributeCodeGenType( o_attr ) + .assign s_cdt = r.cdt + .assign s_dt = r.dt + .if ( not_empty s_cdt ) + .if ( 5 == s_cdt.Core_Typ ) + .// unique_id + .select any o_oida related by o_attr->O_OIDA[R105] + .if ( not_empty o_oida ) + .select one te_dt related by s_dt->TE_DT[R2021] + .assign result = true ${instance}->${te_attr.GeneratedName} = (${te_dt.ExtName}) ${instance}; - .end if - .elif ( ( 2 == cdt.Core_Typ ) or ( 3 == cdt.Core_Typ ) ) - .// integer or real - .if ( te_attr.DefaultValue != "" ) + .end if + .elif ( ( 2 == s_cdt.Core_Typ ) or ( 3 == s_cdt.Core_Typ ) ) + .// integer or real + .if ( "" != te_attr.DefaultValue ) ${instance}->${te_attr.GeneratedName} = ${te_attr.DefaultValue}; /* DefaultValue */ - .end if - .elif ( 4 == cdt.Core_Typ ) - .// string - .if ( te_attr.DefaultValue != "" ) + .end if + .elif ( 4 == s_cdt.Core_Typ ) + .// string + .if ( "" != te_attr.DefaultValue ) ${te_instance.module}${te_string.strcpy}( ${instance}->${te_attr.GeneratedName}, ${te_attr.DefaultValue} ); /* DefaultValue */ + .end if .end if - .end if .// cdt.Core_Typ == 5 (unique_id) .end if .end if .// @@ -133,13 +132,10 @@ ${te_instance.module}${te_string.strcpy}( ${instance}->${te_attr.GeneratedName}, .assign cmp_element = "" .select many te_attrs related by o_obj->O_ATTR[R102]->TE_ATTR[R2033] where ( selected.Included ) .for each te_attr in te_attrs - .select one obj_attr related by te_attr->O_ATTR[R2033] - .invoke data_type = GetAttributeCodeGenType( obj_attr ) - .assign dt = data_type.dt - .if ( "string" != dt.Name ) - .assign cmp_element = "${selected_var_name}->${te_attr.GeneratedName} == ${te_attr.ParamBuffer}" - .else + .if ( 4 == te_attr.Core_Typ ) .assign cmp_element = "!${te_instance.module}${te_string.strcmp}(${selected_var_name}->${te_attr.GeneratedName}, ${te_attr.ParamBuffer})" + .else + .assign cmp_element = "${selected_var_name}->${te_attr.GeneratedName} == ${te_attr.ParamBuffer}" .end if .assign compare_stmt = compare_stmt + cmp_element .if ( not_last te_attrs ) @@ -155,18 +151,18 @@ ${compare_stmt}\ .param inst_ref o_obj .param inst_ref o_id .// - .select many ident_attr_set related by o_id->O_OIDA[R105]->O_ATTR[R105] - .assign num_ident_attr = cardinality ident_attr_set + .select many o_attrs related by o_id->O_OIDA[R105]->O_ATTR[R105] + .assign num_ident_attr = cardinality o_attrs .// .assign param_list = "" - .assign ident_attr_count = 0 + .assign oida_count = 0 .// .select any te_attr related by o_obj->TE_CLASS[R2019]->TE_ATTR[R2061] where ( selected.prevID == 0 ) .while ( not_empty te_attr ) .if ( te_attr.Included ) - .assign ident_attr_count = ident_attr_count + 1 + .assign oida_count = oida_count + 1 .assign param_list = param_list + te_attr.ParamBuffer - .if ( ident_attr_count < num_ident_attr ) + .if ( oida_count < num_ident_attr ) .assign param_list = param_list + ", " .end if .end if diff --git a/arc/m.component.arc b/arc/m.component.arc old mode 100755 new mode 100644 diff --git a/arc/q.class.arc b/arc/q.class.arc index 1675be7ba..0de9a2aa2 100644 --- a/arc/q.class.arc +++ b/arc/q.class.arc @@ -81,7 +81,7 @@ ${te_target.c2cplusplus_linkage_end} .assign comment = "" .select any te_sys from instances of TE_SYS .if ( not te_sys.InstanceLoading ) - .invoke note = GetObjectAttributeInfoComment( o_attr, TRUE ) + .invoke note = GetObjectAttributeInfoComment( o_attr, true ) .if ( note.result != "" ) .assign comment = "/* ${note.result} */" .end if @@ -115,13 +115,13 @@ ${te_target.c2cplusplus_linkage_end} .// .// Input Parameters: .// Instance reference to O_ATTR. -.// Boolean. If FALSE, comment generated for indentifying -.// and referential attributes only. If TRUE, comment generated for +.// Boolean. If false, comment generated for indentifying +.// and referential attributes only. If true, comment generated for .// naming attributes. .//============================================================================ .function GetObjectAttributeInfoComment .param inst_ref o_attr - .param boolean do_naming_attr_also + .param boolean do_naming_attribs_also .// .assign result = "" .// @@ -168,7 +168,7 @@ ${te_target.c2cplusplus_linkage_end} .end for .// obj_ref in obj_ref_set .end if .// not_empty ref_attr .// - .if ( (result == "") and do_naming_attr_also ) + .if ( (result == "") and do_naming_attribs_also ) .assign result = "- ${o_attr.Name}" .select one dbattr related by o_attr->O_BATTR[R106]->O_DBATTR[R107] .if ( not_empty dbattr ) @@ -440,7 +440,7 @@ ${file_epilogue.body} .select one te_aba related by te_tfr->TE_ABA[R2010] .select one o_tfr related by te_tfr->O_TFR[R2024] .select one rval_te_dt related by o_tfr->S_DT[R116]->TE_DT[R2021] - .assign rval_te_dt.Included = TRUE + .assign rval_te_dt.Included = true .assign prelude = "class" .assign instance_based_self_declaration = "" .if ( o_tfr.Instance_Based == 1 ) diff --git a/arc/q.class.factory.arc b/arc/q.class.factory.arc index fb106a86c..f82041c42 100644 --- a/arc/q.class.factory.arc +++ b/arc/q.class.factory.arc @@ -91,24 +91,23 @@ ${te_class.GeneratedName}_instanceloader( ${te_instance.handle} instance, const .select one o_attr related by te_attr->O_ATTR[R2033] .assign persistent = ( "$l{o_attr.Descrip:Persistent}" != "false" ) .if ( te_attr.translate and persistent ) - .invoke member_type = GetAttributeCodeGenType( o_attr ) - .assign cdt = member_type.cdt - .assign dt = member_type.dt - .if ( empty cdt ) + .invoke r = GetAttributeCodeGenType( o_attr ) + .assign s_cdt = r.cdt + .if ( empty s_cdt ) .// sdt - .elif ( cdt.Core_Typ == 0 ) + .elif ( s_cdt.Core_Typ == 0 ) .// void - .elif ( cdt.Core_Typ == 1 ) + .elif ( s_cdt.Core_Typ == 1 ) .// boolean ${te_instance.self}->${te_attr.GeneratedName} = ( '0' != *avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 2 ) + .elif ( s_cdt.Core_Typ == 2 ) .// integer ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 3 ) + .elif ( s_cdt.Core_Typ == 3 ) .// real - .elif ( cdt.Core_Typ == 4 ) + .elif ( s_cdt.Core_Typ == 4 ) .// string .if ( "Action_Semantics_internal" == te_attr.Name ) ${te_instance.self}->${te_attr.GeneratedName} = (c_t *) ${te_dma.allocate}( avlstring[ ${attribute_number} + 1 ] - avlstring[ ${attribute_number} ] ); @@ -119,7 +118,7 @@ ${te_class.GeneratedName}_instanceloader( ${te_instance.handle} instance, const ${te_instance.module}${te_string.strcpy}( ${te_instance.self}->${te_attr.GeneratedName}, avlstring[ ${attribute_number} ] ); .end if .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 5 ) + .elif ( s_cdt.Core_Typ == 5 ) .// unique_id ${te_instance.self}->${te_attr.GeneratedName} = (${te_instance.handle}) ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .select any o_oida related by o_attr->O_OIDA[R105] where ( selected.Oid_ID == 0 ) @@ -128,27 +127,27 @@ ${te_class.GeneratedName}_instanceloader( ${te_instance.handle} instance, const return_identifier = ${te_instance.self}->${te_attr.GeneratedName}; .end if .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 6 ) + .elif ( s_cdt.Core_Typ == 6 ) .// current_state - .elif ( cdt.Core_Typ == 7 ) + .elif ( s_cdt.Core_Typ == 7 ) .// same as base - .elif ( cdt.Core_Typ == 8 ) + .elif ( s_cdt.Core_Typ == 8 ) .// inst_ref ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 9 ) + .elif ( s_cdt.Core_Typ == 9 ) .// inst_ref_set ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 10 ) + .elif ( s_cdt.Core_Typ == 10 ) .// inst ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 11 ) + .elif ( s_cdt.Core_Typ == 11 ) .// inst ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( cdt.Core_Typ == 12 ) + .elif ( s_cdt.Core_Typ == 12 ) .// inst_ref ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 diff --git a/arc/q.class.instance.dump.arc b/arc/q.class.instance.dump.arc index 7325d093a..e3c67cd16 100644 --- a/arc/q.class.instance.dump.arc +++ b/arc/q.class.instance.dump.arc @@ -6046,7 +6046,7 @@ INSERT INTO TE_SET VALUES ( '${te_set.number_of_containoids}', '${te_set.iterato .end for .select many te_persists from instances of TE_PERSIST .for each te_persist in te_persists -INSERT INTO TE_PERSIST VALUES ( '${te_persist.persist_file}', '${te_persist.class_union}', '${te_persist.instance_cache_depth}', '${te_persist.link_cache_depth}', '${te_persist.check_mark}', '${te_persist.post_link}', '${te_persist.link_type_name}', '${te_persist.link_type_type}', '${te_persist.factory_init}', '${te_persist.commit}', '${te_persist.restore}', '${te_persist.remove}' ); +INSERT INTO TE_PERSIST VALUES ( '${te_persist.persist_file}', '${te_persist.class_union}', '${te_persist.instance_cache_depth}', '${te_persist.link_cache_depth}', '${te_persist.check_mark}', '${te_persist.post_link}', '${te_persist.link_type_name}', '${te_persist.link_type_type}', '${te_persist.factory_init}', '${te_persist.commit}', '${te_persist.restore}', '${te_persist.remove}', '${te_persist.domainnum_name}', '${te_persist.domainnum_type}', '${te_persist.classnum_name}', '${te_persist.classnum_type}', '${te_persist.index_name}', '${te_persist.index_type}', '${te_persist.instid_type}', '${te_persist.instid_name}', '${te_persist.dirty_type}', '${te_persist.dirty_name}', ${te_persist.dirty_dirty}, ${te_persist.dirty_clean} ); .end for .select many te_eqs from instances of TE_EQ .for each te_eq in te_eqs diff --git a/arc/q.class.instance.dumper.arc b/arc/q.class.instance.dumper.arc index 9cdb7b965..1f170c04e 100644 --- a/arc/q.class.instance.dumper.arc +++ b/arc/q.class.instance.dumper.arc @@ -39,8 +39,8 @@ INSERT INTO ${o_obj.Key_Lett} VALUES (\ .while ( not_empty o_attr ) .if ( "${o_attr.Descrip:Persistent}" != "false" ) .assign attributename = o_attr.Name - .invoke d = GetAttributeCodeGenType( o_attr ) - .assign s_dt = d.dt + .invoke r = GetAttributeCodeGenType( o_attr ) + .assign s_dt = r.dt .if ( "string" == s_dt.Name ) .if ( ( "Action_Semantics_internal" == attributename ) or ( "Descrip" == attributename ) ) ${delimiter} ''\\ diff --git a/arc/q.class.pei.arc b/arc/q.class.pei.arc index 114075e14..6bc972bd5 100644 --- a/arc/q.class.pei.arc +++ b/arc/q.class.pei.arc @@ -164,9 +164,9 @@ .param inst_ref i_avl .assign attr_result = "0" .// Get the attribute data type. Strings need to be quoted. - .invoke member_type = GetAttributeCodeGenType( o_attr ) - .assign cdt = member_type.cdt - .if ( 4 == cdt.Core_Typ ) + .invoke r = GetAttributeCodeGenType( o_attr ) + .assign s_cdt = r.cdt + .if ( 4 == s_cdt.Core_Typ ) .// string .if ( empty i_avl ) .// In absence of a populated attribute, use the attribute default value. diff --git a/arc/q.datatype.arc b/arc/q.datatype.arc index 04f795970..c1fb98c77 100644 --- a/arc/q.datatype.arc +++ b/arc/q.datatype.arc @@ -34,53 +34,51 @@ .function GetAttributeCodeGenType .param inst_ref o_attr .// - .select one dt related by o_attr->S_DT[R114] - .select one s_udt related by dt->S_UDT[R17] + .select one s_dt related by o_attr->S_DT[R114] + .select one s_udt related by s_dt->S_UDT[R17] .if ( not_empty s_udt ) - .invoke i = GetBaseTypeForUDT( s_udt ) - .assign dt = i.result + .invoke r = GetBaseTypeForUDT( s_udt ) + .assign s_dt = r.result .end if - .select one cdt related by dt->S_CDT[R17] + .select one s_cdt related by s_dt->S_CDT[R17] .// - .if ( empty cdt ) - .select one edt related by dt->S_EDT[R17] - .if ( empty edt ) - .select one s_sdt related by dt->S_SDT[R17] + .if ( empty s_cdt ) + .select one s_edt related by s_dt->S_EDT[R17] + .if ( empty s_edt ) + .select one s_sdt related by s_dt->S_SDT[R17] .if ( empty s_sdt ) - .select one s_irdt related by dt->S_IRDT[R17] + .select one s_irdt related by s_dt->S_IRDT[R17] .if ( empty s_irdt ) .print "Error in attribute ${o_attr.Name}" - .print "with data type ${dt.Name}" + .print "with data type ${s_dt.Name}" .exit 100 .end if .end if .else .// Enum, use integer type. - .select any cdt from instances of S_CDT where ( selected.Core_Typ == 2 ) + .// CDS Some day we should pass along the enumeration type. + .select any s_cdt from instances of S_CDT where ( selected.Core_Typ == 2 ) .end if .end if .// - .if ( not_empty cdt) - .if ( 7 == cdt.Core_Typ ) - .// cdt.Core_Typ is "same_as" - .select one base_attr related by o_attr->O_RATTR[R106]->O_BATTR[R113]->O_ATTR[R106] - .if ( empty base_attr ) - .select one obj related by o_attr->O_OBJ[R102] - .print "\nCould not find O_BATTR for object ${obj.Name} (${obj.Key_Lett}) attribute ${o_attr.Name} !" - .print "\nDid you combine a referential and then rename the combined attribute?" - .exit 101 + .if ( not_empty s_cdt ) + .if ( 7 == s_cdt.Core_Typ ) + .// s_cdt.Core_Typ is "same_as" + .select one base_o_attr related by o_attr->O_RATTR[R106]->O_BATTR[R113]->O_ATTR[R106] + .if ( empty base_o_attr ) + .select one o_obj related by o_attr->O_OBJ[R102] + .print "\nCould not find O_BATTR for object ${o_obj.Name} (${o_obj.Key_Lett}) attribute ${o_attr.Name} !" + .print "\nDid you combine a referential and then rename the combined attribute?" + .exit 101 + .end if + .// Note: the following is a recursive call to this function + .invoke r = GetAttributeCodeGenType( base_o_attr ) + .assign s_dt = r.dt + .assign s_cdt = r.cdt .end if - .// Note: the following is a recursive call to this function - .invoke baseDataType = GetAttributeCodeGenType( base_attr ) - .assign dt = baseDataType.dt - .assign cdt = baseDataType.cdt - .end if .end if - .select one te_dt related by dt->TE_DT[R2021] - .assign te_dt.Included = TRUE - .assign attr_dt = dt - .assign attr_cdt = cdt - .assign attr_result = te_dt.ExtName + .assign attr_dt = s_dt + .assign attr_cdt = s_cdt .end function .// .//============================================================================ @@ -88,8 +86,8 @@ .//============================================================================ .function PersistLinkType .select any te_prefix from instances of TE_PREFIX - .invoke instid = GetPersistentInstanceIdentifierVariable() - .assign attr_type = "struct { ${instid.instid_type} owner, left, right, assoc; }" + .select any te_persist from instances of TE_PERSIST + .assign attr_type = "struct { ${te_persist.instid_type} owner, left, right, assoc; }" .assign attr_name = te_prefix.type + "link_t" .end function .// diff --git a/arc/q.mc_metamodel.populate.arc b/arc/q.mc_metamodel.populate.arc index f5344c773..723b1d671 100644 --- a/arc/q.mc_metamodel.populate.arc +++ b/arc/q.mc_metamodel.populate.arc @@ -1118,7 +1118,7 @@ .select one te_dt related by c_io->S_DT[R4008]->TE_DT[R2021] .// If we are using TLM ports, convert booleans to integers .if ( "SystemC" == te_target.language ) - .if ( ( te_dt.Core_Typ == 1 ) and ( te_sys.SystemCPortsType == "TLM" ) ) + .if ( ( 1 == te_dt.Core_Typ ) and ( te_sys.SystemCPortsType == "TLM" ) ) .assign te_dt = converted_bool_te_dt .end if .end if @@ -1151,7 +1151,7 @@ .select one te_dt related by c_io->S_DT[R4008]->TE_DT[R2021] .// If we are using TLM ports, convert booleans to integers .if ( "SystemC" == te_target.language ) - .if ( ( te_dt.Core_Typ == 1 ) and ( te_sys.SystemCPortsType == "TLM" ) ) + .if ( ( 1 == te_dt.Core_Typ ) and ( te_sys.SystemCPortsType == "TLM" ) ) .assign te_dt = converted_bool_te_dt .end if .end if @@ -1562,14 +1562,14 @@ .end while .assign te_attr.array_spec = array_spec .select one te_dt related by o_attr->S_DT[R114]->TE_DT[R2021] - .assign te_attr.GeneratedType = te_dt.ExtName + .// Potentially substitute data type for base attribute data type. .if ( 7 == te_dt.Core_Typ ) .// referential attribute .invoke r = GetAttributeCodeGenType( o_attr ) - .assign te_attr.GeneratedType = r.result .assign s_dt = r.dt .select one te_dt related by s_dt->TE_DT[R2021] .end if + .assign te_attr.GeneratedType = te_dt.ExtName .assign te_class.attribute_format = ( te_class.attribute_format + delimiter ) + te_dt.string_format .assign te_class.attribute_dump = ( te_class.attribute_dump + ",\n self->" ) + te_attr.GeneratedName .// In the C model compiler, treat strings as arrays. diff --git a/arc/q.names.arc b/arc/q.names.arc index 8a3957497..83730aadf 100644 --- a/arc/q.names.arc +++ b/arc/q.names.arc @@ -446,28 +446,3 @@ .assign attr_arglist = " const s1_t operation, const ${te_typemap.domain_number_name} domain,\n const ${te_typemap.object_number_name} owning_class, const ${te_typemap.instance_index_name} ri,\n ${te_instance.handle} left, const ${te_typemap.object_number_name} l,\n ${te_instance.handle} right, const ${te_typemap.object_number_name} r,\n ${te_instance.handle} assoc, const ${te_typemap.object_number_name} a" .end function .// -.//============================================================================ -.// Return the name of the extended attribute variable for use by -.// the persistent restore operation. This attribute represents the -.// instance index of the class extent at time of persistent stowage -.// together with the class number (across domains) of the class. -.// Also return the types for this attribute variable. -.//============================================================================ -.function GetPersistentInstanceIdentifierVariable - .// - .select any te_typemap from instances of TE_TYPEMAP - .assign attr_domainnum_name = "domainnum" - .assign attr_domainnum_type = te_typemap.domain_number_name - .assign attr_classnum_name = "classnum" - .assign attr_classnum_type = te_typemap.object_number_name - .assign attr_index_name = "index" - .assign attr_index_type = te_typemap.instance_index_name - .assign attr_instid_typedef = "struct {\n ${attr_domainnum_type} ${attr_domainnum_name};\n ${attr_classnum_type} ${attr_classnum_name};\n ${attr_index_type} ${attr_index_name};\n}" - .assign attr_instid_type = "InstanceIdentifier_t" - .assign attr_instid_name = "instance_identifier" - .assign attr_dirty_type = "s1_t" - .assign attr_dirty_name = "persist_dirty" - .assign attr_dirty_dirty = 1 - .assign attr_dirty_clean = 0 -.end function -.// diff --git a/arc/q.smt.generate.arc b/arc/q.smt.generate.arc index 3bff48fb5..50ccda802 100644 --- a/arc/q.smt.generate.arc +++ b/arc/q.smt.generate.arc @@ -1164,8 +1164,8 @@ .select any core_s_dt from instances of S_DT where ( false ) .select one s_udt related by s_dt->S_UDT[R17] .if ( not_empty s_udt ) - .invoke i = GetBaseTypeForUDT( s_udt ) - .assign core_s_dt = i.result + .invoke r = GetBaseTypeForUDT( s_udt ) + .assign core_s_dt = r.result .end if .if (not_empty core_s_dt) .assign s_dt = core_s_dt diff --git a/arc/specialized/q.mc3020.arc b/arc/specialized/q.mc3020.arc index 92cd2e8e1..42b3d5cc8 100644 --- a/arc/specialized/q.mc3020.arc +++ b/arc/specialized/q.mc3020.arc @@ -167,6 +167,7 @@ .function factory_TE_PERSIST .param inst_ref te_persist .select any te_prefix from instances of TE_PREFIX + .select any te_typemap from instances of TE_TYPEMAP .assign te_persist.class_union = "" .assign te_persist.instance_cache_depth = te_prefix.define_u + "PERSIST_INST_CACHE_DEPTH" .assign te_persist.check_mark = "check_mark_post" @@ -179,6 +180,23 @@ .assign te_persist.restore = te_prefix.result + "PersistenceRestore" .assign te_persist.remove = te_prefix.result + "PersistDelete" .assign te_persist.link_cache_depth = te_prefix.define_u + "PERSIST_LINK_CACHE_DEPTH" + .// Return the name of the extended attribute variable for use by + .// the persistent restore operation. This attribute represents the + .// instance index of the class extent at time of persistent stowage + .// together with the class number (across domains) of the class. + .// Also return the types for this attribute variable. + .assign te_persist.domainnum_name = "domainnum" + .assign te_persist.domainnum_type = te_typemap.domain_number_name + .assign te_persist.classnum_name = "classnum" + .assign te_persist.classnum_type = te_typemap.object_number_name + .assign te_persist.index_name = "index" + .assign te_persist.index_type = te_typemap.instance_index_name + .assign te_persist.instid_type = "InstanceIdentifier_t" + .assign te_persist.instid_name = "instance_identifier" + .assign te_persist.dirty_type = "s1_t" + .assign te_persist.dirty_name = "persist_dirty" + .assign te_persist.dirty_dirty = 1 + .assign te_persist.dirty_clean = 0 .end function .// .// @@ -389,6 +407,8 @@ .function factory_factory .create object instance i_te_prefix of TE_PREFIX .invoke factory_TE_PREFIX( i_te_prefix ) + .create object instance i_te_typemap of TE_TYPEMAP + .invoke factory_TE_TYPEMAP( i_te_typemap ) .create object instance i_te_container of TE_CONTAINER .invoke factory_TE_CONTAINER( i_te_container ) .create object instance i_te_copyright of TE_COPYRIGHT @@ -419,8 +439,6 @@ .invoke factory_TE_THREAD( i_te_thread ) .create object instance i_te_tim of TE_TIM .invoke factory_TE_TIM( i_te_tim ) - .create object instance i_te_typemap of TE_TYPEMAP - .invoke factory_TE_TYPEMAP( i_te_typemap ) .create object instance i_te_callout of TE_CALLOUT .invoke factory_TE_CALLOUT( i_te_callout ) .create object instance i_te_trace of TE_TRACE diff --git a/arc/specialized/sys.arc b/arc/specialized/sys.arc index 3108269e2..a27f403df 100644 --- a/arc/specialized/sys.arc +++ b/arc/specialized/sys.arc @@ -211,7 +211,6 @@ .// .// function-based archetype generation .// -.invoke instid = GetPersistentInstanceIdentifierVariable() .invoke event_prioritization_needed = GetSystemEventPrioritizationNeeded() .invoke non_self_event_queue_needed = GetSystemNonSelfEventQueueNeeded() .invoke self_event_queue_needed = GetSystemSelfEventQueueNeeded() @@ -279,7 +278,7 @@ .invoke persist_link_info = PersistLinkType() .assign link_type_name = persist_link_info.name .assign link_type_type = persist_link_info.type - .assign inst_id_in_handle = " ${instid.dirty_type} ${instid.dirty_name};\n" + .assign inst_id_in_handle = " ${te_persist.dirty_type} ${te_persist.dirty_name};\n" .include "${te_file.arc_path}/t.sys_persist.c" .emit to file "${te_file.system_source_path}/${te_file.persist}.${te_file.src_file_ext}" .// diff --git a/arc/specialized/t.sys_types.h b/arc/specialized/t.sys_types.h index b8cdd65b4..fc09e477b 100644 --- a/arc/specialized/t.sys_types.h +++ b/arc/specialized/t.sys_types.h @@ -121,7 +121,11 @@ typedef ${te_typemap.event_number_type} ${te_typemap.event_number_name}; typedef ${te_typemap.event_flags_type} ${te_typemap.event_flags_name}; typedef ${te_typemap.event_priority_type} ${te_typemap.event_priority_name}; typedef ${te_typemap.SEM_cell_type} ${te_typemap.SEM_cell_name}; -typedef ${instid.instid_typedef} ${instid.instid_type}; +typedef struct { + ${te_persist.domainnum_type} ${te_persist.domainnum_name}; + ${te_persist.classnum_type} ${te_persist.classnum_name}; + ${te_persist.index_type} ${te_persist.index_name}; +} ${te_persist.instid_type}; .if ( te_sys.PersistentClassCount > 0 ) typedef ${link_type_type} ${link_type_name}; .end if diff --git a/arc/t.sys_factory.c b/arc/t.sys_factory.c index 80562ef39..1d487f61a 100644 --- a/arc/t.sys_factory.c +++ b/arc/t.sys_factory.c @@ -87,7 +87,7 @@ Escher_iHandle_t Escher_instance_cache[ 1000000 ]; { /* Use this interface to create persistent instances. */ ${te_instance.handle} instance = ${te_instance.scope}${te_instance.create}( domain_num, class_num ); /* Mark the persistent instance as "clean". */ - instance->${instid.dirty_name} = ${instid.dirty_clean}; + instance->${te_persist.dirty_name} = ${te_persist.dirty_clean}; ${persist_check_mark.name}( instance, ${domain_num_var}, class_num ); return instance; } diff --git a/arc/t.sys_persist.c b/arc/t.sys_persist.c index 78f9ac9c6..3397a1f3c 100644 --- a/arc/t.sys_persist.c +++ b/arc/t.sys_persist.c @@ -64,7 +64,7 @@ extern ${te_cia.class_info_type} * const * const ${te_cia.class_info_name}[]; * instances/links. */ typedef struct { - ${instid.instid_type} ${instid.instid_name}; + ${te_persist.instid_type} ${te_persist.instid_name}; ${te_instance.handle} instance; } persist_instance_t; typedef struct { u1_t operation; persist_instance_t inst; } op_inst_t; @@ -250,8 +250,8 @@ void ) { /* Check if instance is "clean". If so (first mod), then queue it. */ - if ( instance->${instid.dirty_name} == ${instid.dirty_clean} ) { - instance->${instid.dirty_name} = ${instid.dirty_dirty}; /* Mark dirty. */ + if ( instance->${te_persist.dirty_name} == ${te_persist.dirty_clean} ) { + instance->${te_persist.dirty_name} = ${te_persist.dirty_dirty}; /* Mark dirty. */ Escher_PostPersistentInstance( instance, domain_num, class_num, 0x81 ); } } @@ -384,7 +384,7 @@ i_t ili->inst.inst.instance_identifier.index, dci->size_no_rel, ( c_t const * ) ili->inst.inst.instance, PERSIST_INSTANCE_TYPE ) ) >= 0 ) { - ili->inst.inst.instance->${instid.dirty_name} = ${instid.dirty_clean}; + ili->inst.inst.instance->${te_persist.dirty_name} = ${te_persist.dirty_clean}; rc = 0; } else { ${te_callout.persistence_error}( rc ); @@ -473,7 +473,7 @@ i_t cn = (${te_typemap.object_number_name}) ( ( key >> 16 ) & 0x000000ff ); dn = (${te_typemap.domain_number_name}) ( ( key >> 24 ) & 0x000000ff ); dci = *( ${te_cia.class_info_name}[ dn ] + cn ); - i1->${instid.dirty_name} = ${instid.dirty_clean}; /* Mark as "clean". */ + i1->${te_persist.dirty_name} = ${te_persist.dirty_clean}; /* Mark as "clean". */ .if ( te_sys.CollectionsFlavor == 20 ) node = dci->container + ii; /* pointer arithmetic */ ${te_dlist.remove_node}( &dci->inactive, node ); diff --git a/schema/sql/xtumlmc_schema.sql b/schema/sql/xtumlmc_schema.sql index 6ab04d24e..a0f722bb8 100644 --- a/schema/sql/xtumlmc_schema.sql +++ b/schema/sql/xtumlmc_schema.sql @@ -2832,7 +2832,19 @@ CREATE TABLE TE_PERSIST ( factory_init STRING, commit STRING, restore STRING, - remove STRING ); + remove STRING, + domainnum_name STRING, + domainnum_type STRING, + classnum_name STRING, + classnum_type STRING, + index_name STRING, + index_type STRING, + instid_type STRING, + instid_name STRING, + dirty_type STRING, + dirty_name STRING, + dirty_dirty INTEGER, + dirty_clean INTEGER ); -- Class: 2040. event queue CREATE TABLE TE_EQ ( From 033444218d0a8ba5a53995d4b91a85c5ee5cad70 Mon Sep 17 00:00:00 2001 From: Cortland Starrett Date: Mon, 25 Feb 2013 16:54:42 -0500 Subject: [PATCH 3/4] Modified the CodeGenType routine to return a single te_dt rather than returning s_dt plus s_cdt. #4 --- arc/frag_util.arc | 12 +++++------- arc/q.class.factory.arc | 30 +++++++++++++++--------------- arc/q.class.instance.dumper.arc | 6 +++--- arc/q.class.link.arc | 6 ++---- arc/q.class.pei.arc | 4 ++-- arc/q.class.where.arc | 6 +++--- arc/q.datatype.arc | 7 +++---- arc/q.mc_metamodel.populate.arc | 22 +++++++++++----------- arc/q.oal.analyze.arc | 24 ++++++++++++------------ 9 files changed, 56 insertions(+), 61 deletions(-) diff --git a/arc/frag_util.arc b/arc/frag_util.arc index 35fea0761..0833a1c5a 100644 --- a/arc/frag_util.arc +++ b/arc/frag_util.arc @@ -88,23 +88,21 @@ ${indent.result}} .select one o_attr related by te_attr->O_ATTR[R2033] .if ( te_attr.translate ) .invoke r = GetAttributeCodeGenType( o_attr ) - .assign s_cdt = r.cdt - .assign s_dt = r.dt - .if ( not_empty s_cdt ) - .if ( 5 == s_cdt.Core_Typ ) + .assign te_dt = r.result + .if ( not_empty te_dt ) + .if ( 5 == te_dt.Core_Typ ) .// unique_id .select any o_oida related by o_attr->O_OIDA[R105] .if ( not_empty o_oida ) - .select one te_dt related by s_dt->TE_DT[R2021] .assign result = true ${instance}->${te_attr.GeneratedName} = (${te_dt.ExtName}) ${instance}; .end if - .elif ( ( 2 == s_cdt.Core_Typ ) or ( 3 == s_cdt.Core_Typ ) ) + .elif ( ( 2 == te_dt.Core_Typ ) or ( 3 == te_dt.Core_Typ ) ) .// integer or real .if ( "" != te_attr.DefaultValue ) ${instance}->${te_attr.GeneratedName} = ${te_attr.DefaultValue}; /* DefaultValue */ .end if - .elif ( 4 == s_cdt.Core_Typ ) + .elif ( 4 == te_dt.Core_Typ ) .// string .if ( "" != te_attr.DefaultValue ) ${te_instance.module}${te_string.strcpy}( ${instance}->${te_attr.GeneratedName}, ${te_attr.DefaultValue} ); /* DefaultValue */ diff --git a/arc/q.class.factory.arc b/arc/q.class.factory.arc index f82041c42..01dc9bf9e 100644 --- a/arc/q.class.factory.arc +++ b/arc/q.class.factory.arc @@ -92,22 +92,22 @@ ${te_class.GeneratedName}_instanceloader( ${te_instance.handle} instance, const .assign persistent = ( "$l{o_attr.Descrip:Persistent}" != "false" ) .if ( te_attr.translate and persistent ) .invoke r = GetAttributeCodeGenType( o_attr ) - .assign s_cdt = r.cdt - .if ( empty s_cdt ) + .assign te_dt = r.result + .if ( te_dt.Core_Typ < 0 ) .// sdt - .elif ( s_cdt.Core_Typ == 0 ) + .elif ( 0 == te_dt.Core_Typ ) .// void - .elif ( s_cdt.Core_Typ == 1 ) + .elif ( 1 == te_dt.Core_Typ ) .// boolean ${te_instance.self}->${te_attr.GeneratedName} = ( '0' != *avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 2 ) + .elif ( 2 == te_dt.Core_Typ ) .// integer ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 3 ) + .elif ( 3 == te_dt.Core_Typ ) .// real - .elif ( s_cdt.Core_Typ == 4 ) + .elif ( 4 == te_dt.Core_Typ ) .// string .if ( "Action_Semantics_internal" == te_attr.Name ) ${te_instance.self}->${te_attr.GeneratedName} = (c_t *) ${te_dma.allocate}( avlstring[ ${attribute_number} + 1 ] - avlstring[ ${attribute_number} ] ); @@ -118,7 +118,7 @@ ${te_class.GeneratedName}_instanceloader( ${te_instance.handle} instance, const ${te_instance.module}${te_string.strcpy}( ${te_instance.self}->${te_attr.GeneratedName}, avlstring[ ${attribute_number} ] ); .end if .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 5 ) + .elif ( 5 == te_dt.Core_Typ ) .// unique_id ${te_instance.self}->${te_attr.GeneratedName} = (${te_instance.handle}) ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .select any o_oida related by o_attr->O_OIDA[R105] where ( selected.Oid_ID == 0 ) @@ -127,27 +127,27 @@ ${te_class.GeneratedName}_instanceloader( ${te_instance.handle} instance, const return_identifier = ${te_instance.self}->${te_attr.GeneratedName}; .end if .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 6 ) + .elif ( 6 == te_dt.Core_Typ ) .// current_state - .elif ( s_cdt.Core_Typ == 7 ) + .elif ( 7 == te_dt.Core_Typ ) .// same as base - .elif ( s_cdt.Core_Typ == 8 ) + .elif ( 8 == te_dt.Core_Typ ) .// inst_ref ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 9 ) + .elif ( 9 == te_dt.Core_Typ ) .// inst_ref_set ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 10 ) + .elif ( 10 == te_dt.Core_Typ ) .// inst ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 11 ) + .elif ( 11 == te_dt.Core_Typ ) .// inst ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 - .elif ( s_cdt.Core_Typ == 12 ) + .elif ( 12 == te_dt.Core_Typ ) .// inst_ref ${te_instance.self}->${te_attr.GeneratedName} = ${te_instance.module}${te_string.atoi}( avlstring[ ${attribute_number} ] ); .assign attribute_number = attribute_number + 1 diff --git a/arc/q.class.instance.dumper.arc b/arc/q.class.instance.dumper.arc index 1f170c04e..1652637ef 100644 --- a/arc/q.class.instance.dumper.arc +++ b/arc/q.class.instance.dumper.arc @@ -40,14 +40,14 @@ INSERT INTO ${o_obj.Key_Lett} VALUES (\ .if ( "${o_attr.Descrip:Persistent}" != "false" ) .assign attributename = o_attr.Name .invoke r = GetAttributeCodeGenType( o_attr ) - .assign s_dt = r.dt - .if ( "string" == s_dt.Name ) + .assign te_dt = r.result + .if ( "string" == te_dt.Name ) .if ( ( "Action_Semantics_internal" == attributename ) or ( "Descrip" == attributename ) ) ${delimiter} ''\\ .else ${delimiter} '$${$l{o_obj.Key_Lett}.${attributename}}'\ .end if - .elif ( "unique_id" == s_dt.Name ) + .elif ( "unique_id" == te_dt.Name ) \\ ..if ( "un-initialized" == "$${$l{o_obj.Key_Lett}.${attributename}}" ) ${delimiter} 0\\ diff --git a/arc/q.class.link.arc b/arc/q.class.link.arc index afba2efbf..1163c5dc7 100644 --- a/arc/q.class.link.arc +++ b/arc/q.class.link.arc @@ -875,8 +875,7 @@ ${aoth_fundamentals.body}\ .if ( ref_te_attr.translate ) .select one ident_te_attr related by ident_attr->TE_ATTR[R2033] .invoke r = GetAttributeCodeGenType( ref_attr ) - .assign s_dt = r.dt - .select one te_dt related by s_dt->TE_DT[R2021] + .assign te_dt = r.result .assign initial_value = te_dt.Initial_Value .include "${te_file.arc_path}/t.class.set_refs.c" .end if @@ -898,8 +897,7 @@ ${aoth_fundamentals.body}\ .select one ref_te_attr related by ref_attr->TE_ATTR[R2033] .if ( ref_te_attr.translate ) .invoke r = GetAttributeCodeGenType( ref_attr ) - .assign s_dt = r.dt - .select one te_dt related by s_dt->TE_DT[R2021] + .assign te_dt = r.result .include "${te_file.arc_path}/t.class.reset_refs.c" .end if .end for .// ref_attr in ref_attr_set diff --git a/arc/q.class.pei.arc b/arc/q.class.pei.arc index 6bc972bd5..21798e15f 100644 --- a/arc/q.class.pei.arc +++ b/arc/q.class.pei.arc @@ -165,8 +165,8 @@ .assign attr_result = "0" .// Get the attribute data type. Strings need to be quoted. .invoke r = GetAttributeCodeGenType( o_attr ) - .assign s_cdt = r.cdt - .if ( 4 == s_cdt.Core_Typ ) + .assign te_dt = r.result + .if ( 4 == te_dt.Core_Typ ) .// string .if ( empty i_avl ) .// In absence of a populated attribute, use the attribute default value. diff --git a/arc/q.class.where.arc b/arc/q.class.where.arc index 8742e6a1a..67ecd0075 100644 --- a/arc/q.class.where.arc +++ b/arc/q.class.where.arc @@ -50,10 +50,10 @@ .end for .// .select any te_attr related by te_class->TE_ATTR[R2061] where ( selected.prevID == 0 ) - .assign ident_attr_count = 0 + .assign oida_count = 0 .while ( not_empty te_attr ) .if ( te_attr.Included ) - .assign ident_attr_count = ident_attr_count + 1 + .assign oida_count = oida_count + 1 .assign param_list = param_list + te_attr.GeneratedType .if ( not gen_declaration ) .if ( te_attr.dimensions == 0 ) @@ -68,7 +68,7 @@ .end if .assign param_list = param_list + te_attr.array_spec .// - .if ( ident_attr_count < num_ident_attr ) + .if ( oida_count < num_ident_attr ) .assign param_list = param_list + ", " .assign compare_stmt = compare_stmt + " && " .end if diff --git a/arc/q.datatype.arc b/arc/q.datatype.arc index c1fb98c77..de582d942 100644 --- a/arc/q.datatype.arc +++ b/arc/q.datatype.arc @@ -40,6 +40,7 @@ .invoke r = GetBaseTypeForUDT( s_udt ) .assign s_dt = r.result .end if + .select one te_dt related by s_dt->TE_DT[R2021] .select one s_cdt related by s_dt->S_CDT[R17] .// .if ( empty s_cdt ) @@ -73,12 +74,10 @@ .end if .// Note: the following is a recursive call to this function .invoke r = GetAttributeCodeGenType( base_o_attr ) - .assign s_dt = r.dt - .assign s_cdt = r.cdt + .assign te_dt = r.result .end if .end if - .assign attr_dt = s_dt - .assign attr_cdt = s_cdt + .assign attr_result = te_dt .end function .// .//============================================================================ diff --git a/arc/q.mc_metamodel.populate.arc b/arc/q.mc_metamodel.populate.arc index 723b1d671..981cb4398 100644 --- a/arc/q.mc_metamodel.populate.arc +++ b/arc/q.mc_metamodel.populate.arc @@ -722,6 +722,7 @@ .else .assign te_dt.ExtName = te_dt.Name + "_t" .end if + .// CDS We should some day pass along the EDT. .assign te_dt.Core_Typ = 2 .assign te_dt.Is_Enum = true .assign te_dt.Initial_Value = ( te_dt.Owning_Dom_Name + "_" ) + ( te_dt.Name + "__UNINITIALIZED__e" ) @@ -1468,7 +1469,7 @@ .select one te_dt related by s_sync->S_DT[R25]->TE_DT[R2021] .select many te_parms related by s_sync->S_SPARM[R24]->TE_PARM[R2030] .invoke r = FactoryTE_ABA( te_c, te_parms, te_c.Name, te_sync.GeneratedName, "S_SYNC", te_dt ) - .assign te_aba = r.te_aba + .assign te_aba = r.result .// relate te_sync to te_aba across R2010; .assign te_sync.AbaID = te_aba.AbaID .// end relate @@ -1566,8 +1567,7 @@ .if ( 7 == te_dt.Core_Typ ) .// referential attribute .invoke r = GetAttributeCodeGenType( o_attr ) - .assign s_dt = r.dt - .select one te_dt related by s_dt->TE_DT[R2021] + .assign te_dt = r.result .end if .assign te_attr.GeneratedType = te_dt.ExtName .assign te_class.attribute_format = ( te_class.attribute_format + delimiter ) + te_dt.string_format @@ -1594,7 +1594,7 @@ .select one te_dt related by o_attr->S_DT[R114]->TE_DT[R2021] .assign te_parms = empty_te_parms .invoke r = FactoryTE_ABA( te_c, te_parms, "", te_dbattr.GeneratedName, "O_DBATTR", te_dt ) - .assign te_aba = r.te_aba + .assign te_aba = r.result .// relate te_dbattr to te_aba across R2010; .assign te_dbattr.AbaID = te_aba.AbaID .// end relate @@ -1630,7 +1630,7 @@ .select one te_dt related by o_tfr->S_DT[R116]->TE_DT[R2021] .select many te_parms related by o_tfr->O_TPARM[R117]->TE_PARM[R2029] .invoke r = FactoryTE_ABA( te_c, te_parms, te_class.GeneratedName, te_tfr.GeneratedName, "O_TFR", te_dt ) - .assign te_aba = r.te_aba + .assign te_aba = r.result .// relate te_tfr to te_aba across R2010; .assign te_tfr.AbaID = te_aba.AbaID .// end relate @@ -1760,7 +1760,7 @@ .assign te_act.GeneratedName = ( te_class.GeneratedName + class_based ) + ( "_act" + "${te_state.Numb}" ) .//.select many te_parms related by sm_state->SM_SEME[R503]->SM_SEVT[R503]->SM_EVT[R525]->SM_EVTDI[R532]->TE_PARM[R2031] .invoke r = FactoryTE_ABA( te_c, empty_te_parms, "", te_act.GeneratedName, "SM_ACT", void_te_dt ) - .assign te_aba = r.te_aba + .assign te_aba = r.result .// relate te_act to te_aba across R2010; .assign te_act.AbaID = te_aba.AbaID .// end relate @@ -1792,7 +1792,7 @@ .assign te_act.number = counter .//.select many te_parms related by sm_act->SM_AH[R514]->SM_TAH[R513]->SM_TXN[R530]->SM_NSTXN[R507]->SM_SEME[R504]->SM_SEVT[R503]->SM_EVT[R525]->SM_EVTDI[R532]->TE_PARM[R2031] .invoke r = FactoryTE_ABA( te_c, empty_te_parms, "", te_act.GeneratedName, "SM_ACT", void_te_dt ) - .assign te_aba = r.te_aba + .assign te_aba = r.result .// relate te_act to te_aba across R2010; .assign te_act.AbaID = te_aba.AbaID .// end relate @@ -1942,7 +1942,7 @@ .for each te_parm in te_parms .// If we are using TLM ports, convert booleans to integers .select one param_te_dt related by te_parm->TE_DT[R2049] - .if ( param_te_dt.Core_Typ == 1 ) + .if ( 1 == param_te_dt.Core_Typ ) .// relate te_part to converted_bool_te_dt across R2049; .assign te_parm.te_dtID = converted_bool_te_dt.ID .// end relate @@ -1959,7 +1959,7 @@ .assign te_parms = te_parms | polymorphic_te_parm .end if .invoke r = FactoryTE_ABA( te_c, te_parms, te_mact.ComponentName, te_mact.GeneratedName, "TE_MACT", te_dt ) - .assign te_aba = r.te_aba + .assign te_aba = r.result .// relate te_mact to te_aba across R2010; .assign te_mact.AbaID = te_aba.AbaID .// end relate @@ -2018,7 +2018,7 @@ .select one te_dt related by s_brg->S_DT[R20]->TE_DT[R2021] .select many te_parms related by s_brg->S_BPARM[R21]->TE_PARM[R2028] .invoke r = FactoryTE_ABA( te_c, te_parms, te_ee.RegisteredName, te_brg.GeneratedName, "S_BRG", te_dt ) - .assign te_aba = r.te_aba + .assign te_aba = r.result .// relate te_brg to te_aba across R2010; .assign te_brg.AbaID = te_aba.AbaID .// end relate @@ -2092,7 +2092,7 @@ .if ( te_aba.dimensions > 0 ) .assign te_aba.ReturnDataType = te_aba.ReturnDataType + " *" .end if - .assign attr_te_aba = te_aba + .assign attr_result = te_aba .end function .// .// diff --git a/arc/q.oal.analyze.arc b/arc/q.oal.analyze.arc index 9e4bde7d1..c168851c0 100644 --- a/arc/q.oal.analyze.arc +++ b/arc/q.oal.analyze.arc @@ -553,13 +553,13 @@ .// *** Provide a key without parenthesis. .select any first_te_attr related by te_class->TE_ATTR[R2061] where ( selected.prevID == 0 ) .assign te_attr = first_te_attr - .assign ident_attr_count = 0 + .assign oida_count = 0 .while ( not_empty te_attr ) .select one o_attr related by te_attr->O_ATTR[R2033] .if ( te_attr.Included ) - .assign ident_attr_count = ident_attr_count + 1 + .assign oida_count = oida_count + 1 .assign where_spec = where_spec + "selected.${o_attr.Name} == ?" - .if ( ident_attr_count < num_ident_attr ) + .if ( oida_count < num_ident_attr ) .assign where_spec = where_spec + " AND " .end if .end if @@ -583,13 +583,13 @@ .assign where_spec = "(" .assign where_key = "${te_class.Key_Lett}_Key${key_number}_mcw${info.unique_num}" .assign te_attr = first_te_attr - .assign ident_attr_count = 0 + .assign oida_count = 0 .while ( not_empty te_attr ) .select one o_attr related by te_attr->O_ATTR[R2033] .if ( te_attr.Included ) - .assign ident_attr_count = ident_attr_count + 1 + .assign oida_count = oida_count + 1 .assign where_spec = where_spec + "selected.${o_attr.Name} == ?" - .if ( ident_attr_count < num_ident_attr ) + .if ( oida_count < num_ident_attr ) .assign where_spec = where_spec + " AND " .else .assign where_spec = where_spec + ")" @@ -616,13 +616,13 @@ .assign where_spec = "(" .assign where_key = "${te_class.Key_Lett}_Key${key_number}_mcw${info.unique_num}" .assign te_attr = first_te_attr - .assign ident_attr_count = 0 + .assign oida_count = 0 .while ( not_empty te_attr ) .select one o_attr related by te_attr->O_ATTR[R2033] .if ( te_attr.Included ) - .assign ident_attr_count = ident_attr_count + 1 + .assign oida_count = oida_count + 1 .assign where_spec = where_spec + "(selected.${o_attr.Name} == ?)" - .if ( ident_attr_count < num_ident_attr ) + .if ( oida_count < num_ident_attr ) .assign where_spec = where_spec + " AND " .else .assign where_spec = where_spec + ")" @@ -647,13 +647,13 @@ .assign where_spec = "" .assign where_key = "${te_class.Key_Lett}_Key${key_number}_mcw${info.unique_num}" .assign te_attr = first_te_attr - .assign ident_attr_count = 0 + .assign oida_count = 0 .while ( not_empty te_attr ) .select one o_attr related by te_attr->O_ATTR[R2033] .if ( te_attr.Included ) - .assign ident_attr_count = ident_attr_count + 1 + .assign oida_count = oida_count + 1 .assign where_spec = where_spec + "(selected.${o_attr.Name} == ?)" - .if ( ident_attr_count < num_ident_attr ) + .if ( oida_count < num_ident_attr ) .assign where_spec = where_spec + " AND " .end if .end if From b294d9f3627337d0c3d0cbfbdc7b55d287d8a107 Mon Sep 17 00:00:00 2001 From: Cortland Starrett Date: Tue, 26 Feb 2013 08:15:57 -0500 Subject: [PATCH 4/4] Migrated a naming routine in to data (for persistence). #4 --- arc/q.datatype.arc | 10 ---------- arc/specialized/q.mc3020.arc | 3 +-- arc/specialized/sys.arc | 5 ----- arc/specialized/t.sys_types.h | 2 +- 4 files changed, 2 insertions(+), 18 deletions(-) diff --git a/arc/q.datatype.arc b/arc/q.datatype.arc index de582d942..90566072b 100644 --- a/arc/q.datatype.arc +++ b/arc/q.datatype.arc @@ -81,16 +81,6 @@ .end function .// .//============================================================================ -.// Return the structure type for persistent links. -.//============================================================================ -.function PersistLinkType - .select any te_prefix from instances of TE_PREFIX - .select any te_persist from instances of TE_PERSIST - .assign attr_type = "struct { ${te_persist.instid_type} owner, left, right, assoc; }" - .assign attr_name = te_prefix.type + "link_t" -.end function -.// -.//============================================================================ .// Map a user defined data types precision into its corresponding instance .// of Data Type (S_DT). .// Note: Might prefer POSIX type support here, but doubt we can count diff --git a/arc/specialized/q.mc3020.arc b/arc/specialized/q.mc3020.arc index 42b3d5cc8..07bac2538 100644 --- a/arc/specialized/q.mc3020.arc +++ b/arc/specialized/q.mc3020.arc @@ -172,8 +172,7 @@ .assign te_persist.instance_cache_depth = te_prefix.define_u + "PERSIST_INST_CACHE_DEPTH" .assign te_persist.check_mark = "check_mark_post" .assign te_persist.post_link = "" - .assign te_persist.link_type_name = "" - .assign te_persist.link_type_type = "" + .assign te_persist.link_type_name = te_prefix.type + "link_t" .assign te_persist.persist_file = "sys_persist" .assign te_persist.factory_init = te_prefix.result + "PersistFactoryInit" .assign te_persist.commit = te_prefix.result + "PersistenceCommit" diff --git a/arc/specialized/sys.arc b/arc/specialized/sys.arc index a27f403df..a94e203c4 100644 --- a/arc/specialized/sys.arc +++ b/arc/specialized/sys.arc @@ -220,8 +220,6 @@ .assign printf = "NU_printf" .end if .assign inst_id_in_handle = "" -.assign link_type_name = "" -.assign link_type_type = "" .// .invoke persist_check_mark = GetPersistentCheckMarkPostName() .// @@ -275,9 +273,6 @@ .invoke r = PersistentClassUnion( active_te_cs ) .assign persist_class_union = r.result .invoke persist_post_link = GetPersistentPostLinkName() - .invoke persist_link_info = PersistLinkType() - .assign link_type_name = persist_link_info.name - .assign link_type_type = persist_link_info.type .assign inst_id_in_handle = " ${te_persist.dirty_type} ${te_persist.dirty_name};\n" .include "${te_file.arc_path}/t.sys_persist.c" .emit to file "${te_file.system_source_path}/${te_file.persist}.${te_file.src_file_ext}" diff --git a/arc/specialized/t.sys_types.h b/arc/specialized/t.sys_types.h index fc09e477b..1c7e82187 100644 --- a/arc/specialized/t.sys_types.h +++ b/arc/specialized/t.sys_types.h @@ -127,7 +127,7 @@ typedef struct { ${te_persist.index_type} ${te_persist.index_name}; } ${te_persist.instid_type}; .if ( te_sys.PersistentClassCount > 0 ) -typedef ${link_type_type} ${link_type_name}; +typedef struct { ${te_persist.instid_type} owner, left, right, assoc; } ${te_persist.link_type_name}; .end if typedef struct {