Santos Filho (2006), a multifaceted decomposition
of a system was introduced in order to meet the CPS
requirements of CPS. Thus, the logic control of the
system is classified according to the semantics and
functionality. In Junqueira and Miyagi (2009), a
framework for distributed simulation was defined
which the Petri net is used as a tool to model large
and geographically dispersed PS. In Garcia et al.
(2009), a characterization of a framework was
presented for integration and coordination of
services provided by components of a
geographically dispersed PS. However, although
these studies address the issue of distributed and
dispersed PS from different points of view, they do
not approach adequately the complexity of the
communication process in terms of their dynamic
and quantity of components that are involved in the
coordination process.
Motivated by these facts, a systematic approach is
introduced here for the modeling of CPS. To
represent the behavior of the CPS, the use of two
abstraction models is proposed. Initially, Message
Sequence Chart (MSC) is used to represent the
interaction between the components in different
operation scenarios. Then, the functionality of each
component is modeled by CPN. Finally, the
components are integrated into a single model to
analyze the properties and behavior of the overall
system by means of CPNTools (Jensen et al., 2007).
The text is organized as follows: section 2 presents
the fundamental concepts that support the work.
Section 3 presents the architecture of the distributed
SP. The 4
th
section presents a systematic approach
for modeling and analysis based on CPN. Finally, in
section 5 are the main conclusions obtained in this
work.
2 BASIC CONCEPTS
2.1 Publish/Subscribe Paradigm
In the last years, this paradigm of communication
has gained importance in the design and
development of different class systems like stock
exchange systems, air traffic control systems,
defense systems and CPS and pervasive computing
applications (Abawajy, 2009). This is due to the
capacity of the publish/subscribe paradigm to
completely decouple communication participants,
allowing the development of applications with a
high degree of flexibility (Ryll and Ratchev, 2008).
This is one of the motivations for the use of this
paradigm in this work.
In the publish/subscribe paradigm, communication
can be anonymous, asynchronous and multicasting.
The combination of these characteristics makes the
publish/subscribe paradigm well suited to a variety
of application areas, allowing the development of
systems with a high degree of flexibility. However,
this advantage is counterbalanced by increased
complexity in the sense of understanding the
functioning of the system as a whole. Furthermore,
although the components of a collaborative system
can work properly when examined individually, they
may have an inappropriate behavior when working
in a cooperative manner (Baresi et al., 2005).
2.2 Coloured Petri Net (CPN)
The Coloured Petri net (CPN) is a graphical
language that combines the capabilities of PN with
the capabilities of a high-level programming
language, in which the PN provides a graphical
environment and supports the formal description of
the system and the programming language facilitates
the definition of data types (Jensen and Kristensen,
2009). Thus, a compact and parametric model can be
created. This type of PN allows the construction of
hierarchical models that facilitate the description of
the system. The CPN models can be hierarchically
structured as a collection of small connected
components in which each component corresponds
to a model in CPN. This model structuring can be
performed by replacing substitution transitions
(specific terms of Petri net are in Arial Narrow). A
substitution transition is a special type of transition used
in the CPN to represent an instance of another
model. This feature of the CPN allows the reuse of
components already built, reducing the time and cost
of development (Jensen et al., 2007). A more
detailed description about the elements of CPN can
be found in (Jensen and Kristensen, 2009).
3 PROPOSED ARCHITECTURE
The proposed architecture of the CPS considers that
the dynamic evolution of the states is performed
concurrently. Thus, CPS performs tasks in a parallel
and independent way. Fig. 1 shows the architecture
of the CPS.
The communication between the components that
integrates the CPS is performed by exchanging
asynchronous messages according to the
publish/subscribe paradigm. The messages are
grouped into topics. The applications are not
directly coupled to each other and communication is
PECCS 2011 - International Conference on Pervasive and Embedded Computing and Communication Systems
258