Exercise class 1.

Slides:



Advertisements
Similar presentations
Solving Systems of Equations
Advertisements

Techniques to analyze workflows (design-time)
1 SE-561 Formal Methods in Software Petri Nets - I.
1 Analysis of workflows : Verification, validation, and performance analysis. Wil van der Aalst Eindhoven University of Technology Faculty of Technology.
The Doppler Effect Astrophysics Lesson 15. Learning Objectives To know:-  What the Doppler Effect is.  What is meant by the term ‘redshift’.  How to.
1 Modeling based on Petri-nets. Lecture 8. 2 High-level Petri nets The classical Petri net was invented by Carl Adam Petri in A lot of research.
What would the loop do in this situation? The loop will rotate about an axis halfway between the left and right sides of the circuit, parallel to the plane.
Synthesis of Embedded Software Using Free-Choice Petri Nets.
Distributed Systems Spring 2009
12/07/2007Jiacun Wang1 SE-561 Math Foundations Petri Nets - II Dr. Jiacun Wang Department of Software Engineering Monmouth University.
(Page 554 – 564) Ping Perez CS 147 Summer 2001 Alternative Parallel Architectures  Dataflow  Systolic arrays  Neural networks.
Solving Equations and Inequalities
Deadlock Characterization
Stop Sign This is a traffic sign. This means to stop. It helps us be safe when driving.
程建群 博士(Dr. Jason Cheng) 年03月
Time Saving Tips & Tricks Enable System Administrator Access to All User Logins In the past, in order for Salesforce.com System Administrators to be able.
Protecting Mobile Users From Visual Privacy Attacks Mahmud Al-Noor Tareq Department of Computer Science and Engineering.
CY2003 Computer Systems Lecture 7 Petri net. © LJMU, 2004CY2003- Week 72 Overview Petri net –concepts –Petri net representation –Firing a transition –Marks.
Modeling. Conceptual modeling: Petri nets Implementation: Arena, CPN tools Simulation needed: build models. Start with concepts, then select appropriate.
Virtual Storytelling Adam Abonyi Daniel Balaš. Agenda 1.Introduction to virtual storytelling 2.Petri Nets 3.Our improvements in Petri Nets 4.Example.
1 MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 6 Deadlocks Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
Guide to FOX Splicer Operations. Sun Transit Outage During sun transit periods, FOX splits the A&B radios to different satellites, thus assuring a network.
CSCI1600: Embedded and Real Time Software Lecture 28: Verification I Steven Reiss, Fall 2015.
/faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management,
EXAMPLE 4 Solve linear systems with many or no solutions Solve the linear system. a.x – 2y = 4 3x – 6y = 8 b.4x – 10y = 8 – 14x + 35y = – 28 SOLUTION a.
/faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management,
A stop sign is a traffic sign that stands for coming to a complete stop at an intersection or end of the road.
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
Using Microsoft Office Word Assignment Layout. Target Create a Cover Page (Front Page) Create a Table of Contents Page Create a Table of Figures Page.
PLC programming Part 3: Problems with solutions. Topics  Every problem is devided into three parts:  Technology description contains the general properties.
Ch26 Electric Charges and Forces
Scheduling with Constraint Programming
Essentials of UrbanCode Deploy v6.1 QQ147
Exercise class 2.
Advantages of FSM Their simplicity make it easy for inexperienced developers to implement with little to no extra knowledge (low entry level)
Concurrent Systems Modeling using Petri Nets
Finite State Machines Dr K R Bond 2009
MODERN OPERATING SYSTEMS Third Edition ANDREW S
CPE555A: Real-Time Embedded Systems
CSS 496 Business Process Re-engineering for BS(CS)
2. Specification and Modeling
UNIT 1 ACIDS, ALKALIS & CHEMICAL REACTIONS Lesson 2 – pH paper
OTHER MODELS OF TURING MACHINES
Virtual Memory Networks and Communication Department.
Chapter 7 – Deadlock and Indefinite Postponement
Realexamdumps.com 2018 Microsoft MB2-717 Dumps | Microsoft MB2-717 PDF - Free Try
Concurrent Systems Modeling using Petri Nets – Part II
Lecture 18: Deadlock: Conditions, Detection and Avoidance (cont.)
CAP 4800/CAP 5805: Computer Simulation Concepts
CAP 4800/CAP 5805: Computer Simulation Concepts
7.1 System of Equations Solve by graphing.
Extension: LCM 3 Three lights, red, yellow and green, are controlled by switches.  At the start, the three lights are switched on simultaneously.  The.
Lecture 26 Section – Tue, Mar 2, 2004
An Introduction to VEX IQ Programming with Modkit
3x + 2y = 36 Ordered Pairs Part 2
Common Core #11 Ordered Part 2 Pairs
Modeling based on Petri-nets.
Resistance of a light bulb
MODERN OPERATING SYSTEMS Third Edition ANDREW S
IMovie Shaw STEM Lab-2018.
Chapter 6 Network Flow Models.
CAP 4800/CAP 5805: Computer Simulation Concepts
Natural Language Processing on Time Series Presenter: Sara Alaee
Petri nets.
Solve the linear system.
Exercise class 2.
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Petri Nets Laurie Frazier.
vf2 = vi2 + 2a ∆x vf2 - vi2 2a (0 m/s)2 – (26.8 m/s)2 = ∆x 2(-3m/s2)
Presentation transcript:

