Giter VIP home page Giter VIP logo

application-petrinet's Introduction

Logo

Petri-Networks

Create a Petri Net model of the process flow in the outpatient clinic of hospital
Explore the docs ยป

Report Bug ยท Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

Logo

Process Description

The specialist receives patients in the outpatient clinic of the hospital. At any given time, the specialist can be in one of three states:

  1. Free: The specialist is waiting for the next patient to arrive.
  2. Busy: The specialist is currently treating a patient.
  3. Docu: The specialist is documenting the result of the treatment.

Similarly, every patient who visits the specialist can be in one of three states:

  1. Wait: The patient is waiting for their turn to be treated, and the value ๐‘› is the number of patients waiting in line.
  2. Inside: The patient is currently being treated by the specialist.
  3. Done: The patient has been treated by the specialist and their treatment is complete.

Event Data

Three events are important for this business process:

  1. Start: This event represents the specialist starting the treatment of a patient.
  2. Change: This event represents the specialist finishing the treatment of a patient and starting to document the results of the treatment.
  3. End: This event represents the specialist completing the documentation of the treatment results.

Built With

  • javax.swing
  • Overleaf

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Please install java package.

๐Ÿ“ฆ Installation

  1. Clone the repo
    git clone https://github.com/CaoHoangKiet222/Application-PetriNet.git
  2. Move to src directory
    cd ./Application-PetriNet/src
  3. Start app
    ./run.sh ./PetriNet/PetriNet.java

๐Ÿš€ Usage

Demo Screen Shot

  • Step 1: In Wait, Inside and Done states you can set as many tokens as you want
  • Step 2: Click to Auto Fire event to auto run petri-net, you can click to Start and Change event to fire every token
  • Step 3: Clear all states when done
  • Follow these steps you can do the same for others petri-net
Logo

๐ŸŒŸ Good Luck and Cheers! ๐ŸŒŸ

application-petrinet's People

Contributors

caohoangkiet222 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

caotuankietc3a

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.