3 PROPERTIES OF PM-CPN
Local Reasoning. PM-CPN modeling allows local
reasoning about the behavior of the model as a whole
based on the definition of the composed machines,
as proven in (A. McNeile, E. Roubtsova, 2008).
Consider, for instance, the following sequence of
events:
S =
<("Open","123",250) ("Login","123","fish")
("Withdraw","123",300) ("Logoff","123")
("Logoff","123")>
It is possible to determine that S is not a trace of
the model based on examination of the Account
machine alone, as follows: The subset S restricted to
the alphabet of
ACCOUNT
is:
<("Open","123",250)
("Withdraw","123",300)>
.
This would not be accepted by the
ACCOUNT
machine as it would fail the guard condition on the
Withdraw
transition, as 300 > 250. This reasoning
is based on the
ACCOUNT
machine alone, and remains
true whatever other machines are composed with it.
It is also possible to determine that S cannot be a
trace of the model based on the
SECURITY
machine,
which does not allow two
LogOff
events without an
intervening
LogOn
.
Determinism. The basis of the PM semantics is that
the machines being composed have deterministic be-
havior. To achieve this requires that certain rules be
observed in the formation of the model.
(1) A PM-CPN should contain only one interface
place for each event type. If there were more than one
interface place in a PM-CPN for a given event type,
there would be potential indeterminism in the behav-
ior based on which is chosen to receive an event.
(2) Nets should be constructed so that, if a transition
ever has a choice of tokens to consume, the result of
the transition is independent of which is chosen.
There is no assumption that non-determinism
will not need to be introduced at physical design time.
4 CONCLUSIONS
In this paper we have extended the semantics of
Coloured Petri Nets with Protocol Modeling seman-
tics, and proposed the PM-CPN modeling language
for deterministic and constantly evolved systems. We
have demonstrated that PM-CPN is suitable for sep-
arate modeling of concerns, their composition and
modular reasoning about system behavior using com-
posed descriptions. Moreover, PM-CPN enables
modeling of interactive behavior. PM-CPN produces
scalable models. The CSP composition built into the
PM-CPN supports evolution of PM-CPNs by adding
or deleting models of new concerns without redraw-
ing and rewriting of previous models. The traces of
sub-models a preserved in the result of model compo-
sition. Applying the PM semantics to Coloured Petri
Nets we aimed to extend the applicability of Coloured
Petri nets for evolving systems.
REFERENCES
A. McNeile, E. Roubtsova (2008). CSP parallel composi-
tion of aspect models. AOM’08: Proceedings of the
2008 AOSD Workshop on Aspect-Oriented Modeling,
Brussels, Belgium, pages 13–18.
A. McNeile, N. Simons (2006). Protocol Modelling.
A modelling approach that supports reusable be-
havioural abstractions. Software and System Model-
ing, 5(1):91–107.
D. Harel, M. Politi (1998). Modeling Reactive Systems with
Statecharts: The STATEMATE Approach. McGraw-
Hill.
G.Zhang, M.Hlzl, A.Knapp (2007). Inhancing UML State
Machines with Aspects. In, G. Engels, B. Opdyke,
D. C. Schmidt, and F. Weil, editors. Proc. 10th Int.
Conf. Model Driven Engineering Languages and Sys-
tems (MoDELS’07). LNCS 4735, pages 529–543.
K. Jensen (1997). Coloured Petri Nets. Springer.
M. Elkoutbi, R. Keller (1998). Modeling Interactive Sys-
tems with Hierarchical Colored Petri Nets. Proc. of
the Conference on High Performance Computing.
M.Mahoney, A.Bader, T.Elrad and O. Aldawud: (2004).
Using Aspects to Abstract and Modularize State-
charts. In the 5th Aspect-Oriented Modeling Work-
shop In Conjunction with UML 2004.
OMG (2009). Unified Modeling Language, Superstructure,
v2.2. OMG Document formal/09-02-02 Minor revi-
sion to UML, v2.1.2. Supersedes formal 2007-11-02.
P. Palanque, R. Bastide, L. Dourte, C. Sibertin-Blanc
(1993). Design of User-Driven Interfaces Using Petri
Nets and Objects. LNCS 685.
T. Jacob, O. Kimmer, D. Moldt, U. Ultes-Nitsche (2002).
Implementation of Workflow Systems using Refer-
ence Nets. Security and Operability aspects. Proc. of
the workshop CPN02.
T.Elrad, O.Algawud, A.Baber (2002). Aspect-oriented
modelling-Briging the gap Between Design and Im-
plementation. Proceedings of the First ACM Interna-
tional Conference on Generative PRogramming and
Component Engineering GPCE), pages 189–202.
ICEIS 2010 - 12th International Conference on Enterprise Information Systems
504