1. Trang chủ
  2. » Luận Văn - Báo Cáo

Lecture Formal methods in software engineering - Lecture 18: Abstract model specification - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

7 9 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 7
Dung lượng 310,6 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Abstract Model Specification Lecture # 18.. Notation ­ Example[r]

Trang 1

Abstract Model Specification

Lecture # 18

Trang 2

Abstract Model Specification

• Explicitly describes behavior in terms of a model  using well­defined types (viz. set, sequences, 

relations, functions) & defines operations by 

showing effects on model

• Specification includes

• type ­ syntax of object being specified

• model ­ underlying structure

• invariant ­ properties of modeled object

• pre/post conditions – semantics of operations

Trang 3

• Is used to test the results

• Independent of program code

• Mathematical Data  model

• Represent both static and dynamic aspects 

of a system

Trang 4

Features( Z­notation)

• Decompose specification into small pieces 

(Schemas)

• Schemas are used to describe both static and  dynamic aspects of a system

• Data Refinement

• Direct Refinement

• You can ignore details in order to focus on the  aspects of the problem you are interested in

Trang 5

Static Aspect 

 The state can occupy

 The invariant relationships that are 

maintained as the system moves from 

state to state

Trang 6

Schema(cont.)

Dynamic Aspect 

The operations that are possible

The relationship between their inputs and  outputs

The change of state that happen

Trang 7

Some variables are 

declared.  

Relationship between the values of the variables

Name

Init Birthday Book

Known = 

Birthday Book

Ngày đăng: 01/04/2021, 16:03

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w