本文主要是介绍什么是系统工程(字幕)25,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
0
00:00:01,000 --> 00:00:03,980
我们来看这个用例规约怎么写
1
00:00:06,940 --> 00:00:09,060
就按照我们前面讲的
2
00:00:11,380 --> 00:00:13,210
那些内容来写嘛
3
00:00:13,500 --> 00:00:14,680
执行者
4
00:00:15,330 --> 00:00:16,952
这个主,这几个辅
5
00:00:16,952 --> 00:00:21,819
那这个就跟前面的那个系统用例图是对应的了
6
00:00:21,819 --> 00:00:22,282
对吧
7
00:00:22,282 --> 00:00:23,441
这是照抄的
8
00:00:23,441 --> 00:00:24,600
下面就是要
9
00:00:25,550 --> 00:00:27,870
自己加上去的,前置条件
10
00:00:28,150 --> 00:00:29,245
后置条件
11
00:00:29,245 --> 00:00:30,340
前置条件
12
00:00:32,000 --> 00:00:33,941
是一个背景条件
13
00:00:33,941 --> 00:00:34,670
就是说
14
00:00:35,140 --> 00:00:39,400
即使目前蒸馏水这个用例没有在运行
15
00:00:40,510 --> 00:00:43,441
这个条件依然可以检测,哪一个
16
00:00:43,441 --> 00:00:44,070
就这个
17
00:00:46,210 --> 00:00:47,240
背景条件
18
00:00:47,700 --> 00:00:48,290
19
00:00:48,640 --> 00:00:50,630
后置条件,就是
20
00:00:50,910 --> 00:00:52,100
这个用例
21
00:00:53,130 --> 00:00:54,690
要算成功
22
00:00:56,090 --> 00:00:58,760
那应该是处于什么状态下,这个系统
23
00:01:00,560 --> 00:01:02,010
这是后置条件
24
00:01:05,080 --> 00:01:06,440
再往下走
25
00:01:08,190 --> 00:01:09,630
就是涉众利益了
26
00:01:12,480 --> 00:01:13,740
这是
27
00:01:15,940 --> 00:01:17,830
相当于什么,上游
28
00:01:18,550 --> 00:01:19,615
这是执行者
29
00:01:19,615 --> 00:01:21,924
这个操作的村民是执行者
30
00:01:21,924 --> 00:01:22,280
31
00:01:22,860 --> 00:01:24,360
村长
32
00:01:26,340 --> 00:01:28,323
这是一个比较大的涉众
33
00:01:28,323 --> 00:01:31,100
但他自己可能不一定操作的
34
00:01:31,390 --> 00:01:33,130
还有热源厂商
35
00:01:34,590 --> 00:01:34,833
36
00:01:34,833 --> 00:01:36,780
这可以看作是下游
37
00:01:37,900 --> 00:01:40,120
或者是这个
38
00:01:40,400 --> 00:01:41,523
信息的主人
39
00:01:41,523 --> 00:01:43,320
因为你用的热源
40
00:01:44,470 --> 00:01:47,440
如果说,我们这个系统故意歧视他的热源
41
00:01:49,610 --> 00:01:52,590
故意,后面在这个设计上
42
00:01:53,030 --> 00:01:54,610
针对某种热源
43
00:01:54,610 --> 00:01:56,190
我就故意搞得
44
00:01:56,190 --> 00:01:57,770
故意不好好做
45
00:01:58,120 --> 00:01:59,990
那不把那个厂家给坑了吗
46
00:01:59,990 --> 00:02:00,500
对不对
47
00:02:00,780 --> 00:02:02,280
还有,我故意
48
00:02:02,730 --> 00:02:06,060
我们系统故意去坑这个水分配系统
49
00:02:08,040 --> 00:02:09,390
把它搞坏
50
00:02:11,120 --> 00:02:12,930
那后面这些人怎么样
51
00:02:13,660 --> 00:02:15,290
他也不高兴
52
00:02:18,420 --> 00:02:20,550
他的利益也会受到损害
53
00:02:23,760 --> 00:02:24,636
涉众利益
54
00:02:24,636 --> 00:02:26,390
那我们看,基本路径
55
00:02:26,980 --> 00:02:30,920
接通水源,调节流量
56
00:02:31,350 --> 00:02:35,420
这跟我们那个前面的活动图
57
00:02:35,700 --> 00:02:37,490
是类似的
58
00:02:37,860 --> 00:02:40,440
只不过把活动图里面的步骤搬到这里来
59
00:02:41,460 --> 00:02:44,364
那我们加了一些后面这个
60
00:02:44,364 --> 00:02:45,720
请求水分配系统接受净水
61
00:02:46,000 --> 00:02:46,720
62
00:02:47,410 --> 00:02:49,560
判断要排空残渣
63
00:02:49,890 --> 00:02:51,330
这是基本路径
64
00:02:52,880 --> 00:02:54,972
扩展路径就是有意外的
65
00:02:54,972 --> 00:02:55,600
比如说
66
00:02:56,830 --> 00:02:58,300
要是没达到呢
67
00:02:58,300 --> 00:02:59,525
显然没达到
68
00:02:59,525 --> 00:02:59,770
是
69
00:03:01,750 --> 00:03:03,481
发生了很多的,对吧
70
00:03:03,481 --> 00:03:04,131
没达到
71
00:03:04,131 --> 00:03:05,430
就直接转到7
72
00:03:05,840 --> 00:03:07,816
如果没达到需要排空
73
00:03:07,816 --> 00:03:10,232
那就当前循环就结束了
74
00:03:10,232 --> 00:03:11,550
就下一个循环
75
00:03:12,310 --> 00:03:13,230
这是
76
00:03:13,510 --> 00:03:17,640
扩展路径的条件,这是做法
77
00:03:20,580 --> 00:03:21,710
字段列表
78
00:03:22,640 --> 00:03:24,471
就是这个地方
79
00:03:24,471 --> 00:03:25,780
一个转换的
80
00:03:27,000 --> 00:03:28,690
输入是污水、热
81
00:03:29,630 --> 00:03:32,580
输出,净水、残渣
82
00:03:32,860 --> 00:03:35,130
那么这跟我们前面那个
83
00:03:36,880 --> 00:03:38,520
画的那个活动图
84
00:03:38,830 --> 00:03:40,948
那个输入输出是一样的
85
00:03:40,948 --> 00:03:42,220
就照抄就可以
86
00:03:42,620 --> 00:03:43,810
照搬就可以
87
00:03:44,570 --> 00:03:46,836
那这里有一个业务规则
88
00:03:46,836 --> 00:03:48,650
什么叫足够分配值
89
00:03:49,010 --> 00:03:51,550
什么叫需要排空值
90
00:03:52,660 --> 00:03:53,963
如果比较复杂
91
00:03:53,963 --> 00:03:57,440
比如说,你这个值可能是根据你的这个
92
00:03:59,560 --> 00:04:01,500
蒸馏器的大小
93
00:04:02,510 --> 00:04:06,910
还有呢,你的那个水分配系统的管道的粗细
94
00:04:07,190 --> 00:04:07,910
对吧
95
00:04:08,190 --> 00:04:11,230
还有那进水的什么粗细什么之类的
96
00:04:12,350 --> 00:04:14,088
它可能有规格
97
00:04:14,088 --> 00:04:15,081
有个表格
98
00:04:15,081 --> 00:04:16,820
如果是这么大的
99
00:04:17,620 --> 00:04:18,780
那应该是
100
00:04:19,060 --> 00:04:19,470
多少
101
00:04:19,470 --> 00:04:20,908
如果是这么大的
102
00:04:20,908 --> 00:04:21,935
应该多少
103
00:04:21,935 --> 00:04:24,400
残渣也是一样的
104
00:04:25,590 --> 00:04:25,804
105
00:04:25,804 --> 00:04:27,730
可能跟很多因素有关
106
00:04:28,210 --> 00:04:29,870
如果在这里放不下
107
00:04:29,870 --> 00:04:32,360
你就可以,参见某某某文档的
108
00:04:34,970 --> 00:04:37,530
里面的某某表格这样写
109
00:04:41,040 --> 00:04:43,010
质量需求,就是
110
00:04:43,290 --> 00:04:47,301
包括速度、容量等等
111
00:04:47,301 --> 00:04:49,490
这个就是做到多好
112
00:04:49,860 --> 00:04:54,420
那我们可以,比如,平均每小时能处理多少污水
113
00:04:55,340 --> 00:04:58,123
这个相当于速度
114
00:04:58,123 --> 00:04:58,551
要快
115
00:04:58,551 --> 00:04:58,980
对吧
116
00:04:58,980 --> 00:05:01,335
不能说一天处理一公斤
117
00:05:01,335 --> 00:05:02,620
那不是瞎搞吗
118
00:05:03,130 --> 00:05:04,800
还有呢,这个纯度
119
00:05:06,630 --> 00:05:08,720
你出来这个水质量怎么样
120
00:05:09,000 --> 00:05:09,660
对吧
121
00:05:13,200 --> 00:05:14,500
这是质量需求
122
00:05:15,310 --> 00:05:16,360
设计约束
123
00:05:16,360 --> 00:05:18,670
无,没有,你爱怎么做怎么做
124
00:05:18,670 --> 00:05:19,930
如果说有
125
00:05:19,930 --> 00:05:21,190
你可以怎么加
126
00:05:21,190 --> 00:05:21,820
比如说
127
00:05:22,310 --> 00:05:22,930
128
00:05:23,210 --> 00:05:24,760
涉众要求
129
00:05:25,930 --> 00:05:28,480
一定要用某某品牌的热源
130
00:05:28,990 --> 00:05:30,300
否则不给钱
131
00:05:32,680 --> 00:05:33,990
那这里要写
132
00:05:34,270 --> 00:05:36,760
必须要用某某品牌的热源
133
00:05:37,790 --> 00:05:39,550
但是必须来自什么
134
00:05:39,830 --> 00:05:42,220
来自涉众的要求
135
00:05:43,320 --> 00:05:45,597
包括这个厂家的
136
00:05:45,597 --> 00:05:48,200
包括那个什么那个
137
00:05:48,500 --> 00:05:51,252
公益团体的
138
00:05:51,252 --> 00:05:52,972
包括村民的
139
00:05:52,972 --> 00:05:53,660
对吧
140
00:05:53,940 --> 00:05:55,440
比如说,村民就是说
141
00:05:56,040 --> 00:05:59,420
我们这边就是流行某某热源,那个便宜
142
00:05:59,810 --> 00:06:02,820
而且是对方厂家免费赠送的
143
00:06:03,150 --> 00:06:05,815
那就要求你一定要用这个热源
144
00:06:05,815 --> 00:06:07,720
否则你这个系统就
145
00:06:08,890 --> 00:06:09,530
146
00:06:09,810 --> 00:06:11,520
不适合他的需要
147
00:06:14,390 --> 00:06:15,520
设计约束
148
00:06:16,070 --> 00:06:17,613
一定是来自涉众的
149
00:06:17,613 --> 00:06:19,350
不能来自我们自己
150
00:06:21,300 --> 00:06:22,011
不能来自
151
00:06:22,011 --> 00:06:25,568
设计这个东西的设计团队
152
00:06:25,568 --> 00:06:27,939
设计团队是不存在的
153
00:06:27,939 --> 00:06:31,970
我们前面讲愿景的时候也说嘛
154
00:06:32,390 --> 00:06:33,570
155
00:06:34,090 --> 00:06:35,990
我们做需求的时候
156
00:06:35,990 --> 00:06:36,750
要把这个
157
00:06:37,270 --> 00:06:39,610
研发团队看作是死人
158
00:06:40,380 --> 00:06:41,725
这系统谁做的
159
00:06:41,725 --> 00:06:43,070
外星人做的
160
00:06:43,480 --> 00:06:46,950
我们只需要提需求,功能、性能,就行了
161
00:06:47,390 --> 00:06:49,950
剩下的外星人帮我们搞定
162
00:06:51,210 --> 00:06:52,608
那用例规约
163
00:06:52,608 --> 00:06:53,540
就这样来
164
00:06:55,540 --> 00:06:56,380
这样来写
这篇关于什么是系统工程(字幕)25的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!