Code Monkey home page Code Monkey logo

bachelor-thesis's Introduction

Learning UPPAAL Timed Automata from Network Protocol Traces

This is the official python project for the bachelor thesis of Christoph Ueker.

About the Bachelor Thesis

Title Learning UPPAAL Timed Automata from Network Protocol Traces
Student Christoph Ueker
Working period 15.11.2021 - 15.02.2022
University Hamburg University of Technology (TUHH)
Insitute Institute for Software Systems
Supervised by Prof. Dr. Sibylle Schupp, Antje Rogalla

About this Python Project

General

What was used How it was used
Python version 3.8.2
PyCharm version 2021.2.2 (Community Edition)
Windows Windows 10 Pro version 21H1
Packages See requirements.txt

Project folders

The folder UPPAAL-Stratego contains the UPPAAL Stratego version 4.1.20-7 downloaded from uppaal.org. It contains uppaal.jar, which will run the created UPPAAL Model automatically. It also contains an executable called verifyta, which is used in order to run a simulate query.

The folder uppaalpy contains the module uppaalpy, which is a UPPAAL wrapper for python by Deniz Koluaçık. The used version 0.0.4 was committed on June 8th, 2021 downloaded from his github repository. WARNING: The module has been adjusted in order to work properly and to make things easier (Look for comments stating "adjusted" in nta.py).

The folder original_logs contains the logs given as examples in the original paper "Learning Timed Automata from Interaction Traces" by Vain et al.

The folder xml-files contains all Uppaal Timed Automata given as .xml files used throughout the project.

Program flow

  1. Running main.py will run simulator.py first, asking the user for the interval abstraction parameter value (R), the number of environment nodes to be modelled and the desired number of simulations used in order to generate traces using the simulator.xml.
  2. simulator.py produces simulator_output.xml and query.q in order to use them in a verifyta command. The command writes the resulting simulation output to simulations.txt. Both files can be found in UPPAAL-Stratego/bin-Windows/.
  3. The conerter.py translates the simulation output to useful traces by applying a mapping.
  4. The produced traces will then be used by the algorithm implemented in main.py.
  5. main.py uses the library uppaalpy in order to create an UPPAAL system and later write it to output.xml.
  6. UPPAAL Stratego will be run in order to view the result.

Comments

  • Helper functions have been outsourced to hepler.py
  • Functions have been commented using docstrings, working nicely in PyCharm
  • trace_converter_manual.py is an old backup module not part of the working code anymore

bachelor-thesis's People

Contributors

christoph-ueker avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.