A Graphical Petri Nets Simulator - Rochester Institute of Technology
A Graphical Petri Nets Simulator - Rochester Institute of Technology
A Graphical Petri Nets Simulator - Rochester Institute of Technology
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4. PROGRAM DESCRIPTION<br />
4.1 Overview<br />
The program <strong>of</strong>this project is made up by five components<br />
- Driver,<br />
Net-<br />
editor, <strong>Simulator</strong>, Program-generator and a Shell program. The Driver deals<br />
with the graphics primitives that were used in the Net-editor. The Net-editor<br />
sets up the user interface (desktop) on the screen, <strong>of</strong>fers functions that allow<br />
users to draw a <strong>Petri</strong> Net on the screen, and handles all the data structures <strong>of</strong><br />
the graphics net. The simulator derives the information it needed from the<br />
graphics net layout description. The simulator then simulates the behavior <strong>of</strong><br />
the <strong>Petri</strong> Net and interacts with the Net-editor to display<br />
screen. The Program-generator creates Auxiliary<br />
the results on the<br />
Application Programs<br />
(AAP) templates that users can modify and link with the GPNS. After the<br />
AAP was linked with GPNS,<br />
each function in the AAP is attached to a<br />
corresponding transition in the <strong>Petri</strong> Net. While simulating, the firing<br />
transition will cause the corresponding AAP function to be executed.<br />
<strong>of</strong> a<br />
The Project includes six header files, 14 program files with 162<br />
procedures. Those header files are : consdef.h, structdef.h, iconfont.h,<br />
msicon.h, setup.h, and system.h. The 14 program files are: main.c,<br />
graphics.c, sgp.c, maputil.c, rectutil.c, menu.c, objects. c, action.c,<br />
segment.c, sim.c, form.c, generator.c, apply.c, and applydo.c.<br />
-25-