The UML has been widely accepted as a standard for modeling software systems and is supported by a great number of CASE tools. However, UML tools often provide only little support for validating models early during the design stage. Also, there is generally no substantial support for constraints written in the Object Constraint Language (OCL). We present an approach for the validation of UML models and OCL constraints that is based on animation. The USE tool (UML-based Specification Environment) supports developers in this process. It has an animator for simulating UML models and an OCL interpreter for constraint checking. Snapshots of a running system can be created, inspected, and checked for conformance with the model. As a special case study, we have applied the tool to parts of the UML 1.3 metamodel and its well-formedness rules. The tool enabled a thorough and systematic check of the OCL well-formedness rules in the UML standard.
[1]
Martin Gogolla,et al.
A Metamodel for OCL
,
1999,
UML.
[2]
Luis Mandel,et al.
On the Expressive Power of OCL
,
1999,
World Congress on Formal Methods.
[3]
Anneke Kleppe,et al.
The object constraint language: precise modeling with UML
,
1998
.
[4]
Darmalingum Muthiayen,et al.
Real-time reactive system development: a formal approach based on uml and pvs
,
2000
.
[5]
Andy Evans,et al.
Core Meta-Modelling Semantics of UML: The pUML Approach
,
1999,
UML.
[6]
Martin Gogolla,et al.
On Formalizing the UML Object Constraint Language OCL
,
1998,
ER.
[7]
Daniel Jackson,et al.
Alcoa: the Alloy constraint analyzer
,
2000,
Proceedings of the 2000 International Conference on Software Engineering. ICSE 2000 the New Millennium.