2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.1 CSC 4504 : Langages formels et applications (La méthode Event-B)

Slides:



Advertisements
Similar presentations
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/Refinement.1 CSC 4504 : Langages formels et applications (La méthode Event-B)
Advertisements

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applicationsEvent-B/Intro.1 CSC 4504 : Langages formels et applications (La méthode Event-B) J.
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.1 CSC 4504 : Langages formels et applications (La méthode Event-B)
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/DataStructures.1 CSC 4504 : Langages formels et applications (La méthode Event-B)
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/Purse.1 CSC 4504 : Langages formels et applications (La méthode Event-B) J.
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/PurseCode.1 CSC 4504 : Langages formels et applications (La méthode Event-B)
1 Camden Cycling Campaign, February 2014 Cycle segregated junctions Transport Liaison Public Meeting Wednesday 19 February 2014 Jean Dollimore Coordinator.
Help me find the cardinal directions
Two measurements are used to describe locations around the world. Two measurements are used to describe locations around the world. Latitude: distance.
Selected Problems from Chapter o.
Objective 1: Students will review geography skills
11/10/ :53:59 AMweek12-3.ppt1 Intelligent Traffic Controller We want to use a finite state machine to control the traffic lights at an intersection.
ELEC 1041 Digital Electronics Tutorial: Word Problems
Recursively Defined Sequences Lecture 35 Section 8.1 Wed, Mar 23, 2005.
INTERSECTION SAFETY PERFORMANCE AND AUDIT Andy Loonan Basak Aldemir-Bektas Intersection: Welch Avenue & Lincoln Way.
Chapter 2 - Maps. Latitude ► The earth is divided by east-west running lines of latitude. The zero degree line of latitude is the _________. There are.
Public Comment Mobility Vision Plan 2035 MVP Website 2035 MVP Brochure and Survey. Provides specific information on the Plan Update. Survey – your opinion.
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/Sets And Relations-Answers.1 The family tree Event-B context specification is taken from the on-line.
2012: J Paul GibsonTSP: MSC SAI Mathematical FoundationsMAT7003.ProofsWithRodin.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul.
Comparative Resources, North and South, Comparative Transportation Systems, of 3.
MAP READING Latitude and Longitude. LATITUDE  Imaginary lines running East/West  Measure North/South of the Equator (0 o )  Splits Earth into Northern/Southern.
Read a problem and make a plan EXAMPLE 1 Running You run in a city where the short blocks on north-south streets are 0.1 mile long. The long blocks on.
Highway Maps of Connecticut Interstate Highways: Connect between two or more states Auxiliary Highways: Connect between one or more Interstates Though.
Velocity and Displacement Page 91. Velocity The rate of change of the position of an object. Tells us how fast an object is going AND in what direction.
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/Project.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul Gibson, A207
1 ECSE-2610 Computer Components & Operations (COCO) Welcome to the world of Computers!
How Do We Determine Global Positions on the Earth? Using Geographic Coordinates.
Sectionalism Map Assignment
Find that place..  Find that content  Longitude, East is to the right, West is to the left of the Prime Meridian or 0 degrees  Latitude, North is going.
Lecture 2: Object Oriented Programming Object Oriented Programming Java Lecture 2: Object Oriented Programming.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Inverse operations Objective: 1. Learn to use inverse operations.
UNIVERSITY OF KENTUCKY ALUMNI CENTER STUDY 10 March 2015.
Finite State Machine. Clock Clock cycle Sequential circuit Digital logic systems can be classified as combinational or sequential. – Combinational circuits.
Example 1 Read a problem and make a plan
We have three different ways we can give direction when we are navigating around the world. These directions are all based off a compass. The three ways.
Region At Least One Account Yorkshire & Humber15 / 15 West Midlands14 / 14 East Midlands8 / 9 North East7 / 12 North West20 / 23 East of England11 /
Vector Basics Characteristics, Properties & Mathematical Functions.
The Simulation of Traffic Patterns and Optimizing Traffic Lights
Fordham at Columbia as a Grade-Separated Intersection
Physical Features North Africa GOVERNMENT RELIGION RESOURCES
Longitude & Latitude Grid Maps.
EVACUATION Procedures
Latitude and Longitude
Longitude and Latitude
Latitude and Longitude
Thatch House (Plan) Fig.4.
Write NB#1 in the top right corner of your notebooks Map Basics
Scalars v. Vectors.
Latitude and Longitude
University Center 517 University Center North: Inaccessible Element
WW2: Interactive Map A sequence of maps by year from 1939 – 1945
Workflow as suggested by takashi
北 N north 西 W west 東 E east south南 S.
STEPS FOR CALCULATING TIME
Objective: 1. Learn to use inverse operations.
Where is it In the night sky.
29th & Choctaw Rd Project Projected time line.
East West Move to Table 2 N/S
Fordham at Columbia as a Grade-Separated Intersection
Student Center A South: Inaccessible Element
START DIRECTIONS QUIZ.
Indentation & Comments
Stored program in a washing machine
Where is it In the night sky.
Site and Context. Section from East Section E2 Section E1 Sannidhanam Malikapuram Sannidhanam Malikapuram.
Question 1. Question 1 What is 10 x 40? A 40 B 400 C 4000 D 4.0.
Directions.
Midterm.
Location Location: Where something is Absolute Location
Presentation transcript:

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.1 CSC 4504 : Langages formels et applications (La méthode Event-B) J Paul Gibson, A207 TrafficLights Thanks to Ken Robinson: System Modelling and Design - Traffic Lights 2008

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.2 North South West East Safe State System0: 2-Way Junction No Turns

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.3 North South West East Safe State System0: 2-Way Junction No Turns

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.4 North South West East Safe State System0: 2-Way Junction No Turns

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.5 North South West East Safe State System0: 2-Way Junction No Turns

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.6 North South West East Safe State System0: 2-Way Junction No Turns

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.7 North South West East System0: 2-Way Junction No Turns UnSafe State

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.8 North South West East System0: 2-Way Junction No Turns Inconsistent State: Safe or Unsafe?

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.9 North South West East System0: 2-Way Junction No Turns Inconsistent State: Safe or Unsafe?

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.10 System0: 2-Way Junction, No Turns Representing State of the System: level of abstraction of junction SafeInconsistent Unsafe North South East West R R R A G R A G R R G G A A G A R R G G A A X X X X X X G A R A R G X X X X X X X X X X X X R R G G A A X X X X X X G A R A R G

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.11 System0: 2-Way Junction, No Turns Representing State of the System: level of abstraction of junction SafeUnsafe NorthSouth EastWest R R R A G R A G R R G G A A G A This is a better starting level of abstraction: we can refine the model to add detail later (and additional invariants to ensure consistency)

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.12 System0: 2-Way Junction, No Turns Representing State of the System: level of abstraction of each light Which level is best for representing the state of each light? How do we cope with problems due to inconsistency On Off R On Off A On G Off On ? Off On ? Off ?

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.13 North South West East System0: 2-Way Junction No Turns State Represented in diagrams as RG

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.14 System0: 2-Way Junction No Turns – Safe Systems RR RG 1 Safe System: but not useful RR 2 Safe System: but not fair GR RR 3 Safe System: fair but not correct RG

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.15 System0: 2-Way Junction No Turns – Safe Systems RG RA GR RR 4 Safe System: correct but is it fair? AR

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.16 System0: 2-Way Junction No Turns – Safe Systems RG RA GR RR 5 Safe System: correct and fair (and deterministic) but requires splitting abstract state RR into 2 different concrete RR states AR RR

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.17 System0: 2-Way Junction No Turns – A refinement removes nondeterminism RG RA GR RR AR RR RG RA GR RR AR refinement

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.18 System0: TrafficLights_ctx0 in RODIN

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.19 System0: TrafficLights_ctx0 in RODIN

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.20 System0: TrafficLights_ctx0 in RODIN

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.21 System0: TrafficLights_ctx0 in RODIN Add axioms to define function OppositeDirection Now we can model the system transitions in a machine that sees this context

2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/TrafficLights.22 System0: TrafficLights_mch0 in RODIN