until it receives an acknowledgment from the re-
ceiver.
3. Each message m sent between two components
has a time duration d, which refers to the time
(a) Thus, The time of receiving event (t
re
) must be
greater than a time of the sending event t
s
. t
re
=
t
s
+ d & t
re
> t
s
.
(b) while the interval t
s
< t ≤ t
s
+ d + d
ack
≡ I(d +
d
ack
,t
s
) lasts, the sender remains suspended.
Hence, in this time interval the sender can not
engage in any other communication, i.e., either
sending or receiving any events.
4. In the interval I(d
ack
,t
re
) the receiver(component
B) can not accept to establish any other communi-
cation through the port P
2
.
By transforming SDs to state diagrams we guar-
antee that the time constraint specified in SD are re-
ally met by the state machine associated to the com-
ponents in that SD . A sequence diagram implying
N objects are transformed systematically into N ob-
jects state machine, when we transform a sequence di-
agram into a set of timed traces and the state machine
into a set of processes applying the rules established
in our previous work (Benghazi et al., 2007) and then
to set of timed traces, we can prove and therefore, to
prove the consistency between both diagrams as well.
In the timed sequence diagram Fig.7 the message
m
0
, initializes a system, t
0
, mark the time origin of
the system and T
0
represents the initialization dura-
tion. Thus, the sending time of the first message m
1
sent by A must be greater to t
0
+ T
0
, this constraints
is represented in state machine as the specification in-
terval by the CSP+ T term, I(T, t
0
+ T
0
) → !m
1
.The
sending time or reception time of the next message
m
2
must be greater than t
1
+ d + d
ack
, which is the
time of the rendez-vous termination, with d the time
duration between the sending and the reception event.
These constraints are imported to the state machine
as CSP+ T statements: I(T,t
1
+ d + d
ack
) →!m
2
and
I(T,t
2
+ d
ack
). see Fig.8
?m
o
><t
0
\ I(T
o
, t
0
)→ !m
1
\ I(T,t
1
+d
1
+d
ack
)→ !m
2
A
?m
o
><t
0
\ I(T
o
, t
0
)→ !m
1
\ I(T,t
1
+d
1
+d
ack
)→ !m
2
A
?m
1
><t
2
m
2
[I(T ,t
2
+d
ack
) ]><t
4
B
?m
1
><t
2
m
2
[I(T ,t
2
+d
ack
) ]><t
4
B
Figure 8: Communicating Extended State machines.
5 CONCLUSIONS
One aim of this work is to assign a precise meaning to
component interactions that arise in standard UML-
RT diagrams, such as the SD ones. We have firstly
given a timed trace semantics with CSP+T annota-
tions to UML 2.0 SD and then a set of transforma-
tion rules, which allows to check behavioural consis-
tency between SD and state machine. The systematic
derivation of state machines from a SD can be also
obtained as another product of our technique. Vali-
dation techniques based on systematic checking, like
temporal consistency checking can be addressed with
our approach as well. The long vision of our work is
to integrate the timed SD into our RTS development
methodology proposed in previous works (Benghazi
et al., 2007); thus, we plan to use the SD in differ-
ent phases, i.e., analysis, design and verification of a
system development cycle.
REFERENCES
Benghazi, K., Capel, M. I., Mendoza, L. I., and Holgado,
J. A. (2007). A methodological approach to the for-
mal specification of real-time systems by transforma-
tion of uml-rt design models. In Science Computer
Programming. Elsevier.
Capel, M., Benghazi, K., and Holgado, J. (2005). Combin-
ing the description features of uml-rt and csp+t spec-
ifications applied to a complete design of real-time
systems. In IJIT, Information Journal of information
Technology.
Cheng, H. C, E. Y. (2002). Uml for modelling complex
real-time systems. In Software Eng. IEEE Trans. 28.
Cobben, M. H., Engels, A., Mauw, S., and Reniers, M. A.
(1998). A semantic formalization of uml-rt models
with csp+t processes applicable to real-time systems
verification. In Formal Semantics of Message Se-
quence Charts.
Haugen, Knut Eilif Husa, R. K. R. K. S. (2005). Stairs to-
wards formal design with sequence diagrams. In Soft-
ware and System Modeling.
Li, X., Liu, Z., and He, J. (2004). A formal semantics of
uml sequence diagrams. In IEEE Computer Society.
ASWEC’2004.
OMG (2004). Super structure specification. In Software
Eng. Object Managment Group.
Selic, B. and J, R. (1998). Uml for modelling complex real-
time systems. In ObjectTime.
Zic (1994). Timed constrained buffer specifications in csp +
t and timed csp. In ACM Transaction on Programming
Languages and Systems.
TOWARDS UML-RT BEHAVIOURAL CONSISTENCY
615