A Petri Net made using CPN Tools that simulates the communication between two traffic lights.
It uses CPN Tools to simulate our colored petri net.
You can download CPN Tools on it's website.
To simulate, simply run the .cpn file and start the simulation.
This application will make a communication with CPN Tools' server and will be able to show the simulation within a better GUI.
You can find the source code inside JavaPetri folder or if just want to run it download always the latest release here.
Run JavaPetri.jar
Open trafficlights.cpn & start the simulation.
If everything is fine, the application will begin to sync it's traffic lights with the ones inside CPNTools.
Now you should see the application and CPNTools interacting.
General keyboard shortcut F.
Open a New Connectionoption closes and watches for a new connection. Keyboard shortcutF5.Exitoption closes the application. Keyboard shortcutCTRL + W.
General keyboard shortcut H.
Aboutoption gets details about the release you're running. Keyboard shortcutCTRL + A.Contributeoption opens a web page to pull request's section of this repo. Keyboard shortcutCTRL + C.Report a Bugoption opens a web page to issues' section of this repo. Keyboard shortcutCTRL + R.Check For Updates...option checks for latest releases and if available download it. Keyboard shortcutCTRL + U.Helpoption gets details about how to get futher information of this application. Keyboard Keyboard shortcutF1.
Uses GUI to show the simulated petri net in a simplified way.
Shows the current status of the application.