MBSE SysML 读书笔记
2022-02-22 18:15:33 1 举报
AI智能生成
SysML Distilled A Brief Guide to the Systems Modeling Language 读书笔记。主要是提取书中内容,转化成框架描述,并将相应标题与图片匹配,便于查阅。
作者其他创作
大纲/内容
SysML
SysML Diagram Overview
General Diagram Concepts
a frame
a content area(canves)
header
diagram kind
Model element type
Model element name
Diagram name
Block definition diagram (BDD)
purpuse
elements of definition
element structural relationships
When should you create a BDD
When you perform MBSE activity
conjunction with other SysML diagrams to provide a complementary view
BDD Frame
element type
namespace
Block
structural feature
Part properties
Reference properties
Value properties
Constraint properties
Ports
standar ports
flow ports
nonatomic flow ports
atomic flow ports
behavioral feature
operation
reciption
RelationShip between Blocks
associations
Reference Associations
Composite associations
generalizations
dependencies
actor
Value Type
primitive
String
Boolean
Integer
Real
structured
composed of primitives
enumerated
Constraint Blocks
Internal block diagram (IBD)
purpose
displays usages of blocks
convey additional information
When Should You Create an IBD
IBDs and BDDs provide complementary views of a block.
A BDD letsyou first define a block and its properties. Then you can use an IBD to display a valid configuration of that block—a specific set of connections among the block’s properties.
IBD Frame
The only allowable model element type for an IBD is block.
Inside the frame, you can display that block’s part properties and reference properties and the connectors that join them.
BDDs and IBDs: Complementary Views of a Block
Part Properties
IBD has the same meaning as a part property in the parts compartment of a block on a BDD
Reference Properties
A reference property on an IBD has the same meaning as a reference property in the references compartment of a block on a BDD
Connector
ChildTopic
ChildTopic
ChildTopic
ChildTopic
Item Flow
Nested Parts and References
Use case diagram
Purpose
concisely conveys a set of use cases
suited to serve as a system context diagram
When Should You Create a Use Case Diagram?
A use case diagram is an analysis tool and is generally created early in the system life cycle.
during the development of the system concept of operations (ConOps)
elicitation and specification stage
during the architectural design stage
The use case gathers those different scenarios together.
What’s a Use Case?
A use case is a service—a behavior—that your system will per-form. The use case name, therefore, is always a verb phrase
(such as Send command).
(such as Send command).
Not every behavior your system performs is a use case. Rather,use cases are the subset of system behaviors that external actors can directly invoke or participate in.
An actor can be a person or an external system that interfaces with your system.
The actors that invoke a use case are called primary actors. The actors that participate in the use case are called secondary actors. A primary actor can also be a secondary actor.
Each use case should represent a primary actor’s goal. Write the use case name—the verb phrase—from the perspective of the actor and not your system.
The use case name does not convey a lot of information. You will create a use case specification for each use case to narrate how your system and its actors collaborate to achieve the use case goal.
Use Case Specifications
The Use Case Diagram Frame
Use Cases
System Boundary
actors
Associating Actors with Use Cases
You cannot create a composite association between an actor and a use case.
You cannot create an association (of any kind) between two actors.
You cannot create an association (of any kind) between two use cases.
Base Use Cases
A base use case is any use case that is connected to a primary actor via an association relationship.
Included Use Cases
Extending Use Cases
Activity diagram
Purpose
An activity diagram is a kind of behavior diagram
One of its key advantages is its read ability; activity diagrams can express complex control logic better than
sequence diagrams and state machine diagrams.
sequence diagrams and state machine diagrams.
When Should You Create an Activity Diagram?
it often is the first kind of behavior diagram you turn to when you need to
communicate with stakeholders and capture the expected behaviors of the system and its actors.
communicate with stakeholders and capture the expected behaviors of the system and its actors.
to communicate with other members of your team and capture the expected behaviors of the system’s internal parts
Activity Diagram Frame
The only allowable model element type for an activity diagram is activity
Tokek Flow
object tokens
control tokens
Actions: The Basics
An action is one kind of node that can exist within an activity
The notation for a basic action is a round-cornered rectangle (colloquially called a round-angle).
opaque expression
Pins
A pin is a specialized kind of object node.
Activity Parameters
Streaming versus Nonstreaming
NonStreaming
Streaming
Kinds of Action
call behavior actions
send signal actions
accept event actions
wait time actions
relative time
Start an action
The activity that owns the action is currently executing.
A control token arrives on each of the incoming control flows
A sufficient number of object tokens arrive on each of the incoming object flows to satisfy the lower multiplicity of the respective input pin.
Object Nodes
Edge
object flows
control flows
Control Nodes
initial nodes
activity final nodes/flow final nodes
decision nodes
merge nodes
fork nodes
join nodes
Activity Partitions: Allocating Behaviors to Structures
Sequence diagram
Purpose
presents a dynamic view of the system
sequences of behaviors and event occurrences over time
the order in which behaviors are performed,
which structure performs each behavior,
which structure invokes each behavior
When Should You Create a Sequence Diagram?
specify the intended interactions between the systemof interest and the actors in its environment
These diagrams are useful early in the architectural design stage to specify the interactions between subsystems.
the end of architectural design to specify the interactions between components in preparation for the handoff to the teams producing detailed designs of components.
sequence diagrams as graphical test case specifications
you can potentially create a sequence diagram at any point in the system life cycle.
The Sequence Diagram Frame
The only allowable model element type for a sequence diagram is interaction.
Leftline
slector expression
Message send occurrences
Message receive occurrences
Lifeline creation occurrences
Lifeline destruction occurrences
Behavior execution start occurrences
Behavior execution termination occurrences
Message receive occurrences
Lifeline creation occurrences
Lifeline destruction occurrences
Behavior execution start occurrences
Behavior execution termination occurrences
Message
A message represents a communication between a sending lifeline and
a receiving lifeline.
a receiving lifeline.
Message Occurrences
Message Types
asynchronous messages,
synchronous messages,
reply messages,
and create messages
Destruction Occurrences
Execution Specifications
start occurrence
termination occurrence
Constraints
Time Constraints
Duration Constraints
state invariants
Combined Fragments
Opt Operator
Alt Operator
Loop Operator
Par Operator
Interaction Uses
State machine diagram
purpose
A state machine diagram is a kind of behavior diagram
it presents a dynamic view of a system.
how a structure within a system changes state in response to event occurrences over time
When Should You Create a State Machine
Diagram?
Diagram?
to describe the behavior of a block at any level in the system hierarchy (such as the
system of interest itself, a subsystem, or a single component)
system of interest itself, a subsystem, or a single component)
The State Machine Diagram Frame
States
Open, Closed, Modified, Unmodified, Encrypted, Unencrypted, and others.
Final States
Transitions
a trigger
signal events
call events
time events
relative
absolute
change events
Pseudostates
a guard
an effect
External Transitions versus Internal Transitions
external transitions
internal transitions
Regions
Parametric diagram
Purpose
model equations and inequalities as constraint blocks
When Should You Create a Parametric Diagram
create parametric diagrams during any stage of the system life cycle.
The Parametric Diagram Frame
Constraint Properties
Constraint Parameters
Value Properties
Binding Connectors
Package diagram
Purpose
A package diagram is the kind of diagram you create when you need
to display the organization of the system model.
to display the organization of the system model.
Package diagrams can display packages nested within pack-
ages to convey the containment hierarchy of the model.
ages to convey the containment hierarchy of the model.
When Should You Create a Package Diagram?
convey information about the structure of the model itself.
The Package Diagram Frame
Notations for Namespace Containment
crosshair notation
nesting notation
qualified name string notation
Dependencies between Packages
Importing Packages
Specialized Packages
model
model library
profile
view
Requirements diagram
purpose
This diagram is particularly valuable when your target audience
needs to see the traceability from the requirements to the elements in
your system model that are dependent on them.
needs to see the traceability from the requirements to the elements in
your system model that are dependent on them.
When Should You Create a Requirement Diagram?
Establishing requirements traceability
to display those relation-
ships at any point during this work.
ships at any point during this work.
The Requirements Diagram Frame
Requirements
Requirements Relationships
Containment Relationships
Trace Relationships
Derive Requirement Relationships
refine Relationships
Satisfy Relationships
Verify Relationships
Notations for Requirements Relationships
Direct Notation
Compartment Notation
Callout Notation
Matrices
Tables
Allocations:Cross-Cutting Relationships
Purpose
allocating requirements to structures
allocating behaviors to structures
allocating logical structures to physical structures
allocating resources to structures
insures consistency in the
flow-down of design inputs
flow-down of design inputs
revisit those decisions efficiently
and systematically as the life cycle progresses
and systematically as the life cycle progresses
Uses for Allocation Relationships
Behavioral Allocation
Structural Allocation
Requirements Allocation
create a «satisfy» dependency from a block to a require-
ment
ment
Direct Notation
Direct Notation
Compartment Notation
Callout Notation
Matrices
Tables
Allocation Activity Partitions
收藏
0 条评论
下一页