- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
是否绝对有必要使用“箭头”来显示用例图中参与者和用例之间的关联?
我最近不得不为我的软件工程作业画一张。但是,在对许多其他大学的许多文章、论文、在线书籍和讲义进行了一些在线研究之后,似乎大多数用例图,无论它们有多大潜力来显示某种“流程”或“导航性” ",没有箭头,而某些示例有箭头。
因此,我咨询了我的 friend ,他是一名最后一年的学生,并且已经研究了我告诉我的内容,我的 Actor 和用例之间不应该有箭头,甚至他的需求工程讲师也教学生不要使用箭头。因此,我有意识地决定不使用箭头,而是使用实线来显示我的用例关联。
然而,当我收到作业分数时,我惊讶地发现我因为不使用箭头而得了零分。即使强制使用它们,也有大量证据表明实线可用于双向关联。那么我不应该至少获得一些分数吗?
显然,我要求我的讲师做出解释,我下周将见到他来讨论这一点,但如果她告诉我我应该使用箭头,我可以提出什么论据来反对它?
<小时/>这整个困惑的开始是因为讲师提供的唯一符号是一个讲义中的一个非常简单的库用例图示例,其中有箭头。但并没有明确表明这是最终的符号。我不认为这是强制性的另一个原因是,在解释绘制数据流图的符号时,她非常清楚地使用了她的特定符号,但 DFD 在不同的符号中使用不同的符号并不罕见。不同的来源,而我几乎找不到证据表明在用例图中使用箭头是必要的。
也就是说,即使在没有箭头的情况下,我记得在辅导类(class)中询问一位导师(不是讲师)有箭头线和实线之间有什么区别,他说没有,我可以两者都用。显然,我只有我自己的话,从你们所说的来看,我怀疑任何处于学术地位的人都会承认说出了一些可能使他们处于防御地位的事情。我的错误在于没有直接与讲师交谈,但事后看来我显然会这么做。无论如何,我会就所有这些信息与她交谈,并要求她考虑这个“无心错误”。这不仅仅是用例图,还有其他几个问题,我在这些问题上丢了异常多的分数,特别是当我的答案与她提供的模型答案几乎相同时。我还知道很多其他学生要求对他们的作业进行评论。
<小时/>我还有一个问题。这是作业中给出的用于绘制用例图的场景。
CONTHETICKET is a ticket agencydealing in Concert and Theatretickets. Concert and theatre venuesprovide CONTHETICKET with a constantstream of information on forthcomingevents, which is then used by theManager to compile a fixture list foruse by the sales staff in respondingto customer calls. The manager selectssome events for which CONTHETICKETwill purchase a number of tickets inadvance, thereby benefiting fromdiscounts negotiated with the venues.
He personally sends the orders for thetickets together with the agreedpayments to the venues, and oncetickets are received, he files them inthe ticket File.
When customers ring the sales team,their ticket requests are checkedagainst the ticket file. Ifpre-purchased tickets are availablethey are put in an envelope markedwith the customer's name and address,and filed in a provisional ordersfile. If not, the sales team fills outa ticket request form and put it in atray for collection by the post clerk.
The payments section checks theprovisional orders file daily. Theysend an invoice to the customer andawait payment. A copy of the invoiceis kept on file. When a payment isreceived, the payments section matchthe payment with the appropriateinvoice, and if satisfied placeanother copy of the invoice in adespatch file with instructions todespatch the tickets.
The post clerks checks the despatchfile each day and retrieves theappropriate tickets from theprovisional orders file and sends themto the appropriate customers.
从 my diagram 可以看出作为一名 Actor ,我有一个“音乐会和剧院 field ”。
来自《UML 2.0 风格的元素》,Scott W. Ambler:
An actor is a person, organization, or external system that plays a role in one or more interactions with your system (actors are typically drawn as stick figures on UML Use Case diagrams).
然而,在我批改的作业上,讲师评论说不应该是 Actor 。这应该是一名 Actor 吗?如果是的话,为什么?
我背后的理由是 CT&V 提供事件信息,然后经理使用这些信息来订购/归档门票,这些信息也由 CT&V 提供。
最佳答案
你的图表绘制正确,而你的老师错误:
UML specification v1.4.2 [PDF 警告] 第 4.11.3 节格式正确规则和第 5.42.2 节二元关联在以下几点上非常明确:
4.11.3 Well-Formedness Rules: "Actors can only have Associations to UseCases, Subsystems, and Classes and these Associations are binary."
5.42.2 Binary Association: "A binary association is drawn as a solid path connecting two classifier symbols"
话虽这么说,如果你的老师告诉你使用箭头而你没有,那么你可能没有追索权 - 这是学术界的缺点之一:一些教授希望学生只是重复他们被告知的内容,即使这是错误的。你可以向系主任提出申诉,认为教授对学生的指导违反了既定标准,但这很可能只会给你带来悲伤。不过,我确实认为你会有一个强有力的理由,因为因为你没有画出不正确的箭头而在正确的图表上给你一个零似乎有点过分、苛刻和不合理。
但我遇到过一些教授,他们总是对的,即使他们明显错了。然而,大多数人都是理性/合乎逻辑的人,他们乐于适当纠正错误信息。
假设这是一个无心的错误,并要求教授解释为什么当官方 OMG UML 规范说不要使用箭头时他期望箭头(因此每个用例的兼容 UML 工具都会>不在二元关系上画箭头)。如果你带着枪声去那里,你可能会或可能不会得到满足,但你也可能会产生敌意,这可能会让本学期剩下的时间(甚至可能更长)变得非常不愉快。
编辑:我确实相信旧的工具和标准在用例图上使用单个箭头(不是三角形或填充的,只是“翅膀”),但现在不再这样做了。也许教授的标准 - 或软件 - 已经过时了;-)
关于uml - 用例图——箭头是绝对必要的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/455373/
我想要做的是在每个框的蓝色标题之后获取红色文本。 看来我必须添加另一个 div?我已经添加并修改了 .card-indus img 的位置,但结果永远不是我想要的。 你知道为什么即使我将 positi
所以我一直在努力掌握绝对和相对定位的诀窍。关于这个主题有很多教程和问题,我已尽力理解它们。除了这一点,我大部分时间都很好。我正在创建一个页面,其中有较小的缩略图图像,用户可以选择单击并展开图像。为此,
下面是我正在处理的代码。如您所见,有一个“#parent”div 和一个“#child”div。 '#child' div 有一个未定义的高度,这是因为有时,'#child' 的高度小于或长于它的父级
我目前正在创建一个看起来有点像这样的固定 header 。 https://gyazo.com/e0bab8ba195e33110b19123c7fc3c568 Logo 始终位于左侧,小按钮始终位于
我怎样才能得到一个绝对定位的子 div,当它放在父 div 的范围之外时不显示? https://jsfiddle.net/knp9ebys/9/ .papa { background:red;
如果我对 CSS 显得相当“菜鸟”,我深表歉意。我一直在尝试设置以下... #0 { width: 100%; height: y; border: 1px solid black; } #
很长一段时间以来,我一直在摆弄一个特定的布局问题,但我显然采用了错误的方式。 以下是分解为基本组成部分的方法: SOME HEADER
我创建了几个虚拟 Controller ,我希望能够从当前的 http 请求中获取 url。 例如: http://www.site.com/app_1/default.aspx ===> http:
我创建了几个虚拟 Controller ,我希望能够从当前的 http 请求中获取 url。 例如: http://www.site.com/app_1/default.aspx ===> http:
我想知道是否有一个库在某处提供受新类型保护的 FilePath 类型。我找到了我想要的http://hackage.haskell.org/package/darcs-2.8.4/docs/src/D
如果我尝试使用以下方式连接到我的嵌入式数据库: private static String url = "jdbc:sqlite:~/hr4413/pkg/sqlite/Models_R_US.db"
所以我是 django 的新手,我一直在研究 PHP CodeIgniter,其中将绝对 URL 放入 href 我通过调用 URL 帮助程序使用了一个名为 base_url 的函数 它给出的输出类
我有一个小问题。 我在其他 div 中有一些图像元素的容器 div。像这样的东西: 我需要将容器垂直居中,但我不能使用顶部:-healfHeight; mar
我有一个带有 inline-block css 位置的列表(div)。里面有一个 relative 定位的 ul 是隐藏的。所以我试图通过添加一些类将这个 div 转换为 absolute 。通常,当
我正在尝试设置一个卡住列,唯一需要解决的问题是同一行上其他 td 的高度不会扩展以匹配绝对定位 td 的高度。由于卡住标题中的文本是任意的,它可以跨越多行。 如果它不是绝对定位的,那么这将迫使同一行中
这个问题在这里已经有了答案: Centering text vertically and horizontally in a div (1 个回答) 关闭 5 年前。
当它的位置绝对时,我试图使一个框宽度为 100%? 下图是我想要做的 https://i.imgur.com/qMaT361.gif float .box1 { position:re
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and t
我有 3 个 div,都是 positioned: absolute,但是我想要填充窗口宽度的 div 只会适应其中文本的长度。我希望黄色 div #help 填充窗口的其余部分。 我知道这听起来很菜
这个问题在这里已经有了答案: Retrieve the position (X,Y) of an HTML element (32 个答案) 关闭 8 年前。 有时候,当我请求某个对象的.posit
我是一名优秀的程序员,十分优秀!