Skip to main content
QUICK REVIEW

[Paper Review] A Note on Semantics (with an Emphasis on UML)

Bernhard Rumpe⋆|Sep 24, 2014
Logic, programming, and type systemsComputer Science17 references11 citations
TL;DR

This paper proposes a unified framework for defining semantics in both textual and diagrammatic notations, with a focus on UML. It formalizes hierarchical Mealy automata using input/output behaviors to define clear specification and implementation semantics, offering a classification system that guides semantics definition for new languages.

ABSTRACT

This note clarifies the concept of syntax and semantics and their relationships. Today, a lot of confusion arises from the fact that the word "semantics" is used in different meanings. We discuss a general approach at defining semantics that is feasible for both textual and diagrammatic notations and discuss this approach using an example formalization. The formalization of hierarchical Mealy automata and their semantics definition using input/output behaviors allows us to define a specification, as well as an implementation semantics. Finally, a classification of different approaches that fit in this framework is given. This classification may also serve as guideline when defining a semantics for a new language.

Motivation & Objective

  • To clarify the ambiguous use of 'semantics' in software engineering and formal methods.
  • To establish a general, formal approach to defining semantics applicable to both textual and diagrammatic languages.
  • To demonstrate the framework through a formalization of hierarchical Mealy automata with clear input/output behavior semantics.
  • To provide a classification of semantics approaches that can guide the definition of semantics for new domain-specific languages.
  • To support precise behavioral semantics in UML and similar modeling languages through formal specification and implementation semantics.

Proposed method

  • Defining semantics via input/output behavior relations in hierarchical Mealy automata.
  • Using formal state transition systems to model both specification and implementation semantics.
  • Introducing a two-layer semantics model: one for high-level specification behavior, another for implementation-level behavior.
  • Applying a formal notation to describe state transitions and output generation based on inputs.
  • Classifying existing semantics approaches within the proposed framework to show its generality and applicability.
  • Using the framework to distinguish between behavioral semantics of models and their executable implementations.

Experimental results

Research questions

  • RQ1How can semantics be consistently defined across both textual and diagrammatic modeling notations?
  • RQ2What formal criteria distinguish specification semantics from implementation semantics in model-based development?
  • RQ3How can hierarchical Mealy automata serve as a foundation for defining precise behavioral semantics in UML?
  • RQ4What classification of semantics approaches is feasible within a unified formal framework?
  • RQ5What guidelines can be derived for defining semantics in new domain-specific languages?

Key findings

  • The proposed framework successfully distinguishes specification and implementation semantics using input/output behavior relations.
  • Formalization of hierarchical Mealy automata enables precise semantics definition for complex models.
  • The framework supports both textual and diagrammatic notations through a common semantic foundation.
  • A classification of semantics approaches is established, providing a reference for future language design.
  • The approach is validated through application to UML and related modeling languages, demonstrating practical utility.
  • The work provides a reusable guideline for defining semantics in new modeling languages based on behavioral equivalence and trace semantics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.