Skip to content
Snippets Groups Projects
Commit 7aafec4e authored by Mike Collins's avatar Mike Collins
Browse files

changed many strcpy to strncpy and added #define default_max_str_length set to 81

parent 8cb1fdc0
No related branches found
No related tags found
No related merge requests found
Showing
with 206 additions and 232 deletions
......@@ -2,7 +2,7 @@
/* Monterey Phoenix-> C++ compiler, v.4.0, March 2018
Mikhail Auguston, NPS, CS Dept, Monterey, CA, USA
SCHEMA simple_message_flow trace generator for scope 1
SCHEMA simple_message_flow trace generator for scope 2
*****************************************************************
*** generated constants are visible in the mp2_print_etc.h
......@@ -238,32 +238,56 @@ public: // constructor
}; // end SIMPLE_LIST_15_16_ob class
//---- 2 ----
class Ct_17_18 : public AND_node_producer_container {
public: // constructor
Ct_17_18 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Atomic_producer(Event_send);
element[ 1 ]= new Atomic_producer(Event_send);
}
};// end class Ct_17_18
//---- 3 ----
class Itr_1_2 : public OR_node_producer_container {
public: // constructor
Itr_1_2 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Atomic_producer(Event_send);
element[ 2 ]= new Ct_17_18 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 5.000000E-01;
alternative_probability[ 1 ]= 5.000000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_1_2
//---- 3 ----
//---- 4 ----
class Ct_19_20 : public AND_node_producer_container {
public: // constructor
Ct_19_20 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Atomic_producer(Event_receive);
element[ 1 ]= new Atomic_producer(Event_receive);
}
};// end class Ct_19_20
//---- 5 ----
class Itr_5_6 : public OR_node_producer_container {
public: // constructor
Itr_5_6 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Atomic_producer(Event_receive);
element[ 2 ]= new Ct_19_20 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 5.000000E-01;
alternative_probability[ 1 ]= 5.000000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_5_6
//---- 4 ----
//---- 6 ----
class Comp_3_4 : public Composite_producer {
public: // constructor
Comp_3_4 (): Composite_producer(Event_Sender){
......@@ -273,7 +297,7 @@ public: // constructor
}
};// end class Comp_3_4
//---- 5 ----
//---- 7 ----
class Comp_7_8 : public Composite_producer {
public: // constructor
Comp_7_8 (): Composite_producer(Event_Receiver){
......@@ -283,7 +307,7 @@ public: // constructor
}
};// end class Comp_7_8
//---- 6 ----
//---- 8 ----
class SCHEMA_simple_message_flow: public Composite_producer {
public: // constructor
SCHEMA_simple_message_flow(): Composite_producer(Event_simple_message_flow){
......@@ -343,16 +367,16 @@ int main(){
global_flag = false;
// add tab names to table objects
// add tab names to chart objects
cout<< "generating traces for scope 1 "<<endl;
cout<< "generating traces for scope 2 "<<endl;
//----------------------------
try{
// harvesting traces for composite events
// harvesting traces for ROOT events
Comp_3_4 temp_7; temp_7.harvest();
Comp_7_8 temp_8; temp_8.harvest();
Comp_3_4 temp_9; temp_9.harvest();
Comp_7_8 temp_10; temp_10.harvest();
// harvesting traces for main schema
SCHEMA_simple_message_flow temp_9; temp_9.harvest();
temp_9.output_JSON();
SCHEMA_simple_message_flow temp_11; temp_11.harvest();
temp_11.output_JSON();
gen_end = clock();
}
catch(int n){
......
=========Start of execution ==========
Example01_simple_message_flow tree 1
========== End of execution ==========
=========Start of execution ==========
tree
========== End of execution ==========
No preview for this file type
generating traces for scope 1
completed Sender: 2 traces (0 MARKed) 3 events
average 1.5 ev/trace min 1 max 2
completed Receiver: 2 traces (0 MARKed) 3 events
average 1.5 ev/trace min 1 max 2
completed simple_message_flow: 2 traces (0 MARKed) 8 events
average 4 ev/trace min 3 max 5
Elapsed time 0.000214 sec, Speed: 65420.6 events/sec
......@@ -2,7 +2,7 @@
/* Monterey Phoenix-> C++ compiler, v.4.0, March 2018
Mikhail Auguston, NPS, CS Dept, Monterey, CA, USA
SCHEMA unreliable_message_flow trace generator for scope 1
SCHEMA unreliable_message_flow trace generator for scope 2
*****************************************************************
*** generated constants are visible in the mp2_print_etc.h
......@@ -241,19 +241,31 @@ public: // constructor
}; // end SIMPLE_LIST_17_18_ob class
//---- 2 ----
class Ct_19_20 : public AND_node_producer_container {
public: // constructor
Ct_19_20 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Atomic_producer(Event_send);
element[ 1 ]= new Atomic_producer(Event_send);
}
};// end class Ct_19_20
//---- 3 ----
class Itr_1_2 : public OR_node_producer_container {
public: // constructor
Itr_1_2 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Atomic_producer(Event_send);
element[ 2 ]= new Ct_19_20 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 5.000000E-01;
alternative_probability[ 1 ]= 5.000000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_1_2
//---- 3 ----
//---- 4 ----
class Alt_5_6 : public OR_node_producer_container {
public: // constructor
Alt_5_6 (): OR_node_producer_container (GenericContainer){
......@@ -266,20 +278,32 @@ public: // constructor
}
};// end class Alt_5_6
//---- 4 ----
//---- 5 ----
class Ct_21_22 : public AND_node_producer_container {
public: // constructor
Ct_21_22 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Alt_5_6 ;
element[ 1 ]= new Alt_5_6 ;
}
};// end class Ct_21_22
//---- 6 ----
class Itr_7_8 : public OR_node_producer_container {
public: // constructor
Itr_7_8 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Alt_5_6 ;
element[ 2 ]= new Ct_21_22 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 5.000000E-01;
alternative_probability[ 1 ]= 5.000000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_7_8
//---- 5 ----
//---- 7 ----
class Comp_3_4 : public Composite_producer {
public: // constructor
Comp_3_4 (): Composite_producer(Event_Sender){
......@@ -289,7 +313,7 @@ public: // constructor
}
};// end class Comp_3_4
//---- 6 ----
//---- 8 ----
class Comp_9_10 : public Composite_producer {
public: // constructor
Comp_9_10 (): Composite_producer(Event_Receiver){
......@@ -299,7 +323,7 @@ public: // constructor
}
};// end class Comp_9_10
//---- 7 ----
//---- 9 ----
class SCHEMA_unreliable_message_flow: public Composite_producer {
public: // constructor
SCHEMA_unreliable_message_flow(): Composite_producer(Event_unreliable_message_flow){
......@@ -359,16 +383,16 @@ int main(){
global_flag = false;
// add tab names to table objects
// add tab names to chart objects
cout<< "generating traces for scope 1 "<<endl;
cout<< "generating traces for scope 2 "<<endl;
//----------------------------
try{
// harvesting traces for composite events
// harvesting traces for ROOT events
Comp_3_4 temp_8; temp_8.harvest();
Comp_9_10 temp_9; temp_9.harvest();
Comp_3_4 temp_10; temp_10.harvest();
Comp_9_10 temp_11; temp_11.harvest();
// harvesting traces for main schema
SCHEMA_unreliable_message_flow temp_10; temp_10.harvest();
temp_10.output_JSON();
SCHEMA_unreliable_message_flow temp_12; temp_12.harvest();
temp_12.output_JSON();
gen_end = clock();
}
catch(int n){
......
=========Start of execution ==========
Example01a_unreliable_message_flow tree 1
========== End of execution ==========
=========Start of execution ==========
tree
========== End of execution ==========
generating traces for scope 1
completed Sender: 2 traces (0 MARKed) 3 events
average 1.5 ev/trace min 1 max 2
completed Receiver: 3 traces (0 MARKed) 5 events
average 1.66667 ev/trace min 1 max 2
completed unreliable_message_flow: 3 traces (0 MARKed) 13 events
average 4.33333 ev/trace min 3 max 5
Elapsed time 0.000279 sec, Speed: 75268.8 events/sec
......@@ -2,7 +2,7 @@
/* Monterey Phoenix-> C++ compiler, v.4.0, March 2018
Mikhail Auguston, NPS, CS Dept, Monterey, CA, USA
SCHEMA Data_flow trace generator for scope 1
SCHEMA Data_flow trace generator for scope 2
*****************************************************************
*** generated constants are visible in the mp2_print_etc.h
......@@ -308,42 +308,89 @@ public: // constructor
};// end class Alt_1_2
//---- 4 ----
class Ct_29_30 : public AND_node_producer_container {
public: // constructor
Ct_29_30 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Alt_1_2 ;
element[ 1 ]= new Alt_1_2 ;
}
};// end class Ct_29_30
//---- 5 ----
class Itr_3_4 : public OR_node_producer_container {
public: // constructor
Itr_3_4 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Alt_1_2 ;
element[ 2 ]= new Ct_29_30 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_3_4
//---- 6 ----
class Ct_31_32 : public AND_node_producer_container {
public: // constructor
Ct_31_32 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Atomic_producer(Event_writing);
element[ 1 ]= new Atomic_producer(Event_writing);
}
};// end class Ct_31_32
//---- 7 ----
class Itp_7_8 : public OR_node_producer_container {
public: // constructor
Itp_7_8 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Atomic_producer(Event_writing);
element[ 1 ]= new Ct_31_32 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 5.000000E-01;
alternative_probability[ 1 ]= 5.000000E-01;
}
};// end class Itr_3_4
};// end class Itp_7_8
//---- 5 ----
//---- 8 ----
class Ct_33_34 : public AND_node_producer_container {
public: // constructor
Ct_33_34 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Atomic_producer(Event_reading);
element[ 1 ]= new Atomic_producer(Event_reading);
}
};// end class Ct_33_34
//---- 9 ----
class Itr_9_10 : public OR_node_producer_container {
public: // constructor
Itr_9_10 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Atomic_producer(Event_reading);
element[ 2 ]= new Ct_33_34 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 5.000000E-01;
alternative_probability[ 1 ]= 5.000000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_9_10
//---- 6 ----
//---- 10 ----
class Sq_11_12 : public AND_node_producer_container {
public: // constructor
Sq_11_12 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Atomic_producer(Event_writing);
element[ 0 ]= new Itp_7_8 ;
element[ 1 ]= new Itr_9_10 ;
}
};// end class Sq_11_12
//---- 7 ----
//---- 11 ----
class Alt_19_20 : public OR_node_producer_container {
public: // constructor
Alt_19_20 (): OR_node_producer_container (GenericContainer){
......@@ -356,20 +403,32 @@ public: // constructor
}
};// end class Alt_19_20
//---- 8 ----
//---- 12 ----
class Ct_35_36 : public AND_node_producer_container {
public: // constructor
Ct_35_36 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Alt_19_20 ;
element[ 1 ]= new Alt_19_20 ;
}
};// end class Ct_35_36
//---- 13 ----
class Itr_21_22 : public OR_node_producer_container {
public: // constructor
Itr_21_22 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Alt_19_20 ;
element[ 2 ]= new Ct_35_36 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 5.000000E-01;
alternative_probability[ 1 ]= 5.000000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_21_22
//---- 9 ----
//---- 14 ----
class Comp_5_6 : public Composite_producer {
public: // constructor
Comp_5_6 (): Composite_producer(Event_Writer){
......@@ -379,7 +438,7 @@ public: // constructor
}
};// end class Comp_5_6
//---- 10 ----
//---- 15 ----
class Comp_13_14 : public Composite_producer {
public: // constructor
Comp_13_14 (): Composite_producer(Event_File){
......@@ -389,7 +448,7 @@ public: // constructor
}
};// end class Comp_13_14
//---- 11 ----
//---- 16 ----
class Comp_23_24 : public Composite_producer {
public: // constructor
Comp_23_24 (): Composite_producer(Event_Reader){
......@@ -399,7 +458,7 @@ public: // constructor
}
};// end class Comp_23_24
//---- 12 ----
//---- 17 ----
class SCHEMA_Data_flow: public Composite_producer {
public: // constructor
SCHEMA_Data_flow(): Composite_producer(Event_Data_flow){
......@@ -463,17 +522,17 @@ int main(){
global_flag = false;
// add tab names to table objects
// add tab names to chart objects
cout<< "generating traces for scope 1 "<<endl;
cout<< "generating traces for scope 2 "<<endl;
//----------------------------
try{
// harvesting traces for composite events
// harvesting traces for ROOT events
Comp_5_6 temp_13; temp_13.harvest();
Comp_13_14 temp_14; temp_14.harvest();
Comp_23_24 temp_15; temp_15.harvest();
Comp_5_6 temp_18; temp_18.harvest();
Comp_13_14 temp_19; temp_19.harvest();
Comp_23_24 temp_20; temp_20.harvest();
// harvesting traces for main schema
SCHEMA_Data_flow temp_16; temp_16.harvest();
temp_16.output_JSON();
SCHEMA_Data_flow temp_21; temp_21.harvest();
temp_21.output_JSON();
gen_end = clock();
}
catch(int n){
......
=========Start of execution ==========
Example02_Data_flow tree 1
========== End of execution ==========
=========Start of execution ==========
tree
========== End of execution ==========
No preview for this file type
generating traces for scope 1
completed Writer: 3 traces (0 MARKed) 5 events
average 1.66667 ev/trace min 1 max 2
completed File: 2 traces (0 MARKed) 5 events
average 2.5 ev/trace min 2 max 3
completed Reader: 3 traces (0 MARKed) 5 events
average 1.66667 ev/trace min 1 max 2
completed Data_flow: 3 traces (0 MARKed) 21 events
average 7 ev/trace min 6 max 8
Elapsed time 0.000411 sec, Speed: 87591.2 events/sec
......@@ -2,7 +2,7 @@
/* Monterey Phoenix-> C++ compiler, v.4.0, March 2018
Mikhail Auguston, NPS, CS Dept, Monterey, CA, USA
SCHEMA ATM_withdrawal trace generator for scope 3
SCHEMA ATM_withdrawal trace generator for scope 2
*****************************************************************
*** generated constants are visible in the mp2_print_etc.h
......@@ -734,34 +734,21 @@ public: // constructor
};// end class Ct_75_76
//---- 7 ----
class Ct_77_78 : public AND_node_producer_container {
public: // constructor
Ct_77_78 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= new Sq_7_8 ;
element[ 1 ]= new Sq_7_8 ;
element[ 2 ]= new Sq_7_8 ;
}
};// end class Ct_77_78
//---- 8 ----
class Itr_9_10 : public OR_node_producer_container {
public: // constructor
Itr_9_10 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 4 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Sq_7_8 ;
element[ 2 ]= new Ct_75_76 ;
element[ 3 ]= new Ct_77_78 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 2.500000E-01;
alternative_probability[ 1 ]= 2.500000E-01;
alternative_probability[ 2 ]= 2.500000E-01;
alternative_probability[ 3 ]= 2.500000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_9_10
//---- 9 ----
//---- 8 ----
class Sq_13_14 : public AND_node_producer_container {
public: // constructor
Sq_13_14 (): AND_node_producer_container (GenericContainer){
......@@ -771,7 +758,7 @@ public: // constructor
}
};// end class Sq_13_14
//---- 10 ----
//---- 9 ----
class Alt_15_16 : public OR_node_producer_container {
public: // constructor
Alt_15_16 (): OR_node_producer_container (GenericContainer){
......@@ -784,7 +771,7 @@ public: // constructor
}
};// end class Alt_15_16
//---- 11 ----
//---- 10 ----
class Sq_17_18 : public AND_node_producer_container {
public: // constructor
Sq_17_18 (): AND_node_producer_container (GenericContainer){
......@@ -795,7 +782,7 @@ public: // constructor
}
};// end class Sq_17_18
//---- 12 ----
//---- 11 ----
class Alt_19_20 : public OR_node_producer_container {
public: // constructor
Alt_19_20 (): OR_node_producer_container (GenericContainer){
......@@ -808,7 +795,7 @@ public: // constructor
}
};// end class Alt_19_20
//---- 13 ----
//---- 12 ----
class Sq_21_22 : public AND_node_producer_container {
public: // constructor
Sq_21_22 (): AND_node_producer_container (GenericContainer){
......@@ -819,45 +806,32 @@ public: // constructor
}
};// end class Sq_21_22
//---- 14 ----
class Ct_79_80 : public AND_node_producer_container {
//---- 13 ----
class Ct_77_78 : public AND_node_producer_container {
public: // constructor
Ct_79_80 (): AND_node_producer_container (GenericContainer){
Ct_77_78 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Sq_21_22 ;
element[ 1 ]= new Sq_21_22 ;
}
};// end class Ct_79_80
//---- 15 ----
class Ct_81_82 : public AND_node_producer_container {
public: // constructor
Ct_81_82 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= new Sq_21_22 ;
element[ 1 ]= new Sq_21_22 ;
element[ 2 ]= new Sq_21_22 ;
}
};// end class Ct_81_82
};// end class Ct_77_78
//---- 16 ----
//---- 14 ----
class Itr_23_24 : public OR_node_producer_container {
public: // constructor
Itr_23_24 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 4 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Sq_21_22 ;
element[ 2 ]= new Ct_79_80 ;
element[ 3 ]= new Ct_81_82 ;
element[ 2 ]= new Ct_77_78 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 2.500000E-01;
alternative_probability[ 1 ]= 2.500000E-01;
alternative_probability[ 2 ]= 2.500000E-01;
alternative_probability[ 3 ]= 2.500000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_23_24
//---- 17 ----
//---- 15 ----
class Opt_27_28 : public OR_node_producer_container {
public: // constructor
Opt_27_28 (): OR_node_producer_container (GenericContainer){
......@@ -870,7 +844,7 @@ public: // constructor
}
};// end class Opt_27_28
//---- 18 ----
//---- 16 ----
class Sq_29_30 : public AND_node_producer_container {
public: // constructor
Sq_29_30 (): AND_node_producer_container (GenericContainer){
......@@ -880,45 +854,32 @@ public: // constructor
}
};// end class Sq_29_30
//---- 19 ----
class Ct_83_84 : public AND_node_producer_container {
//---- 17 ----
class Ct_79_80 : public AND_node_producer_container {
public: // constructor
Ct_83_84 (): AND_node_producer_container (GenericContainer){
Ct_79_80 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 2 ];
element[ 0 ]= new Sq_29_30 ;
element[ 1 ]= new Sq_29_30 ;
}
};// end class Ct_83_84
//---- 20 ----
class Ct_85_86 : public AND_node_producer_container {
public: // constructor
Ct_85_86 (): AND_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= new Sq_29_30 ;
element[ 1 ]= new Sq_29_30 ;
element[ 2 ]= new Sq_29_30 ;
}
};// end class Ct_85_86
};// end class Ct_79_80
//---- 21 ----
//---- 18 ----
class Itr_31_32 : public OR_node_producer_container {
public: // constructor
Itr_31_32 (): OR_node_producer_container (GenericContainer){
element = new Event_producer_ref[ element_count = 4 ];
element = new Event_producer_ref[ element_count = 3 ];
element[ 0 ]= &Dummy ;
element[ 1 ]= new Sq_29_30 ;
element[ 2 ]= new Ct_83_84 ;
element[ 3 ]= new Ct_85_86 ;
element[ 2 ]= new Ct_79_80 ;
alternative_probability = new float[ element_count ];
alternative_probability[ 0 ]= 2.500000E-01;
alternative_probability[ 1 ]= 2.500000E-01;
alternative_probability[ 2 ]= 2.500000E-01;
alternative_probability[ 3 ]= 2.500000E-01;
alternative_probability[ 0 ]= 3.333333E-01;
alternative_probability[ 1 ]= 3.333333E-01;
alternative_probability[ 2 ]= 3.333333E-01;
}
};// end class Itr_31_32
//---- 22 ----
//---- 19 ----
class Comp_11_12 : public Composite_producer {
public: // constructor
Comp_11_12 (): Composite_producer(Event_Customer){
......@@ -928,7 +889,7 @@ public: // constructor
}
};// end class Comp_11_12
//---- 23 ----
//---- 20 ----
class Comp_25_26 : public Composite_producer {
public: // constructor
Comp_25_26 (): Composite_producer(Event_ATM_system){
......@@ -938,7 +899,7 @@ public: // constructor
}
};// end class Comp_25_26
//---- 24 ----
//---- 21 ----
class Comp_33_34 : public Composite_producer {
public: // constructor
Comp_33_34 (): Composite_producer(Event_Data_Base){
......@@ -948,7 +909,7 @@ public: // constructor
}
};// end class Comp_33_34
//---- 25 ----
//---- 22 ----
class SCHEMA_ATM_withdrawal: public Composite_producer {
public: // constructor
SCHEMA_ATM_withdrawal(): Composite_producer(Event_ATM_withdrawal){
......@@ -1011,17 +972,17 @@ int main(){
global_flag = false;
// add tab names to table objects
// add tab names to chart objects
cout<< "generating traces for scope 3 "<<endl;
cout<< "generating traces for scope 2 "<<endl;
//----------------------------
try{
// harvesting traces for composite events
// harvesting traces for ROOT events
Comp_11_12 temp_26; temp_26.harvest();
Comp_25_26 temp_27; temp_27.harvest();
Comp_33_34 temp_28; temp_28.harvest();
Comp_11_12 temp_23; temp_23.harvest();
Comp_25_26 temp_24; temp_24.harvest();
Comp_33_34 temp_25; temp_25.harvest();
// harvesting traces for main schema
SCHEMA_ATM_withdrawal temp_29; temp_29.harvest();
temp_29.output_JSON();
SCHEMA_ATM_withdrawal temp_26; temp_26.harvest();
temp_26.output_JSON();
gen_end = clock();
}
catch(int n){
......
=========Start of execution ==========
Example03_ATM_withdrawal tree 3
========== End of execution ==========
=========Start of execution ==========
tree
========== End of execution ==========
No preview for this file type
generating traces for scope 3
completed Customer: 40 traces (0 MARKed) 380 events
average 9.5 ev/trace min 1 max 13
completed ATM_system: 40 traces (0 MARKed) 516 events
average 12.9 ev/trace min 1 max 19
completed Data_Base: 15 traces (0 MARKed) 66 events
average 4.4 ev/trace min 1 max 7
completed ATM_withdrawal: 40 traces (0 MARKed) 1146 events
average 28.65 ev/trace min 4 max 40
Elapsed time 10.8311 sec, Speed: 194.625 events/sec
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment