Ch03 System Analysis
# System Analysis
Overall view


System analysis 的不同角度:

sysML:
Context model
- Use case diagram(External perspective)





- Use case diagram(External perspective)
Behavior models
data-flow diagram (Behavioral perspective)

Activity diagrams: 横着的小长方形表示syncronize bars,只有所有输入都完成了才能输出 (Behavioral perspective)

state machine models (Behavioral perspective)

decision tables (Behavioral perspective)

sequence diagrams (Behavioral perspective)

Semantic Data Models (Structural perspective)
Entity-relationship diagram

Data Dictionaries (Structural perspective),可以统一词汇

Function Tree (Hierarchical Refinement, Structural persp.)

Class diagram
Aggregation:整体没了部分还可以在,部分可以脱离整体存在

composition: 整体没了部分就没了

Inheritance

Summary:

Analysis Methods:
Test driven analysis
安全分析

Real-time analysis:
Analyze system interfaces(Understanding the environment)
Analyze safety requirements
Performance Analysis

Analyze temporal requirements: Real-time Scheduling Methods:
Preemptive:在执行前安排好顺序
Non-preemptive:根据一定的规则执行,如FIFO
Periodic:execute on a static timing, 如:根据timmer来执行
Aperiodic:如事件驱动

Analyze resources limitations:多个用户访问一个资源,会lock,所以要控制用户访问资源请求的数量