3.3.1. What is a State Transition Diagram? Why are they used? How to draw them.

Slides:



Advertisements
Similar presentations
Air WALT: to know some of the characteristics of air
Advertisements

Working With Algorithm and Flowcharts
Control Systems The elements of a control system
Air WALT: to know some of the characteristics of air WILF: to understand that air exerts pressure.
3.3.1 ManageYourTime. What is a Gantt Chart? Why are they used? How to create one.
What is a Flowchart? Why are they used? How to draw them.
Intro to Algebra 2 Summary. Intro & Summary This chapter introduces relations and functions. Functions will be the focus of most of the rest of algebra,
Preview Warm Up California Standards Lesson Presentation.
2-1 Relations and Functions
Real-Time Systems time dependent control oriented driven by events rather than data.
Lesson Objectives 1. Practise writing sequence of instructions 2. Write flowcharts for different mechanisms Keywords: Input sensor Motion sensor Output.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
 Last observation of your adults  Place adults back in original tanks (make sure you check # on tanks)  Harvest your embryos or adopt from others who.
13-Nov-1513-Nov-1513-Nov-15 State Machines. What is a state machine? A state machine is a different way of thinking about computation A state machine.
By Zoe Cornell. Mug Kettle Tea bag Milk Sugar Pour water into the kettle and switch it on.
Do Now Find the domain & range:. Answers to Homework
Mug Tea bag Kettle Milk Sugar (only if you like it in your tea) A spoon Biscuits A plate for the biscuits.
Flowcharts
Lost Heat. When q hot + q cold ≠ 0 We have made the assumption that all heat is transferred, whether that’s objects or reactions. This is a ridiculous.
Systems: Open and Closed Open System: –A system in which both matter and energy can be exchanged with its surroundings Closed System: –A system in which.
QUALITY MANAGEMENT PRINCIPLES. Objectives 4 Understand usefulness of CASE tools 4 Types of CASE tools 4 Data flow diagrams (DFD)
Egg Demo Page 22 Essential Question: How can I demonstrate membrane transport with an egg? ? Question Column Egg in VinegarEgg in SyrupEgg in Water L1.
Functions, Equations, and Graphs Ch. 2.1 Relations and Functions EQ: How can I determine if a relation is a function? I will describe what makes a relation.
Holt McDougal Algebra Relations and Functions Warm Up Generate ordered pairs for the function y = x + 3 for x = –2, –1, 0, 1, and 2. Graph the ordered.
Holt Algebra Relations and Functions 4-2 Relations and Functions Holt Algebra 1 Warm Up Warm Up Lesson Presentation Lesson Presentation Lesson Quiz.
INTRO TO STATE MACHINES CIS 4350 Rolf Lakaemper. State Machines A state machine represents a system as a set of states, the transitions between them,
HI Maths Spring term. This term we have been learning about 2d and 3d shapes. We learnt their names and how to describe how they feel and look.
Goal: Identify and graph functions..  Relation: mapping or pairing, of input values with output values.  Domain: Set of input values.  Range: set of.
5-1-2 Synchronous counters. Learning Objectives: At the end of this topic you will be able to: draw a block diagram showing how D-type flip-flops can.
Algebra 2 June 18, 2016 Goals:   Identify functions in coordinate, table, or graph form   Determine domain and range of given functions.
 Last observation of your adults  Place adults back in original tanks (make sure you check # on tanks)  Harvest your embryos or adopt from others who.
FLOWCHARTS Part 1.
Relations and Functions
Graphing Relationships
System sequence diagrams
Relations and Functions
O- Glucose By: Olivia B. age10.
Relations and Functions
Relations and Functions
Algebra 2 September 16, 2018 Goals:
STATE SPACE REPRESENTATION
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
Algorithms Today we will look at: what the word algorithm means
Algorithms Y10 Introduction.
Relations and Functions
Relations and Functions
Relations and Functions
A set of ordered pairs List values in order Do not repeat values
Warm Up Lesson Presentation Lesson Quiz.
Objectives Identify functions.
Relations and Functions
Flow Charts AQA - Graphic Products.
Relations and Functions
STATE SPACE REPRESENTATION
Functions Guided Notes Review
Relations and functions
State Machines 6-Apr-196-Apr-19.
Relations and Functions
Vocabulary Word Definition Relation A set of ordered pairs.
Relations and Functions
Example 1: Identifying Functions
Relations and Functions
Relations and Functions
Ladder Diagram Design: Huffman Method
Exam Guidance.
Inputs, outputs and stores
Relations and Functions
Objectives Identify functions.
Relations and Functions
ordered pairs mapping diagram (-2, -8) (-1, -4) (1, 4) (2, 8) x y table of values x y We can represent.
Presentation transcript:

3.3.1

What is a State Transition Diagram? Why are they used? How to draw them.

A system can be defined at any one point as being in a particular state... Whether it is ready to receive an input or processing data ready for it to be output. State Transition Diagrams (STD) basically map out the state of a system in diagram form. This type of diagram essentially describes the behaviour of the system.

There are only two states for a door...open or closed. The transitions are opening or closing. Door Closed Door Open Door Closing Door Opening

States are shown as locations. Transitions are represented by arrows. – These are the reasons why the state is changing. – For example... The state changes because the door is opening. Door Closed Door Open Door Opening

An input may have different effects on a state. Multiple transitions can result from the same state (as in this diagram). 1. Empty 4. Sealed 2. Check bottle 3. Full 5. Broken B1: Squirt (n) IF (content + n) >= capacity THEN Go to B2 ELSE Go to B3 B3: Not full B2: Full B4: Screw on cap B5: Break

First of all we have to squirt water into the bottle at a quantity of n. We then check the bottle to see if it is full. If it isn’t full we go through the transition of B3: Not full as the state is still considered to be Empty. 1. Empty 2. Check bottle B1: Squirt (n) IF (content + n) >= capacity THEN Go to B2 ELSE Go to B3 B3: Not full

When we have reached a full state then we can place the cap on the bottle. The transition is B4: Screwing on a cap. We then arrive at a state of Sealed. 1. Empty 4. Sealed 2. Check bottle 3. Full B1: Squirt (n) IF (content + n) >= capacity THEN Go to B2 ELSE Go to B3 B3: Not full B2: Full B4: Screw on cap

The state Broken is reached if the bottle breaks. If the bottle was full at point 2 and then isn’t at state full you can assume the bottle is broken. 1. Empty 4. Sealed 2. Check bottle 3. Full 5. Broken B1: Squirt (n) IF (content + n) >= capacity THEN Go to B2 ELSE Go to B3 B3: Not full B2: Full B4: Screw on cap B5: Break

Try drawing an STD which covers the following states: – Filling up a kettle – Boiling the water – Pouring the water into mugs (note: do not worry about the mugs...I am more concerned with the state of the kettle). – This is the first state Empty