The design language of statecharts
This presentation is the property of its rightful owner.
Sponsored Links
1 / 32

The Design Language of Statecharts PowerPoint PPT Presentation


  • 75 Views
  • Uploaded on
  • Presentation posted in: General

The Design Language of Statecharts. The Design Language of Statecharts. Initial state. Finite State Machine R , S, T – States a , b , c , d - Events Arrows - State transitions. optional. Event: a , b , c , ... a or/and b not a dly(t), tm(a,t) tr(C)/fs(C). Conditions:

Download Presentation

The Design Language of Statecharts

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


The design language of statecharts

The Design Language of Statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts1

The Design Language of Statecharts

Initial state

Finite State Machine

  • R, S, T – States

  • a, b, c, d - Events

  • Arrows - State transitions

optional

Event:

a, b, c, ...

a or/and b

not a

dly(t), tm(a,t)

tr(C)/fs(C)

Conditions:

A, B,...

A or/and B

not(A)

in(S)

x=y, x<y,….

Actions:

a,b,…

tr!(C)/fs!(C)

x := v

rd!(x)

Dr. Vered Gafni – Real time systems development by the formal approach


Examples

Examples

Split on condition

Dr. Vered Gafni – Real time systems development by the formal approach


Sub states sequential refinement

Sub-States: Sequential Refinement

  • S is a super-state w.r.t {S1, S2, S3 }

  • Super-state transitions (priority)

  • History entrance (H* -deep history)

Dr. Vered Gafni – Real time systems development by the formal approach


Example of sequential refinement

Example of Sequential Refinement

Equivalence

up to priorities

Dr. Vered Gafni – Real time systems development by the formal approach


Sub states parallel refinement

Sub-states: Parallel Refinement

Events broadcasting

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Specification of Time Constraints

  • Delay: To turn on the furnace open the oil valve, and after 3 seconds activate ignition

  • RTC: Execute control loop at 10Hz rate

Dr. Vered Gafni – Real time systems development by the formal approach


Delay as deadline

Delay as Deadline

  • Deadline: Whenever train enters XR, gate should be closed within 10 seconds; otherwise an alarm will be activated

Dr. Vered Gafni – Real time systems development by the formal approach


Where timeout is useful

Where Timeout is useful ?

Dr. Vered Gafni – Real time systems development by the formal approach


Synchronization techniques i

Synchronization Techniques I

Dr. Vered Gafni – Real time systems development by the formal approach


Synchronization techniques ii

Synchronization Techniques II

Dr. Vered Gafni – Real time systems development by the formal approach


Synchronization techniques iii

Synchronization Techniques III

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Example: Railroad crossing

Dr. Vered Gafni – Real time systems development by the formal approach


Crossing control sequential design

Crossing Control: Sequential Design

Dr. Vered Gafni – Real time systems development by the formal approach


Crossing control parallel design

Crossing Control: Parallel Design

Dr. Vered Gafni – Real time systems development by the formal approach


Example automatic cruise control

Example: Automatic Cruise Control

Dr. Vered Gafni – Real time systems development by the formal approach


Automatic cruise control

Automatic Cruise Control

Dr. Vered Gafni – Real time systems development by the formal approach


State operating sub state of active

State Operating (sub-state of Active)

Dr. Vered Gafni – Real time systems development by the formal approach


State commandmonitor component of operating

State CommandMonitor (component of Operating)

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Statemate

A Real-Time Design Tool

  • Provides for representation of 3 system views:

  • What:

  • - the activities the system should do, and inter-activities

  • data flow

  • When:

  • - the timing and synchronization of activities activation and

  • data transfer

  • Where:

  • - in what subsystem the each activity should be implemented

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


Basic components

Basic Components

A

E3

A1

u

f

f

f

f

C

h

e

A2

r

A3

E1

E2

CC

v

w

q

s

A2_1

A2_2

x

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


The design language of statecharts

Dr. Vered Gafni – Real time systems development by the formal approach


  • Login