370 diagram 符号 Flashcards

1
Q

inherience

A

父子关系
extend
可以表达在use case或class diagram里
用三角形空心箭头,箭头放在大头处

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

generalization

A

A is type of B 空心三角箭头指向B
比如:the bank customer is type of card holder
和继承一个图形

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A is type of B

A

generalization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

«extends»

A

(use case)add more details in general use case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

one use case is a prerequisite of another 或者说 one use case invokes another

A

«uses/include»

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

“against”

A

表示“对比”或“与……比较”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

public
protected
private
package(default)
derived

A

+
#
-
~
/
在UML(统一建模语言)中,derived(派生)属性是一个从其他属性计算或推导得出的属性。它通常使用一个斜杠(/)来表示。例如,一个类的属性标记为/age,意味着这个age属性是基于其他数据(如出生日期)计算得到的,而不是直接存储的。

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

假设car class里有Customer属性,但customer没有car的属性

A

unidirectional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

unidirectional

A

one object is related to another object
一根线+单向箭头,箭头放在大头那边,比如car class有个owner customer,则箭头指向customer
在 Class Diagram(类图)中,Association(关联) 指的是类与类之间的一种关系,用来表示它们之间的连接或交互。

Unidirectional Association(单向关联)
单向关联 是一种类之间的关联,其中只有一个方向的连接存在。

含义:A 类知道 B 类的存在,但 B 类不知道 A 类的存在。
表示方法:
在类图中,用带箭头的实线表示单向关联。箭头的指向表示关联的方向。
例如,A → B 表示 A 类持有对 B 类的引用,A 可以访问 B,但 B 不知道 A 的存在。

Student ————-→ Course 学生知道自己的课但是课不知道自己,学生持有课的引用

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

bidirectional

A

both know their relationship
双向实现箭头,都有彼此的属性

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

composition(association)

A

is entirely made of完全依赖和组成,比如书完全是由page组成,没有page书完全消失
实心方块+实线,方块在大头那边

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

aggregation(association)

A

is part of部分组成,比如引擎和车
空心方块和实线,方块在大头(车)那边

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

0到更多
0或1
only one
1到更多
只有3个
0或5
5到15

A

0到更多:0..或者
0或1:0..1
only one:1
1到更多:1..*
只有3个:3
0或5:0..5
5到15:5..15

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

constraint in class diagram

A

可以在线旁边写,格式:{限制条件}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

component

A

用«component»在方框里标明,右上角画个档案符号(一个方块两个长方块)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

required interface标记

A

半圆的,像受体一样

17
Q

provided interface

A

圆形实心不实心都可以

18
Q

被连接至

A

be wired to

19
Q

port(component)

A

A组件没有直接提供/需求所需的接口,用方块表示
port将组件本身和外部接口(的名字)decoupling

20
Q

class diagram步骤

A
  1. 识别classes,找名词
  2. 发现名词之间的relationship,基本上识别包含关系的动词,实在识别不了画一条连线,上面写明动词
  3. 识别multiplicity
  4. add attributes and methods,识别非包含关系的动词,注意动词发起方
21
Q

activity node

A

长方体中间写字

22
Q

在sequence diagram中如果该(message)方法迭代怎么表示?

A

在方法前加一个 *

23
Q

sequence diagram的参与者可以是什么?

A

actors/普通对象(普通名字:类名)

24
Q

activity diagram起点和终点的样子

A

实心圆+空心圆里套个实心圆

25
sequence diagram里的分支【if...else】
alt放左上角,中间画虚线,然后[IF xxx]和[ELSE]
26
activity diagram里的分支
菱形可以中间不写字
27
sequence diagram里的条件/guard
在方法前面加[guard]
28
sequence diagram里用的线
传出去用实线->,传回来虚线
29
activity diagram里的parallelization node(并行)
->有个实心长方形然后分叉箭头
30
synchronization node
几个并行的箭头->有个实心长方形然后一根箭头
31
sequence diagram里的if分支
方框【opt】,下面写[条件]
32
sequence diagram里的loop【for和while】
方框【loop】,下面写[条件]
33
sequence diagram里的引用方法
长方形【REF】,长方形里写方法,-><...长方形
34
activity diagram的决策点分出来的分支的条件
用[条件]写在线上