Reverse Engineering Models of Software Interfaces

Debjyoti Bera1, Mathijs Schuts2, Jozef Hooman3 and Ivan Kurtev4

  1. ESI (TNO)
    The Netherlands
    debjyoti.bera@tno.nl
  2. Philips, Best
    The Netherlands
    mathijs.schuts@philips.com
  3. ESI (TNO) and Radboud University
    The Netherlands
    jozef.hooman@tno.nl
  4. Altran and Eindhoven University of Technology (TU/e)
    The Netherlands
    i.kurtev@tue.nl

Abstract

Cyber-physical systems consist of many hardware and software components. Over the lifetime of these systems their components are often replaced or updated. To avoid integration problems, formal specifications of component interface behavior are crucial. Such a formal specification captures not only the set of provided operations but also the order of using them and the constraints on their timing behavior. Usually the order of operations are expressed in terms of a state machine. For new components such a formal specification can be derived from requirements. However, for legacy components such interface descriptions are usually not available. So they have to be reverse engineered from existing event logs and source code. This costs a lot of time and does not scale very well. To improve the efficiency of this process, we present a passive learning technique for interface models inspired by process mining techniques. The approach is based on representing causal relations between events present in an event log and their timing information as a timed-causal graph. The graph is further processed and eventually transformed into a state machine and a set of timing constraints. Compared to other approaches in literature which focus on the general problem of inferring state-based behavior, we exploit patterns of client-server interactions in event logs.

Key words

passive learning, process mining, interfaces, model-driven engineering

Digital Object Identifier (DOI)

https://doi.org/10.2298/CSIS200131013B

Publication information

Volume 18, Issue 3 (June 2021)
Year of Publication: 2021
ISSN: 1820-0214 (Print) 2406-1018 (Online)
Publisher: ComSIS Consortium

Full text

DownloadAvailable in PDF
Portable Document Format

How to cite

Bera, D., Schuts, M., Hooman, J., Kurtev, I.: Reverse Engineering Models of Software Interfaces. Computer Science and Information Systems, Vol. 18, No. 3, 657–686. (2021), https://doi.org/10.2298/CSIS200131013B