Giter Site home page Giter Site logo

alirezakay / petri-net-calc Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 1.14 MB

calculate specifications of a given petri net using the incident matrix in java

License: MIT License

Java 100.00%
java petrinet petri-nets characteristics matrix incident-matrix live safe embedded-systems realtime

petri-net-calc's Introduction

Find Petri Net Characteristics In Java

The project subject can be found in CA1.pdf but it is in Persian
This project was Computer Assignment 1 (CA1) for the course: Real-Time & Embedded Systems.

Here is the subject of the project in English:

Write a program that reads the content of a text file consists of a Petri-net characteristics, then show that the Petri net is safe and live by using matrix multiplication.

Here is an example of the text file syntax:

P=(p1,p2,p3,p4,p5)
M0={2,1,0,0,0}
T=(t1,t2,t3,t4)
F={(p5,t1),(t1,p1),(t1,p2),(p1,t2),(p2,t3),(t2,p3),(t2,p4),(t3,p4),(p3,t4),(p4,t4),(t4,p5)}

Documentation

This project is codded in VScode by using Java.
There are pretty good comments in the codes.

If you don't know about Petri net Incident Matrices, I highly suggest you to take a look at here at first.

There is a complete documentation in Persian on the file, named: description.pdf

Hierarchy Of Files

  • CA1.java: (Main file)
  • Petrinet.java: (Method & fields for Petrinet)
  • IncidentMatrix.java: (Interface implemented in Petrinet class)
  • Matrix.java: (Matrix calculations)
  • Petrinet.txt: (Raw Petrinet example data)

Petrinet Example

petri-net-calc's People

Contributors

alirezakay avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

pmhex

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.