Exercise 6-2: Model Constructor Operations
Objectives
● Add constructor operations to an existing class modeled in Rational Rose.
Scenario
In this exercise, you will add the required constructor operations to an existing class modeled in Rational Rose.
Step 1. Open Rational Rose and WTdesigner.mdl.
Step 2. Open the Attribute Specification window for CustomerOrder.
a. Navigate to com.customer.doc.
b. Double-click on CustomerOrder, or right-click on CustomerOrder and select Open Specification...
Result:
Class Specification Window
c. Select the Operations tab.
d. Clear the Show inherited check box. There should be no attributes in this class, that is no operations besides inherited operations.
e. Select the Show inherited check box.
Step 3. Create constructors.
a. Sort the attributes by Parent by selecting the Parent column header.
b. Scroll down to the list to operations directly from the parent class, WTDocument. There should be 3 constructor operations. Select these 3 operations using typical CTRL+select or SHIFT+select techniques for multi-object selection.
c. Copy and paste the operations, either with the right-click menu or with CTRL+c and CTRL+v.
d. Clear the Show inherited check box. There should now be 3 operations in CustomerOrder,although right now they are incorrectly named WTDocument() instead of CustomerOrder().
Example:
e. Rename the first operation to CustomerOrder() by double-clicking on the operation.
The Operation Specification window will open. Rename the operation name to CustomerOrder:
Example:
f. Select OK.
g. Rename the next operation by using the mouse to slowly select the operation name 2 times, and typing CustomerOrder:
Example:
h. Rename the final operation.
Step 4. Save the changes.
Step 5. System generate.
a. Remember to select a modeled class, not an OOTB class.
Step 6. Recompile.
a. Since the model definition has changed, the artifacts have changed.
b. Recompile the Java classes.
Step 7. Restart Tomcat and the Method Server.
Step 8. Test.
a. Nothing has significantly changed in the model or artifacts, so no significant difference will be seen during the test.
b. This step will confirm everything is still correct before continuing.
分享到:
相关推荐
老黑莓OS经典软件合集大全,独家整理,适合黑莓blackberry 7XXX 8XXX 9XXX等黑莓老机型,格式为cod , alx,jad等格式;;怀旧经典,软件清单如下 Twitter70.zip WacaiBlackberry.zip [BerryCN.com_DZH_v5.18] XECurrency-...
GY- AMG8833 IR 8x8红外热像仪传感器阵列测温
pm8xxx irq set wake for Linux v2.13.6.
HG8XXX系列固件
xxxtoxxx工具集合 常见的转换工具集合
模拟发送短信XXXXXXXXX
STM32F10xxx_20xxx_21xxx_L1xxxx Cortex®-M3 programming manual STM32F10xxx_20xxx_21xxx_L1xxxx编程手册来的,想要的,自己下载看看
俄罗斯方块游戏,用Java编,可在ECLIPSE环境下运行
[xxx日本≡级]XXX大学新老生交流会总结.docx
搜索引擎,界面友好,简洁得体,令人赏心悦目
使用vs2008编写的俄罗斯方块,每一步头文件跟关键函数的添加都有详细描写
qco m7xxx documents good luck
rk pdf xxxxxxxxx
ajax 做的用户体验登录窗口,ajax 做的用户体验登录窗口
视频图像的编解码,将原始图像压缩成MPEG4格式,然后在客户端解压缩显示
lorem ipsm dolor sit amet
c#表白泡妞程序(极品),代码齐全,有注释,界面美观。惹女孩子喜欢,用了你就知道。。可二次开发!
自制单片机SST89XXX仿真器GUIDE
CSRA64XXX CSRA63XXX配置工具, 配置蓝牙按键操作,LED 等