- 1、本文档共56页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
UML图习题解答
类图和对象图
1. On a single diagram, illustrate the following using the UML notation for
objects, links and messages.
a) An object of class Window, with no attributes shown.
(b) An object of class Rectangle with attributes length and width. Assume
that the rectangle class supports an operation to return the area of a
rectangle object.
(c) A link between the window and rectangle objects, modeling the fact that
the rectangle defines the screen coordinates of the window.
(d) The window object sending a message to the rectangle asking for its
area.
Draw a class diagram showing Window and Rectangle classes with the
properties mentioned in this question.
龚晓庆 2
The objects, links and messages required are shown in the diagram below.
The Window and Rectangle classes are documented in the following class
diagram.
龚晓庆 3
2. Suppose that an environmental monitoring station contains three
sensors, namely a thermometer, a rain gauge and a humidity reader. In
addition, there is an output device, known as a printer, on which the
readings from these three sensors are shown. Readings are taken and
transcribed onto the printer every five minutes. This process is known
as ‘taking a checkpoint’.
(a) Draw an object diagram showing a plausible configuration for these
objects, and include on the diagram the messages that might be
generated in the system every time a checkpoint is taken. Assume that
a checkpoint is initiated by a message sent from a timer object to the
monitoring station.
(b) Does your diagram clearly show the order in which messages are sent?
If not, how might this be shown?
(c) Draw a class diagram summarizing the structure of the monitoring
station.
龚晓庆 4
A possible object diagram is shown below. The three sensors are shown as
belonging to different cla
您可能关注的文档
- 北师大版三年级上册数学全册单元测试卷含答案.doc
- 大型土石方工程施工方案.doc
- 退学委托书范本.doc
- 关于人类活动保护环境有利于可持续发展的实例.docx
- 重复构成课件.ppt
- 人员设备资金等方面具有相应的施工能力承诺书.docx
- 公司部门独立核算方案三篇.doc
- 一年级上册口算天天练.doc
- 大学班主任工作计划8篇.doc
- 工厂出货清单模板.docx
- 2025山东省工业和信息化厅工业行业离退休干部服务中心招聘3人考试备考试题及答案解析.docx
- 2025年成都市新都区锦门小学校面向社会公开招聘教师考试备考试题及答案解析.docx
- 2024年监理工程师模拟试题带答案详解(新).docx
- 2025上海市工业技术学校工作人员招聘7人(2025年第二批)考试备考试题及答案解析.docx
- 2025云南保山新发展集团有限公司市场化选聘管理人员及专业技术人员6人考试备考试题及答案解析.docx
- 2025年盐池县公开招聘社区工作者考试备考试题及答案解析.docx
- 某美容院移动支付规则.doc
- 2025浙江金华金东区面向区外公选调优秀在职教师9人考试备考试题及答案解析.docx
- 2025重庆泰山电缆有限公司招聘50人考试备考试题及答案解析.docx
- 2025四川自贡市第一人民医院住院医师规范化培训招收(第五批)考试备考试题及答案解析.docx
最近下载
- Rexroth PSI 6xCx.632xx 博世焊机中文说明书.pdf VIP
- 初中数学(初二)竞赛讲义(知识点难点梳理、重点题型分类举一反三)(家教、补习、竞赛专用).pdf VIP
- 2024~2025学年八年级数学上册第10讲 因式分解(知识梳理+11考点+过关检测)【自主学习】-2024年新八年级数学暑假提升精品讲义(华东师大版)「含答案」.pdf VIP
- 名词单数变复数专项练习题(含答案).doc VIP
- 煤矿通风专业安全生产标准化质量控制管理规定.docx VIP
- 初二数学.春.直升班.教师版.第9讲 梅涅劳斯定理.pdf VIP
- 溶液聚合法年产2万吨聚丙烯酰胺的生产工艺设计.pdf VIP
- 中考数学一轮复习讲义.pdf VIP
- 2024-2025学年统编版高一语文必修下册名句默写练习.docx VIP
- 屠宰监管培训课件.pptx
文档评论(0)