Exercise class 1

Assignment 1 A German traffic light turns from green to red through yellow. Provide a Petri net that is able to behave like a German traffic light. There should be three places indicating the state of each light. Give a Petri net that exactly behaves like a German traffic light. Make sure that the Petri net does not allow state transitions which are not possible.

Solution Without this, the traffic light can behave properly, but there are also potential anomalies such as: - transition red_yellow fires repeatedly without switching to yellow or green and thus accumulation of multiple tokens in yellow. - yellow_red can fire before green_yellow fires

Assignment 2 A secret project by the government (let’s call it Project X), will be executed by one person and consists of 6 tasks: A, B, C, D, E, and F. The figure below specifies the order in which there tasks need to be executed

Assignment 2 a) Model the project in terms of a classical Petri-net. b) How to model that E is optional? c) How to model that D and E should be executed consecutively, i.e., B and C are not allowed between D and E?

Solution a)

Solution b) To make E optional, a by-pass for this transition has to be made.

Solution c) Place c8 is introduced to make sure that if transition D starts, B and C are not able to be executed because they also need a token in c8. When transition E is finished, a token is produced for c8 to make new transitions possible.

Assignment 3 A circular rail network consists of four tracks. Each track is in one of the following states:          - Busy, i.e., there is a train on the track.          - Claimed, i.e., a train has successfully requested access to the track.          - Free, i.e., neither busy nor claimed. There are two trains driving on the circular track. The track where a train resides is busy. To move to the next track a train first claims the next track. Only free tracks can be claimed. Busy tracks are released the moment the train moves to another track. One can abstract from the identity of trains only the state of the rail network is considered. a) Model the dynamic behavior of the rail network in terms of a Petri net. b) Is it easy to model the situation with 10 tracks (160 states!)?

Solution a) One track can be modeled as shown below:

Solution A track consists of three places (b = busy, c = claimed and f = free) and the transitions between them. To make four tracks with two trains, we copy this track four times and place two tokens in a b-place and two tokens in an f-place. Then we have to make some additions. A train can only move to another track if it has successfully claimed another one. Therefore it has to check if the other track is free. These are the arcs between the b-places and the use_track transition.

Two tracks

Also note that the transitions use_track and clear_track of two subsequent tracks are executed at the same time. Therefore, we fuse them in one transition: transfer.

b) Yes, just add new tracks b) Yes, just add new tracks. While the total number of states increases rapidly, the size of the Petri net is linear in the number of tracks. Note that the number of states equals: