Presentation is loading. Please wait.

Presentation is loading. Please wait.

/faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management,

Similar presentations


Presentation on theme: "/faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management,"— Presentation transcript:

1 /faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management, Department of Information and Technology, P.O.Box 513, NL-5600 MB, Eindhoven, The Netherlands.

2 /faculteit technologie management PN-2 Process modeling Emphasis on dynamic behavior rather than structuring the state space Transition system is too low level We start with the classical Petri net Then we extend it with: –Color –Time –Hierarchy

3 /faculteit technologie management PN-3 Classical Petri net Simple process model –Just three elements: places, transitions and arcs. –Graphical and mathematical description. –Formal semantics and allows for analysis. History: –Carl Adam Petri (1962, PhD thesis) –In sixties and seventies focus mainly on theory. –Since eighties also focus on tools and applications (cf. CPN work by Kurt Jensen). –“Hidden” in many diagramming techniques and systems.

4 /faculteit technologie management PN-4 Elements

5 /faculteit technologie management PN-5

6 /faculteit technologie management PN-6

7 /faculteit technologie management PN-7 Rules Connections are directed. No connections between two places or two transitions. Places may hold zero or more tokens. First, we consider the case of at most one arc between two nodes.

8 /faculteit technologie management PN-8 Elements

9 /faculteit technologie management PN-9 Rules Connections are directed. No connections between two places or two transitions. Places may hold zero or more tokens. First, we consider the case of at most one arc between two nodes.

10 /faculteit technologie management PN-10

11 /faculteit technologie management PN-11 Enabled A transition is enabled if each of its input places contains at least one token. enabled Not enabled

12 /faculteit technologie management PN-12 Firing An enabled transition can fire (i.e., it occurs). When it fires it consumes a token from each input place and produces a token for each output place. fired

13 /faculteit technologie management PN-13

14 /faculteit technologie management PN-14 Play “Token Game” In the new state, make_picture is enabled. It will fire, etc.

15 /faculteit technologie management PN-15

16 /faculteit technologie management PN-16

17 /faculteit technologie management PN-17

18 /faculteit technologie management PN-18

19 /faculteit technologie management PN-19 Remarks Firing is atomic. Multiple transitions may be enabled, but only one fires at a time, i.e., we assume interleaving semantics (cf. diamond rule). The number of tokens may vary if there are transitions for which the number of input places is not equal to the number of output places. The network is static. The state is represented by the distribution of tokens over places (also referred to as marking).

20 /faculteit technologie management PN-20 Non-determinism Two transitions are enabled but only one can fire

21 /faculteit technologie management PN-21

22 /faculteit technologie management PN-22 Example: Single traffic light

23 /faculteit technologie management PN-23

24 /faculteit technologie management PN-24 Two traffic lights OR

25 /faculteit technologie management PN-25 Problem

26 /faculteit technologie management PN-26 Solution How to make them alternate?

27 /faculteit technologie management PN-27

28 /faculteit technologie management PN-28 Elements

29 /faculteit technologie management PN-29 Playing the “Token Game” on the Internet Applet to build your own Petri nets and execute them: http://is.tm.tue.nl/staff/wvdaalst/workflowcourse/ pn_applet/pn_applet.htm FLASH animations: www.workflowcourse.com

30 /faculteit technologie management PN-30 Exercise: Train system (1) Consider a circular railroad system with 4 (one- way) tracks (1,2,3,4) and 2 trains (A,B). No two trains should be at the same track at the same time and we do not care about the identities of the two trains.

31 /faculteit technologie management PN-31 Exercise: Train system (2) Consider a railroad system with 4 tracks (1,2,3,4) and 2 trains (A,B). No two trains should be at the same track at the same time and we want to distinguish the two trains.

32 /faculteit technologie management PN-32 Exercise: Train system (3) Consider a railroad system with 4 tracks (1,2,3,4) and 2 trains (A,B). No two trains should be at the same track at the same time. Moreover the next track should also be free to allow for a safe distance. (We do not care about train identities.)

33 /faculteit technologie management PN-33 Exercise: Train system (4) Consider a railroad system with 4 tracks (1,2,3,4) and 2 trains. Tracks are free, busy or claimed. Trains need to claim the next track before entering.


Download ppt "/faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management,"

Similar presentations


Ads by Google