0
00:00:00,650 --> 00:00:02,660
那么下一个呢,就是
1
00:00:03,200 --> 00:00:04,770
图16.12
2
00:00:05,740 --> 00:00:07,910
这是一个活动图
3
00:00:09,090 --> 00:00:11,930
表达了蒸馏这个水的
4
00:00:12,280 --> 00:00:13,470
过程的
5
00:00:14,100 --> 00:00:14,382
6
00:00:14,382 --> 00:00:15,510
这个活动
7
00:00:15,910 --> 00:00:18,040
它里面的一个分解
8
00:00:20,200 --> 00:00:21,940
那我们来看这个图
9
00:00:22,570 --> 00:00:22,808
10
00:00:22,808 --> 00:00:24,716
你看,这个是活动图
11
00:00:24,716 --> 00:00:26,863
然后是针对这个activity
12
00:00:26,863 --> 00:00:29,964
这个蒸馏水这个activity来画的
13
00:00:29,964 --> 00:00:31,873
图的名字叫简单流
14
00:00:31,873 --> 00:00:35,690
那现在我们先来把这张图给建起来
15
00:00:36,150 --> 00:00:38,250
那活动图指的是什么
16
00:00:38,940 --> 00:00:42,634
给一个活动画的图,是描述一个活动的图
17
00:00:42,634 --> 00:00:44,590
也就是说,活动图里面
18
00:00:45,400 --> 00:00:47,795
这里面是没有活动的
19
00:00:47,795 --> 00:00:50,670
活动图是描述一个活动的图
20
00:00:52,370 --> 00:00:54,900
这里面这些叫action
21
00:00:54,900 --> 00:00:55,660
动作
22
00:00:57,390 --> 00:00:59,810
那我们现在把这个图建起来
23
00:01:00,090 --> 00:01:00,265
24
00:01:00,265 --> 00:01:01,845
是针对这个活动嘛
25
00:01:01,845 --> 00:01:02,196
对吧
26
00:01:02,196 --> 00:01:03,600
这活动在哪里呀
27
00:01:06,130 --> 00:01:07,453
这个收起来
28
00:01:07,453 --> 00:01:09,040
刚才是在这里
29
00:01:09,040 --> 00:01:09,570
对吧
30
00:01:10,060 --> 00:01:10,556
31
00:01:10,556 --> 00:01:11,550
这里
32
00:01:12,040 --> 00:01:13,960
蒸馏水这里,对吧
33
00:01:15,720 --> 00:01:15,990
34
00:01:15,990 --> 00:01:17,610
它下面有三个
35
00:01:18,080 --> 00:01:20,121
子活动
36
00:01:20,121 --> 00:01:21,580
右键点这个
37
00:01:22,170 --> 00:01:23,580
添加
38
00:01:25,320 --> 00:01:26,870
添加一个图
39
00:01:28,960 --> 00:01:29,315
40
00:01:29,315 --> 00:01:30,380
这些都
41
00:01:30,700 --> 00:01:32,420
要SysML的
42
00:01:32,420 --> 00:01:34,140
SysML1.5
43
00:01:34,420 --> 00:01:35,179
活动
44
00:01:35,179 --> 00:01:37,710
然后,图的名字叫什么呀
45
00:01:38,440 --> 00:01:39,950
简单流
46
00:01:45,160 --> 00:01:46,060
OK
47
00:01:49,920 --> 00:01:50,480
好
48
00:01:50,480 --> 00:01:51,600
你看
49
00:01:51,890 --> 00:01:53,050
对比一下
50
00:01:53,610 --> 00:01:54,360
activity
51
00:01:54,360 --> 00:01:57,360
蒸馏水,简单流,对吧
52
00:01:58,490 --> 00:02:01,350
那首先我们来画这个了
53
00:02:01,720 --> 00:02:02,520
这个
54
00:02:03,120 --> 00:02:04,900
是这个活动的
55
00:02:07,330 --> 00:02:09,820
蒸馏水这个活动的参数
56
00:02:10,760 --> 00:02:13,595
你看,脏水,左边是in
57
00:02:13,595 --> 00:02:15,800
右边就是输出
58
00:02:15,800 --> 00:02:18,320
一个输入,一个输出
59
00:02:18,680 --> 00:02:23,569
当然,你要是把这个放在右边,也没问题
60
00:02:23,569 --> 00:02:26,130
但习惯性就把这个放左边
61
00:02:26,550 --> 00:02:27,230
62
00:02:28,200 --> 00:02:30,069
它不是由这个位置定的
63
00:02:30,069 --> 00:02:32,561
而是在这里面,一会我们看设置的时候
64
00:02:32,561 --> 00:02:33,340
它会有这个
65
00:02:33,680 --> 00:02:34,723
方向,对吧
66
00:02:34,723 --> 00:02:36,550
输入输出的方向
67
00:02:36,830 --> 00:02:38,370
一个脏水冷水
68
00:02:38,370 --> 00:02:40,936
一个是外部的热源的热
69
00:02:40,936 --> 00:02:41,450
对吧
70
00:02:41,450 --> 00:02:43,503
一个水,一个热,进来
71
00:02:43,503 --> 00:02:45,300
出去是什么
72
00:02:46,250 --> 00:02:47,290
废热
73
00:02:47,570 --> 00:02:48,870
还有净水
74
00:02:50,400 --> 00:02:51,260
这两个
75
00:02:51,630 --> 00:02:52,360
对吧
76
00:02:52,640 --> 00:02:54,640
那这个是
77
00:02:55,230 --> 00:02:57,890
两个输入的参数
78
00:02:58,270 --> 00:02:59,944
两个输出的参数
79
00:02:59,944 --> 00:03:01,140
那这个要先
80
00:03:01,550 --> 00:03:02,393
建起来
81
00:03:02,393 --> 00:03:04,080
针对这个活动建起来
82
00:03:05,550 --> 00:03:06,340
那
83
00:03:06,690 --> 00:03:07,590
我们
84
00:03:09,350 --> 00:03:11,624
先给它加参数
85
00:03:11,624 --> 00:03:13,140
你看,添加
86
00:03:15,290 --> 00:03:16,880
活动参数这里
87
00:03:17,620 --> 00:03:20,740
那我们看这个名字,第一个是
88
00:03:21,510 --> 00:03:23,831
冷的污水,对吧
89
00:03:23,831 --> 00:03:25,490
冷的脏水
90
00:03:25,940 --> 00:03:27,950
冷的污水
91
00:03:29,360 --> 00:03:30,800
这是名字
92
00:03:36,120 --> 00:03:37,300
这里有个参数
0
00:00:00,730 --> 00:00:01,506
然后呢
1
00:00:01,506 --> 00:00:05,131
我们针对这个参数来设置它的类型
2
00:00:05,131 --> 00:00:07,720
然后,这里,然后,这里,参数
3
00:00:08,030 --> 00:00:11,921
类型,它是H2O是吧
4
00:00:11,921 --> 00:00:12,629
5
00:00:12,629 --> 00:00:15,460
那这里得找到那个H2O
6
00:00:17,740 --> 00:00:18,015
7
00:00:18,015 --> 00:00:18,840
就这个
8
00:00:21,600 --> 00:00:21,963
好
9
00:00:21,963 --> 00:00:22,690
保存
10
00:00:23,060 --> 00:00:23,344
好
11
00:00:23,344 --> 00:00:24,480
冷的污水
12
00:00:26,070 --> 00:00:26,880
在这里
13
00:00:28,480 --> 00:00:31,400
然后它的方向是
14
00:00:33,750 --> 00:00:34,800
进入的
15
00:00:35,750 --> 00:00:37,670
但这里并没有体现
16
00:00:37,670 --> 00:00:42,230
因为我们这个图是刚才这个出现之前
17
00:00:43,930 --> 00:00:45,722
画的,拖上去的
18
00:00:45,722 --> 00:00:47,067
如果你要体现
19
00:00:47,067 --> 00:00:48,860
你看,可以把它删掉
20
00:00:52,290 --> 00:00:52,950
21
00:00:53,230 --> 00:00:56,410
然后这个时候,再建
22
00:00:59,620 --> 00:01:00,650
又回来了
23
00:01:01,120 --> 00:01:01,380
24
00:01:01,380 --> 00:01:02,160
1.5
25
00:01:02,690 --> 00:01:03,005
26
00:01:03,005 --> 00:01:03,950
Activity
27
00:01:03,950 --> 00:01:04,580
28
00:01:05,050 --> 00:01:06,960
简单流
29
00:01:09,840 --> 00:01:11,820
你看,冷的污水在这里
30
00:01:12,710 --> 00:01:13,410
对吧
31
00:01:15,720 --> 00:01:17,790
当然,一会我们可以把它拖上来
0
00:00:00,830 --> 00:00:02,610
接下来,就是
1
00:00:04,800 --> 00:00:06,740
下一个参数了
2
00:00:07,020 --> 00:00:07,443
3
00:00:07,443 --> 00:00:08,290
这是
4
00:00:10,290 --> 00:00:11,440
外部
5
00:00:12,100 --> 00:00:13,455
外部热源
6
00:00:13,455 --> 00:00:15,150
外部热,对吧
7
00:00:15,840 --> 00:00:16,692
外部热
8
00:00:16,692 --> 00:00:19,250
那这个下一个参数
9
00:00:19,730 --> 00:00:22,890
针对这个添加一个参数
10
00:00:23,770 --> 00:00:25,430
外部热
11
00:00:29,260 --> 00:00:30,790
它的类型
12
00:00:31,470 --> 00:00:32,550
是热
13
00:00:37,830 --> 00:00:41,847
就是前面我们在项类型里面定义的,这个地方是吧
14
00:00:41,847 --> 00:00:42,038
15
00:00:42,038 --> 00:00:42,230
16
00:00:43,930 --> 00:00:44,740
好
17
00:00:45,530 --> 00:00:46,480
再来
18
00:00:49,800 --> 00:00:51,010
还有
19
00:00:52,150 --> 00:00:53,720
废热
20
00:01:07,470 --> 00:01:09,300
类型也是热
21
00:01:16,820 --> 00:01:18,729
还有什么
22
00:01:18,729 --> 00:01:20,638
这个方向
23
00:01:20,638 --> 00:01:21,020
是
24
00:01:22,950 --> 00:01:23,316
25
00:01:23,316 --> 00:01:24,050
这个
26
00:01:25,540 --> 00:01:26,520
往外的
27
00:01:28,180 --> 00:01:29,000
好
28
00:01:29,900 --> 00:01:31,600
还有一个是
29
00:01:31,880 --> 00:01:33,550
净水
30
00:01:45,440 --> 00:01:47,060
类型是水
31
00:01:57,160 --> 00:01:57,930
好
32
00:01:58,780 --> 00:01:59,700
这样来