Research Article

Dynamic and Quantitative Method of Analyzing Service Consistency Evolution Based on Extended Hierarchical Finite State Automata

Algorithm 1

Pseudocode of SCEA- algorithm.
(1) Initialize ,   ;
(2) NumVM,   ,   0;   /* Counts of ’s input events are initialized */
(3) for   to   do
(4)  (1, 1, 1);   /* Initialize the state array of   */
(5) endfor
(6) for ( ;   ++;   ) do
(7) for each     AtS do
(8) Get current state   ;
(9) Find the rules ts     TS at   ;
(10)   Select   AI according to its event probability;
(11)    Execute operation ;   /* Trigger a state transition */
(12)    if     then
(13)   NumVM++;/* Count the number of event   */
(14)    else  
(15)   NumSE++;/* Add the number of event   */
(16)    else  
(17)   NumSR++; /* Add the number of event   */
(18)    endif
(19)   endfor
(20) endfor