Consistency between UML Classes and Associated State Machines
نویسندگان
چکیده
One of the main advantages of the UML is its possibility to model different views on a system using a number of diagram types. The various diagrams can be used to specify different aspects and their combination together makes up the complete system description. This does, however, always pose the question of consistency: it may well be the case that the designer has specified contradictory requirements which can never be fulfilled together. In this paper, we study consistency problems arising between static and dynamic diagrams, in particular between a class and its associated state machine. We propose a definition of consistency which is based on a common formal semantics for both classes and state machines, and discuss the merits and disadvantages of this definition on a simple case study. On this case study we furthermore show how consistency checks can be supported by a model checker. Finally we present consistency preserving transformations on the static as well as the dynamic part.
منابع مشابه
Checking Consistency in UML Diagramms: Classes and State Machines
One of the main advantages of the UML is its possibility to model different views on a system using a range of diagram types. The various diagrams can be used to specify different aspects, and their combination makes up the complete system description. This does, however, always pose the question of consistency: it may very well be the case that the designer has specified contradictory requirem...
متن کاملLanguage and Tool Support for Class and State Machine Refinement in UML-B
UML-B is a ’UML-like’ graphical front end for Event-B that provides support for object-oriented modelling concepts. In particular, UML-B supports class diagrams and state machines, concepts that are not explicitly supported in plain Event-B. In Event-B, refinement is used to relate system models at different abstraction levels. The same abstraction-refinement concepts can also be applied in UML...
متن کاملModel Checking and Code Generation for UML State Machines and Collaborations
The “Unified Modeling Language” (UML [1]) is generally accepted as the de facto standard notation for the analysis and design of object-oriented software systems. It provides diagrams for the description of static, dynamic, and architectural aspects of systems at different levels of detail. In particular, dynamic aspects of system behavior can be specified with the help of interaction (i.e., co...
متن کاملA Casl Formal De nition of UML Active Classes and Associated State Machines
We consider the problem of precisely deening UML active classes with an associated state chart. We are convinced that the rst step to make UML precise is to nd an underlying formal model for the systems modelled by UML. We argue that labelled transition systems are a sensible choice; indeed they have worked quite successfully for languages as Ada and Java. Moreover, we think that this modelizat...
متن کاملRealization of UML Class and State Machine Models in the C# Code Generation and Execution Framework
Many benefits are expected due to usage of code generation tools. A reliable application should be created effectively based on complex structural and behavioral models. Model driven approach for program development is realized in Framework for eXecutable UML (FXU). The tool transforms UML models into C# source code and supports execution of the application reflecting the behavioral model. The ...
متن کامل