ห ัวข้อ 1. ล ักษณะของ Rational Rose 2. การใช้งาน Rational Rose

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 21

Rational Rose

ห ัวข้อ

1. ล ักษณะของ Rational Rose


2. การใชง้ าน Rational Rose

1
คุณสมบัตเิ ด่นของ Rational Rose

 รองร ับมาตรฐาน UML, Booch ,OMT


 ประกอบด้วย Tools ต่างๆมากมายทีจ่ ะใชใ้ นการสร้าง Object-
Oriented Diagram ตามาตรฐานของภาษา UML ชว ่ ยให้สร้าง
Diagram ทงหมดได้
ั้ อย่างสะดวกและง่ายขึน ้
 ่ JAVA, C++ ,Visual C+
สามารถ Generate Code ต่างๆได้ เชน
+, Visual Basic6.0

14 and 21 June 2004 Lab :Rational Rose Slide2 from 20


Rose graphical user interface
The most common elements are:
 Standard toolbar

 Diagram toolbox

 Diagram window

 Browser

 Specifications

 Documentation window

14 and 21 June 2004 Lab :Rational Rose Slide3 from 20


14 and 21 June 2004 Lab :Rational Rose Slide4 from 20
Standard toolbar

 Standard toolbar
- located near the top of the window
- always displayed-independent of the current
diagram type
- place your cursor over the toolbar to display a
tooltip for each icon

14 and 21 June 2004 Lab :Rational Rose Slide5 from 20


Diagram toolbox

 Diagram toolbox
- change based on the active diagram
- place your cursor over the toolbar to display a
tooltip for each icon

14 and 21 June 2004 Lab :Rational Rose Slide6 from 20


Diagram window

• create ,display or modify


in the diagram window
• can display in a cascading

14 and 21 June 2004 Lab :Rational Rose Slide7 from 20


Browser
 Rose browser is a hierarchical navigational tool allowing you
to view the names and icons representing diagrams and model
elements.

14 and 21 June 2004 Lab :Rational Rose Slide8 from 20


Specifications
 Specifications are dialog boxes that allow you to set or change
model element properties.
 Changes made to a model element through

the specification are automatically updated


throughout the model.

14 and 21 June 2004 Lab :Rational Rose Slide9 from 20


Documentation window
 The documentation window allows you to create a self-
documenting model.

14 and 21 June 2004 Lab :Rational Rose Slide10 from 20


Diagrams
 create various types of diagrams in Rational Rose:

 Use-Case
 Class
 Activity
 Statechart
 Component
 Deployment

14 and 21 June 2004 Lab :Rational Rose Slide11 from 20


Views
 Use Case View
 Logical View
 Component View
 Deployment View

14 and 21 June 2004 Lab :Rational Rose Slide12 from 20


Use-case view
 The use-case view helps you to understand and use the system.
 This view looks at how actors and use cases interact.
 The diagrams in this view are:

 Use-case diagrams
 Sequence diagrams
 Collaboration diagrams
 Activity diagrams

14 and 21 June 2004 Lab :Rational Rose Slide13 from 20


Logical view
The logical view address the functional requirements of the system.
This view looks at classes and their relationships.

The diagram in this view are :

 Class diagrams
 Statechart diagrams

14 and 21 June 2004 Lab :Rational Rose Slide14 from 20


Component view
The component view address the software organisation of the system.

This view contains only


component diagrams

14 and 21 June 2004 Lab :Rational Rose Slide15 from 20


Deployment view
The deployment view shows the mapping of processes to hardware.
This type of diagram is most useful in a distributed architecture
environment where you might have applications and servers at
different locations.

This view contains only


the development diagram.

14 and 21 June 2004 Lab :Rational Rose Slide16 from 20


Use case diagram
ประกอบด้ วย
Use case
แทนฟังก์ ชันทีม ่ ีในระบบ
สั ญลักษณ์ รูปวงรี

Actor
แทนผู้ทเี่ ข้ ามาเกีย่ วข้ องกับระบบ
สามารถเป็ นผู้ดง ึ ข้ อมูลไปใช้ หรือส่ งข้ อมูลเข้ าระบบ
สามารถเป็ นคน หรื อระบบก็ได้

สั ญลักษณ์ Stick man

Relationship
ความสั มพันธ์ ระหว่ าง Actor กับ Use Case (Association)
Use Case กับ Use Case (Generalization)
<<use>>
<<extends>>

14 and 21 June 2004 Lab :Rational Rose Slide17 from 20


Class Diagram
ประกอบด้ วย
 Class ซึ่ งประกอบด้ วย 3 ส่ วนดังนี้
 Class name ชื่อตัวแรกตัวใหญ่ เช่ น Student, Person, Professor
 Attribute ชื่อตัวแรกตัวเล็ก คำถัดมาตัวแรกตัวใหญ่ เช่ น name, age, telephoneNo, deptName
 Method,operation หรือ service ชื่อตัวแรกตัวเล็ก คำถัดมาตัวแรกตัวใหญ่ เช่ น
getAddress, registerFor Course, getName

 Relationship
 Inheritance (Generalization)
 Aggregation (Whole-part)

14 and 21 June 2004 Lab :Rational Rose Slide18 from 20


Sequence and Collaboration Diagram
Sequence Diagram:
 เป็ นแผนภาพทีอ ่ ธิบายรายละเอียดลำดับการทำงานของแต่ ละ Use Case ในระบบ
 แสดงให้ เห็นถึงการติดต่ อสื่ อสารกันระหว่ างอ็อบเจกต์ หรื อวัตถุ

 เน้ นแกนเวลาเป็ นสำคัญ

Collaboration Diagram:
 เป็ นแผนภาพทีอ ่ ธิบายรายละเอียดลำดับการทำงานของแต่ ละ Use Case ในระบบ
 แสดงให้ เห็นถึงการติดต่ อสื่ อสารกันระหว่ างอ็อบเจกต์ หรื อวัตถุ

 ไม่ แสดงเกนเวลา

แผนภาพทั้งสองจะประกอบด้ วย
 Actor
 Object ที่เกีย่ วข้ อง
 Object Message

14 and 21 June 2004 Lab :Rational Rose Slide19 from 20


Statechart Diagram
 เป็ นแผนภาพทีใ่ ช้ แสดงพฤติกรรมของอ็อบเจกต์ ว่า จะเปลีย่ นสถานะอย่ างไร เมื่อเกิด
เหตุการณ์ ต่างๆขึน้
 ประกอบด้ วย
 Start state

 State

 State transition

 Stop state

14 and 21 June 2004 Lab :Rational Rose Slide20 from 20


Activity Diagram
 เป็ นแผนภาพทีแ่ สดงขั้นตอนการทำงานของ Use Case
 เน้ นทีก่ จิ กรรมย่ อยของอ็อบเจกต์
 ประกอบด้ วย
 Start
 Activity
 Swim lanes

14 and 21 June 2004 Lab :Rational Rose Slide21 from 20

You might also like