Coder Social home page Coder Social logo

ricciolino / rs-framework Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 388 KB

A python command line based implementation of the Reaction Systems framework described in this paper https://www.researchgate.net/publication/220180605_A_Tour_of_reaction_Systems.

License: MIT License

Python 100.00%

rs-framework's Introduction

rs-framework

A python command line based implementation of the Reaction Systems framework described in this paper https://www.researchgate.net/publication/220180605_A_Tour_of_reaction_Systems.

This folder contains the following list of files:

  • utilities.py
  • reaction.py
  • reaction_system.py
  • interactive_process.py
  • simRS.py
  • example7.txt
  • interactive_process_binary.py
  • simRSbinaryN4.py
  • binaryCounterN4.txt
  • ReactionSystemFramework.pdf

The PDF file is a small presentation of the problem and a quick overview of the approch used to implement the framework. All the work is based on the paper: "A tour of reaction systems", R. Brijder, A. Ehrenfeucht, M. Main and G. Rozenberg.

The file 'utilities.py' contains some useful functions used in the other python scripts.

The three files 'reaction.py', 'reaction_system.py' and 'interactive_process.py' contains the implementation of the class described in the presentation.

The 'simRS.py' is the main program that makes use of the other scripts.

The two files 'interactive_process_binary.py' and 'simRSbinaryN4.py' are small variations of the 'interactive_process.py' and 'simRS.py' files rispectively. They have been created just to implement the binary counter example as explained in the paper. Essentially they map the state sequence into the correspondent binary number (4 bits).

So the file 'example7.txt' is the definition of the reaction system used in the example 7 of the paper, and it has to be used with the 'simRS.py' script, whereas the file 'binaryCounterN4.txt' is the definition of reaction system necessary to implement a binary counter with this framework, then ita has to be used with 'simRSbinaryN4.py' script.

USAGE: This demo is been tested on a Linux system (Ubuntu 18.04 LTS), inside the project folder open a terminal and run the following bash command: ./simRS.py example7.txt // to make an interactive process over the reaction system of the example 7 ./simRS.py binaryCounterN4.txt // to make an interactive process over the reaction system of the binary counter example

rs-framework's People

Contributors

ricciolino 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.