Research Article
Service-Oriented Synthesis of Distributed and Concurrent Protocol Specifications
Algorithm 3
Partitioning procedure.
Procedure: Partition_Parallel_Paths | Inputs: A PE-SPEC and an image of a fork state in the PE-SPEC model. | Outputs: Groups of parallel pathspartitioned at state and a set of sub-paths of each path in a group. | Steps: | (1) , | (2) for each transition outgoing from state do | (2.1) if
, which is the first transition in an image of a parallel path , is associated | with a service primitive then
else
, | (3) for each path in do | (3.1) set of sub-paths of , | (3.2) , | (3.3) while ( is
not a joint or free state) do | (3.3.1) , | (3.3.2) while ( is
not a joint or free state and the outgoing transition from is not | associated with a receiving event) do | (3.3.2.1) , | (3.3.3) subpath of from to , | (3.3.4) . |
|