State charts in SysML. Announcements 15 July 2004 – I-Logix announce that BAe systems are standardising on Statemate for development of Eurofighter TyphoonI-Logix.

Slides:



Advertisements
Similar presentations
State Charts Mehran Najafi. Reactive Systems A reactive, event-driven, object is one whose behavior is best characterized by its response to events dispatched.
Advertisements

State Transition Diagrams Chapter 13
Finite State Machines (FSMs)
Interaction Modeling for Testing We would generate the test cases based on our understanding of the interactions that may happen. The source is, again,
1 Model Driven Development. 2 DoDAF/ModAF/ SysML and AP233 Architecture –DODAF MODAF Modelling –UML –SysML Interchange –AP 233AP 233 –XMI.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Finite state machines.
1 CS 106, Winter 2009 Class 4, Section 4 Slides by: Dr. Cynthia A. Brown, Instructor section 4: Dr. Herbert G. Mayer,
Embedded Systems Details. Object Model: Four main system objects or classes Controller object might be made up of several controllers is the brains of.
Behaviour Modelling. Focus and Scope Large scale issues – emergence UML Use cases in requirements and design Statecharts.
3/20/20091 More State Machines. Multiple processes.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
©Katz-2004CS formal SpecificationsLecture--State machines 1 State Machines and Statecharts Formal Specifications CS Spring 2004 Shmuel Katz.
© 2005 Prentice Hall12-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
OS Spring’03 Introduction Operating Systems Spring 2003.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
Statecharts: A Visual Formalism for Complex Systems Jeff Peng Model-based Design Lab.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
SE-565 Software System Requirements More UML Diagrams.
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
JavaScript Events and Event Handlers 1 An event is an action that occurs within a Web browser or Web document. An event handler is a statement that tells.
02/06/05 “Investigating a Finite–State Machine Notation for Discrete–Event Systems” Nikolay Stoimenov.
Ch.2 Part A: Requirements, State Charts EECE **** Embedded System Design.
- 1 - Embedded Systems—State charts Specifications.
- 1 -  P. Marwedel, Univ. Dortmund, Informatik 12, 2005/6 Universität Dortmund Specifications.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
Chapter 10 State Machine Diagrams
1 SFWR ENG 3KO4 Software Development Statemate I-CASE Tool for Designing Software Systems from Different Views Statemate I-CASE Tool for Designing Software.
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
1 Statecharts by David Harel, 1987 State machines ⊆ statecharts A state machine consists of  Named states  Transitions between states  Events as labels.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 4 – Wage Calculator Application: Introducing.
Behavioral diagrams Lecture p4 T120B pavasario sem.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
- 1 - Embedded Systems - SDL Some general properties of languages 1. Synchronous vs. asynchronous languages Description of several processes in many languages.
StateCharts Peter Marwedel Informatik 12 Univ. Dortmund Germany.
Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
Flowcharts and Algorithms. Review of Terms  A computer is a machine that can represent and manipulate data –Ultimately the data and the instructions.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
Real Time Systems Advanced State Machines. Behaviour (part 2) - 2 Outline  Simple and Composite States  Transition Segments and Junction Points  Run-to-Completion.
1 Finite State Machines (FSMs) Now that we understand sequential circuits, we can use them to build: Synchronous (Clocked) Finite State Machines Finite.
Dynamic Models. Outline Dynamic Models Statecharts –States –Transitions –Composite states Interaction Diagrams –Sequence Diagrams The time order of interactions.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2006 State Behavior Patrick Bailey Keith Vander Linden Calvin College.
States.
UML: State Chart Diagrams
CS3773 Software Engineering Lecture 06 UML State Machines.
Finite State Machines (FSM) OR Finite State Automation (FSA) - are models of the behaviors of a system or a complex object, with a limited number of defined.
ICS124 Session 9 Flowcharting 1. By the end of this section the student will be able to:  Name the three structures of the Structure Theorem  Identify.
From requirements to specification Specification is a refinement of requirements Can be included together as Software Requirements Specifications (SRS)
State Diagram – Advanced Concepts
State Machine Diagram.
Marlon Dumas Institute of Computer Science
Finite State Machines Dr K R Bond 2009
Dynamic Modeling of Banking System Case Study - I
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
UML State Diagrams.
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
Finite State Machines k State Transition Diagrams
States.
Object Oriented System Design
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Dynamic Modeling Lecture # 37.
Marlon Dumas Institute of Computer Science
States.
Modeling Behavior in Statechart Diagrams
Copyright © 2015, 2012, 2009 Elsevier Inc. All rights reserved.
Presentation transcript:

State charts in SysML

Announcements 15 July 2004 – I-Logix announce that BAe systems are standardising on Statemate for development of Eurofighter TyphoonI-Logix - using MDD – Model-driven Development Dec Statemate chosen for use by MBDA in the development of METEOR

Model–driven Development Design behaviour using diagrammatic notations Demonstrate and evaluate the behaviour early in the development process Generate the delivered code/part directly from the model, perhaps guided by the designer with additional decisions.

Statemate A state machine design tool based on David Harel’s state charts (incorporated into UML) Allows –Simulation – what would happen if the following sequence of events occurred. –Analysis – prove that the system can never lock up –Code generation – to C for loading into embedded processors

Basic State Machine The basic concepts in this notation are: –state A mode of the object/component/sub-system –transition A change of state caused by an event or input, perhaps back to the same state –event the input which causes a transition to occur –action An action which occurs when a transition is made

Exercise 1.1. What sequence of noises does it make when the sequence ABACAC is in put? 1.2 What about BABAAC? 1.3 What kind of error in the machine does the sequence ACCBA reveal? 1.4 What kind error in the machine does the input BABC reveal? 1.5 What kind of error does the sequence ABAXAC reveal? 1.6 Give other examples of good and bad input.

State tables States ↓ Inputs →ABC initial final

JavaScript Simulator Web Simulator

Another Simulator This simulator takes a text file (written in an XML vocabulary) and builds a model which can be executed or visualized. Local CEMS FSM simulatorCEMS FSM simulator Web Simulator

Noise machine model print "boing" print "clack" print "clang" print "hiss" print "bang" print "pong" print "ping"

Physical devices Mechanical devices can be modelled with FSMs too

Exercise 3 A vending machine can accept 5, 10 and 20p coins up to a total value of 30p. There is one dispense button. When pressed, the machine issues a cold drink can and pockets the 30p. Define a suitable state machine. Note that the amount entered so far must be described only in the state of the machine, not in a separate counter.

Harel Statecharts guardspre-conditions on transitions nested statesone state may be composed of many substates. The superstate defines common behaviour such as transitions which are the same for all sub-states. entry and exit actionswhich occur on state entry and exit. activityon-going activities in a state event signallingcausing an internal event to be sent to another object concurrent statesparallel states in which state changes occur independently synchronisation and splitting to define the flow of control within parallel states timeouttransition triggered by a timeout counter set on state entry

Chinese clock Operating for clock Time display:- The normal display of Hour Minute and Month day are alternate move. Time setting:- 1) push S1 once, display shows MONTH, push S2 to advance month 2) push S1 twice, display shows DAY of MONTH, push S2 to advance DAY 3) push S1 third, display shows hour and AM/PM indicator. Push S2 to advance hour 4) push S1 fourth time, display shows MINUTES. Push S2 to advance MINUTES 5) push S1 fifth time, display shows normal running mode 6) push S1 One more time, display will alternate TIME and DATE each 2 seconds