· 52 ·
软件
relate, giving rise to labelled activities:
Denition 3:
(
Labelled Activity
).
1) For any individual activity
α,for each
( ), ( , )P pre Q post P
α α
∈ ∈
( ), ( , )P pre Q post P
α α
∈ ∈
,label α
as
.
2) For a shared activity
α
,
for each
(
Q
1
,
Q
2
,… ,
Q
k
) in
post(
pre
(
α
)[1],
α
)
×
post(
pre
(
α
)[2],
α
)
×…×
post
(pre
(
α
)[k],
α
),
label
α
as
α
ω
,
where
ω
represents
(
pre
(
α
)[1] →
Q
1
,
pre
(
α
)[2] →
Q
2
,…,
pre
(
α
)[
k
] →
Q
k
).
Each α
P→Q
or α
ω
is called a labelled activity. The set of
all labelled activities is denoted by A
label
.For the above la-
belled activities α
P→Q
and α
ω
, their respective pre and post
se ts a r e de f i n e d as
pre
(
α
P→ Q
)={P },
po st
(
α
P→ Q
)={
Q
},
pre(
α
ω
)
=pre
(
α
),
post
(
α
ω
)={
Q
1
,
Q
2
,… ,
Q
k
}.
In the numerical representation scheme, the transitions be-
tween states of the model are represented by a matrix, termed the
activity matrix — this records the impact of the labeled activities
on the local derivatives.
Definition 4:
(
Activity Matrix, Pre Activity Matrix,
Post Activity Matrix
).
For a model with
labelled activi-
ties and
distinct local derivatives, the activity matrix C is
an
matrix, and the entries are defined as following
1 ( )
( , ) 1 ( )
0
i j
i j i j
if P post
C P if P pre
otherwise
α
α α
+ ∈
= − ∈
where α
j
is a labelled activity. The pre activity matrix C
pre
and
post acti
vity matrix C
post
are defined as
Pr
P
1 ( )
( , ) ,
0 .
1 ( )
( , )
0 .
i j
e
i j
i j
ost
i j
if P pre
C P
otherwise
if P post
C P
otherwise
α
α
α
α
+ ∈
=
+ ∈
=
From Denitions 3 and 4, each column of the activity matrix
corresponds to a system transition and each transition can be rep-
resented by a column of the activity matrix. The activity matrix
equals the difference between the pre and post activity matrices,
i.e.
The rate of the transition between states is speci-
ed by a transition rate function, but we omit this detail here since
we are concerned with qualitative analysis. See [7] for details. We
rst give the denition of the apparent rate of an activity in a local
derivative.
Definition 5:
(
Apparent Rate of α in P
)
Suppose α
is an
activity of a PEPA model and P is a local derivative enabling α (i.e.
). Let
( , )post P
α
be the set of all the local derivatives
derived from P by ring α,i.e.
{ }
( , )
( , ) | .
P Q
r
post P Q P Q
α
α
α
→
=
uuuuuuuuuur
Let
( , )
( ) .
P Q
Q post P
r P r
α α
α
→
∈
=
∑
(1)
The apparent rate of α in P in state x, denoted by
is
dened as
(x, ) x[ ] ( ).r P P r P
α α
=
(2)
The above denition is used to dene the following transition
rate function.
Denition 6:
(
Transition Rate Function) Suppose α is an ac-
tivity of a PEPA model and x denotes a state vector.
1) If α is individual, then for each
, the transi-
tion rate function of labelled activity
in state x is dened
as
(x, ) x[ ] .
P Q P Q
f P r
α
α
→ →
=
(3)
2 ) I f α is s y n c h r o n i s e d , w i t h p o s t ( α ) = { P
1
, P
2
, … ,
P
k
},then for each Q
1
,Q
2
,…,Q
k
in post(α)×post(P
2
,α)×…
×post(P
k
,α),let
1 1 2 2
( , ,..., ).
k k
P Q P Q P Q
ω
= → → →
Then the
transition rate function of labelled activity α
ω
in state x is dened as
{ }
{ }
min
1
1,...,
(x, ) (x, ) ,
( )
i i
P Q
k
i
i
i
i k
r
f r P
r P
ω
α
α
α
α
→
=
∈
=
∏
where
(x, ) x[ ] ( )
i i i
r P P r P
α α
=
is the apparent rate of α in P
i
in state x. So
{ }
{ }
min
1
1,...,
(x, ) x[ ] ( ) .
( )
i i
P Q
k
i i
i
i
i k
r
f P r P
r P
ω
α
α
α
α
→
=
∈
=
∏
(4)
Note that Denition 6 accommodates the passive or unspeci-
ed rate T. An algorithm for automatically deriving the numerical
representation of a PEPA model was presented in [7].
III
New Representation
A
Numerical representation
The syntactic nature of stochastic process algebras leads to
models which are easily understood by humans, but which are not
so convenient for automated analysis directly employing these
tools and techniques. Furthermore, the compositionality of the
formalisms allows a model to be locally dened, but the analysis
of the model often via the underlying CTMC must be carried out
globally. The syntactical and compositional qualities of the sto-
chastic process algebras, which are advantages in model construc-
tion, turn to be disadvantages in model analysis. Ding proposed a
new numerical representation schema in his thesis [7] for the for-
malism PEPA in order to overcome the obstacles to the direct and
convenient application of the mathematical tools. These concepts
numerically describe and represent a PEPA model, and provide a
platform which straightforwardly supports simulating the underly-
ing CTMC, deriving the uid approximation, and in addition leads
to an underlying Place/Transition (P/T) structure (see Theorem 1 in
the next section). These denitions are consistent with the original
semantics of PEPA, and a PEPA model can be recovered from its
numerical representation. An algorithm for automatically deriving
the schema from any given PEPA model has been provided. Some
characteristics of this numerical representation are revealed. For
example, using numerical vector forms the exponential increase of
戴慧 等:随机进程代数新技术综述