<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0076)https://www.icarnegie.com/downloadsolncmd.php?section_id=10677575&id=6871084 -->
<! DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML><HEAD><TITLE>Class and Dynamic Modeling — Solution</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR><!-- #BeginEditable "doctitle" --><!-- #EndEditable --></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top width=0%></TD>
<TD vAlign=top width="69%"></TD>
<TD vAlign=top width="31%"></TD></TR>
<TR>
<TD width=0% height=409></TD>
<TD width="69%" height=409><!-- start typing here-->
<H2>Class and Dynamic Modeling — Solution</H2>
<P><B>Noun Extraction</B>.<BR></P>
<P>Nouns which correspond to candidate classes:</P>
<BLOCKQUOTE>
<P><B>connection <BR>shopping basket <BR>shipping type
<BR>invoice<BR>order<BR>order history <BR>product<BR>product
catalog</B><BR></P></BLOCKQUOTE>
<P>Nouns which correspond to user interface objects:</P>
<BLOCKQUOTE>
<P><B>username<BR>password <BR>Add to Basket button<BR>the Delete from
Basket button<BR>the Empty Basket button<BR>the Submit Order
button<BR>Login button <BR>Logout button <BR>a radio button indicating a
particular shipping type<BR>a text area reserved for item quantity<BR>a
pop-up interface with a list of past orders<BR>Order History button<BR>a
list of timestamps<BR>an item in the order history<BR>a list of product
names </B></P></BLOCKQUOTE>
<P>Nouns which are not modeled as classes:</P>
<BLOCKQUOTE>
<P><B>timestamp: </B>an attribute of objects rather than an object
itself<B><BR>interface</B>: refers to whole collection of components,
not a specific class or object<BR><B>empty fields</B>: refers to an
empty state of interface components<BR><B>exception</B>: already part of
Java<BR><B>mouse</B>: outside the scope of the system, which will rely
on user interface components to handle mouse events <BR><B>Field</B>:
generic reference to some concrete user interface object
<BR><B>information which depends on shipping type</B>: vague way of
referring to invoice<BR><B>the catalog list</B>: redundant with list of
product names<BR><B>product name</B>: redundant with
product<BR><B>integer</B>: part of Java <BR><B>system</B>: too abstract,
refers to the actions of the entire collection of objects<BR><B>bad
value</B>: refers to a value of an attribute, not an
object<BR><B>database</B>: only need to model the connection, not the
database itself (outside scope) <BR><B>user</B>: outside scope (only
need username)</P></BLOCKQUOTE>
<P><B>Preliminary Class Diagram in UML:</B></P>
<P>The graphical user interface is modeled as a single class; for
simplicity we do not model all interface objects separately (buttons,
etc.).</P>
<P> </P>
<P><IMG height=470
src="Class and Dynamic Modeling — Solution.files/ssd9_prelimclass.gif"
width=481></P>
<P> </P>
<P><B>State Transition Diagram in UML:</B></P>
<P>We assume that the system has no response if an event occurs in the
interface control loop which does not match an event / predicate
transition in the model.</P>
<P> </P>
<P><IMG height=698
src="Class and Dynamic Modeling — Solution.files/ssd9_std.gif"
width=877></P><!-- end typing here--></TD>
<TD width="31%" height=409></TD></TR>
<TR>
<TD width=0%></TD>
<TD width="69%">
<P> </P></TD>
<TD width="31%"></TD></TR>
<TR>
<TD width=0%></TD>
<TD width="69%"><FONT size=2><BR>© 2000 Carnegie Technology Education. All
rights reserved.</FONT> </TD>
<TD width="31%"></TD></TR></TBODY></TABLE></BODY></HTML>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ssd9 exercise4.rar (3个子文件)
exercise4
Class and Dynamic Modeling — Solution.files
ssd9_prelimclass.gif 7KB
ssd9_std.gif 21KB
Class and Dynamic Modeling — Solution.htm 4KB
共 3 条
- 1
资源评论
- yanwenhao02012-11-08作者还是很不错~~~
- 小米_dolphin2012-12-10还行,是有用的
wgc6522423
- 粉丝: 1
- 资源: 41
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功