115
00:06:30,540 --> 00:06:39,060
那我们可以把它和
116
00:06:39,060 --> 00:06:41,260
序列图对比一下
117
00:06:41,260 --> 00:06:41,740
你看
118
00:06:41,740 --> 00:06:42,660
序列图上
119
00:06:42,660 --> 00:06:47,500
同样的一个过程
120
00:06:47,500 --> 00:06:47,940
你看
121
00:06:47,940 --> 00:06:52,140
老师提问
122
00:06:52,140 --> 00:06:52,900
学员回答
123
00:06:52,900 --> 00:06:53,860
对吧
124
00:06:53,860 --> 00:06:55,980
序列图上提问是老师的责任
125
00:06:55,980 --> 00:06:58,260
126
00:06:58,260 --> 00:07:00,540
你看,老师跟学员
127
00:07:00,540 --> 00:07:02,940
老师请求学员回答问题
128
00:07:02,940 --> 00:07:05,500
返回是回答
129
00:07:05,500 --> 00:07:09,580
所以你看这里面,这个消息下面
130
00:07:09,580 --> 00:07:10,460
这里是动词
131
00:07:10,460 --> 00:07:12,620
这是操作
132
00:07:12,620 --> 00:07:15,260
也是学员的一个责任
133
00:07:15,260 --> 00:07:17,740
这是输入
134
00:07:17,740 --> 00:07:20,660
这是对象,名词
135
00:07:20,660 --> 00:07:21,740
对吧
136
00:07:21,740 --> 00:07:24,180
这是返回的对象
137
00:07:24,180 --> 00:07:27,660
名词
138
00:07:27,660 --> 00:07:29,460
当然这个回答本身
139
00:07:29,460 --> 00:07:30,540
它是又当动词
140
00:07:30,540 --> 00:07:31,420
又当名词用
141
00:07:31,420 --> 00:07:32,860
这里有点
142
00:07:32,860 --> 00:07:36,340
有点混淆
143
00:07:36,340 --> 00:07:37,940
你们汉字本身它这个
144
00:07:37,940 --> 00:07:42,020
它这个回答本身就可以当
145
00:07:42,020 --> 00:07:44,260
动词、名词用
146
00:07:44,260 --> 00:07:45,660
当然英文里面也是一样
147
00:07:45,660 --> 00:07:48,300
就是这个词本身比较特别
148
00:07:48,300 --> 00:07:50,540
然后呢
149
00:07:50,540 --> 00:07:50,860
你看
150
00:07:52,780 --> 00:07:56,220
负责的那个类
151
00:07:56,220 --> 00:07:57,100
名词在这里
152
00:07:57,100 --> 00:07:59,740
你看,结点,名词
153
00:07:59,740 --> 00:08:04,260
这个线上,主要的成分是动词
154
00:08:04,260 --> 00:08:07,220
名词之间发生了一个动词
155
00:08:07,220 --> 00:08:07,540
对吧
156
00:08:07,540 --> 00:08:11,620
而活动图是什么
157
00:08:11,620 --> 00:08:13,380
动词在这里
158
00:08:13,380 --> 00:08:14,500
提问,回答这里
159
00:08:14,500 --> 00:08:17,180
你看这里,动词是在这个线上的
160
00:08:17,180 --> 00:08:19,340
对吧
161
00:08:19,340 --> 00:08:20,660
这里
162
00:08:21,140 --> 00:08:21,660
现在呢
163
00:08:21,660 --> 00:08:22,900
把它变成到这里来
164
00:08:22,900 --> 00:08:23,100
你看
165
00:08:23,100 --> 00:08:30,540
它摆在中间这里
166
00:08:30,540 --> 00:08:32,100
然后呢
167
00:08:32,100 --> 00:08:33,300
这个数据流动
168
00:08:33,300 --> 00:08:35,060
你看,这里流动流过来
169
00:08:35,060 --> 00:08:35,420
对吧
170
00:08:35,420 --> 00:08:38,660
参数这里流过来
171
00:08:38,660 --> 00:08:39,900
输出在这里,出来
172
00:08:39,900 --> 00:08:45,700
这个位置不一样
173
00:08:45,700 --> 00:08:46,140
但是呢
174
00:08:46,140 --> 00:08:47,140
都可以表达
175
00:08:47,140 --> 00:08:50,220
同一个内容
176
00:08:51,140 --> 00:08:52,860
那刚才讲的老师学员
177
00:08:52,860 --> 00:08:54,500
这个这里用泳道
178
00:08:54,500 --> 00:08:56,620
来表达了
179
00:08:56,620 --> 00:08:57,420
泳道这里
180
00:08:57,420 --> 00:09:00,860
老师学员
181
00:09:00,860 --> 00:09:01,940
你看这有个allocate
182
00:09:01,940 --> 00:09:04,420
分配
183
00:09:04,420 --> 00:09:09,180
就是说,这个活动被分配给老师了
184
00:09:09,180 --> 00:09:12,740
分配给老师
185
00:09:12,740 --> 00:09:13,900
那个分配给学员
186
00:09:13,900 --> 00:09:18,220
这个我们后面讲到
187
00:09:18,220 --> 00:09:19,820
分区或泳道的时候
188
00:09:19,820 --> 00:09:20,460
会再说
1
00:00:00,000 --> 00:00:03,400
刚才我们讲了这个图
2
00:00:03,400 --> 00:00:05,400
下面我们首先来看
3
00:00:05,400 --> 00:00:07,400
第一个概念,活动
4
00:00:07,400 --> 00:00:09,400
活动
5
00:00:09,400 --> 00:00:13,400
可以看作是一个
6
00:00:13,400 --> 00:00:19,000
把输入转成想要的输出的
7
00:00:19,000 --> 00:00:21,400
这样一个过程
8
00:00:21,400 --> 00:00:25,800
或者说,它带来这样一个价值
9
00:00:25,800 --> 00:00:28,300
输入,你看
10
00:00:28,300 --> 00:00:32,300
这是一个蒸馏水的
11
00:00:32,300 --> 00:00:33,300
一个活动
12
00:00:33,300 --> 00:00:35,300
活动图是活动的图
13
00:00:35,300 --> 00:00:39,300
这是“蒸馏水”活动的图
14
00:00:39,300 --> 00:00:43,300
输入是冷的污水、热
15
00:00:43,300 --> 00:00:46,300
输出是废热
16
00:00:46,300 --> 00:00:48,300
净水
17
00:00:48,300 --> 00:00:51,300
里面是具体的过程
18
00:00:55,300 --> 00:01:00,300
像这些,活动里面
19
00:01:00,300 --> 00:01:02,300
有动作
20
00:01:02,300 --> 00:01:07,300
然后动作之间数据的流动
21
00:01:07,300 --> 00:01:09,300
这是动作的引脚
22
00:01:09,300 --> 00:01:14,300
也就是输入输出的参数
23
00:01:14,300 --> 00:01:20,300
这是一个并行的控制的符号
24
00:01:20,300 --> 00:01:28,300
外面看的话,就是一个输入变输出的
25
00:01:28,300 --> 00:01:32,300
里面看就是动作的一个集合
26
00:01:32,300 --> 00:01:36,300
所以你看,我们把它盖住
27
00:01:36,300 --> 00:01:43,300
这个就是活动的外部的视角
28
00:01:43,300 --> 00:01:46,300
把它敞开
29
00:01:46,300 --> 00:01:48,300
这是里面的视角
30
00:01:48,300 --> 00:01:52,300
里面就是由若干个动作组成