Abstract
This paper presents a formal Object-Z model of the UML State Machine. We encapsulate the abstract syntax and the static and dynamic semantics for each individual model construct as a single Object-Z class. To formalize the dynamic semantics, a denotational semantics of the construct is given first ignoring detailed operational sequences. Based on this denotational semantics, an operational (execution) semantics is then defined in terms of (Object-Z) class operations and invariants constraining the operation sequences. The timed refinement calculus is used to define the operation sequences within Object-Z. Finally, integrity consistency constraints with other model constructs are formalized in terms of invariants defined in the state machine. Our approach not only enhances the precision of the UML state machine description but also overcomes the lack of modularity, extensibility and reusability of the current UML semantic representation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
T. Clark, A. Evans, R. France, S. Kent, and B. Rumpe, Response to UML 2.0 Request for Information, 1999. available at http://www.cs.york.ac.uk/puml/papers/RFIResponse.PDF
B. P. Douglass, Real-Time UML: Developing Efficient Objects for embedded systems, Addison-Wesley, 1998.
R. Duke and R. Gordon, Formal Object-Oriented Specification Using Object-Z, Macmillan, 2000.
Evans and S. Kent, Core meta modelling semantics of UML: The pUML approach, Proc. UML’99, LNCS. No. 1723, pp. 140–155, 1999.
R. France, A. Evans, K. Lano, and B. Rumpe, Developing the UML as a Formal Modeling Notation, Computer Standards and Interfaces, No. 19, pp. 325–334, 1998.
D. Harel and A. Naamad, The STATEMATE semantics of Statecharts, ACM Transaction on Software Engineering, vol. 5, pp 293–333, 1996.
Henderson-Sellers and F. Barbier, Black and White Diamonds, Proc UML’99, LNCS, No. 1723, pp. 550–565, 1999.
S-K. Kim and D. Carrington, Formalizing the UML class diagram using Object-Z, Proc. UML’99, LNCS, No. 1723, pp. 83–98, 1999.
S-K. Kim and D. Carrington, A Formal Mapping between UML Models and Object-Z Specifications, ZB2000, LNCS, No. 1878, pp. 2–21, 2000.
S-K. Kim and D. Carrington, UML Metamodel Formalization with Object-Z: the State Machine package, SVRC technical Report 00-29, The University of Queensland, 2000.
S-K. Kim and D. Carrington, A Formal Denotational Semantics of UML in Object-Z, the special issue of the journal of l’Objet, Vol. 7(1), 2001.
G. Kwon, Rewrite Rules and Operational Semantics for Model Checking UML statecharts, Proc. UML’2000, LNCS, No. 1939, pp. 528–540, 2000.
Latella, I. Majzik, and M. Massink, Towards a formal operational semantics of UML statechart diagrams, In 3rd International Conference on Formal Methods for Open Object-Oriented Distributed Systems(FMOODS), Kluwer, 1999.
J. Lilius and I. P. Paltor, Formalizing UML state machines for model checking, Proc. UML’99, LNCS, No. 1723, pp. 430–445, 1999.
OMG, Unified Modeling Language Specification, version 1.3, 1999, http://www.omg.org
OMG, Response to OMG RFP ad/98-11-01: Action Semantics for the UML, 2000. Available at ftp://ftp.omg.org/pub/docs/ad/00-08-03.pdf
G. Reggio, E. Astesiano, C. Choppy, and H. Hussmann, Analysing UML Active Classes and Associated State Machines-Lightweight Formal Approach, Proc. FASE 2000, LNCS. No.1783, pp. 127–146. Springer Verlag, 2000.
M. Richters and M. Gogolla, On formalizing the UML Object Constraint Language OCL, Proc. 17th Int. Conf. Conceptual Modeling, LNCS. No. 1507, pp. 449–464, 1998.
G. Smith and I. Hayes, Structuring Real-Time Object-Z Specifications, IFM’2000, LNCS, No. 1945, pp. 97–115, 2000.
G. Smith. The Object-Z Specification Language. Advances in Formal Methods. Kluwer Academic Publishers, 2000.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kim, SK., Carrington, D. (2002). A Formal Model of the UML Metamodel: The UML State Machine and Its Integrity Constraints. In: Bert, D., Bowen, J.P., Henson, M.C., Robinson, K. (eds) ZB 2002:Formal Specification and Development in Z and B. ZB 2002. Lecture Notes in Computer Science, vol 2272. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45648-1_26
Download citation
DOI: https://doi.org/10.1007/3-540-45648-1_26
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43166-4
Online ISBN: 978-3-540-45648-3
eBook Packages: Springer Book Archive