Telelogic Tau UML 建模實例過程

Telelogic Tau UML 建模實例過程

2007-11-18

2007-11-25

用到的UML

class diagram

usecase diagram

sequence diagram 描述對象之間的交互

state diagram 描述對象內部的動態行爲

實例步驟

1)      爲系統創建一個package

2)      創建collaboration, 在其中創建usecase diagram

3)      創建class diagram。爲系統中的概念創建類,描述usecase diagram中的對象,包括actor。類要指定 ActiveExternal屬性。

4)      分解類。例如:將描述系統的類分解成子系統類。

5)      定義所有的 signals

6)      定義interface class,包含作用於同一對象上的signals。定義interface之間的關係。定義interface class 和相關類的依賴關係。

7)      class 上創建 port interface

8)      usecase 創建 sequence diagram, 描述對象實例之間的交互。如果有include usecase,在sequence diagram中可以使用reference引用。

9)      class 創建 state chart

10)   創建 composite structure diagram, 描述模型中的對象如何實例化並組成系統。包含part, port, connectorPart active class 的實例。Port要定義所實現的signals

11)   創建類之間的relationship。可以引用已定義的partpart名將成爲role name

 

注意

創建 collaboration , 組織 usecase diagram

 

Active class: contain behaviors

External Property of class: 表示是系統外部的對象,不生成代碼。

 

Sequence diagram: active class and signal 的實例化。

actor 創建類,設置屬性external。在 sequence diagram 中用類的實例表示actor

使用 reference 引用另一個 use case

 

In UML, the state machine concept has been extended with data handling, meaning that signal data and other variables can be declared and handled.

Two different notations are supported: transition-oriented syntax and state-oriented syntax

State oriented syntax is more suitable for getting an overview of a large design.

The transition-oriented syntax is suitable for detailed design.

 

可以爲state創建sub state chart

操作技巧

shift 篩選可以創建的UML元素。創建state diagram時可以自動連接。

ctrl 選擇一次,創建多個UML元素

right-click 引用現有的UML元素

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章