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
The specialist receives patients in the outpatient clinic of the hospital. At any given time, the specialist can be in one of three states:
- Free: The specialist is waiting for the next patient to arrive.
- Busy: The specialist is currently treating a patient.
- Docu: The specialist is documenting the result of the treatment.
Similarly, every patient who visits the specialist can be in one of three states:
- Wait: The patient is waiting for their turn to be treated, and the value ๐ is the number of patients waiting in line.
- Inside: The patient is currently being treated by the specialist.
- Done: The patient has been treated by the specialist and their treatment is complete.
Three events are important for this business process:
- Start: This event represents the specialist starting the treatment of a patient.
- Change: This event represents the specialist finishing the treatment of a patient and starting to document the results of the treatment.
- End: This event represents the specialist completing the documentation of the treatment results.
To get a local copy up and running follow these simple example steps.
Please install java package.
- Clone the repo
git clone https://github.com/CaoHoangKiet222/Application-PetriNet.git
- Move to src directory
cd ./Application-PetriNet/src
- Start app
./run.sh ./PetriNet/PetriNet.java
- 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