Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Introduction to UML Interface and packages 即時與嵌入式系統實驗試 李榮華.

Similar presentations


Presentation on theme: "1 Introduction to UML Interface and packages 即時與嵌入式系統實驗試 李榮華."— Presentation transcript:

1 1 Introduction to UML Interface and packages 即時與嵌入式系統實驗試 李榮華

2 2 Outline Interface 1.Define 2.Why Interface 3.Example Packages 1.Define 2.Why package 3.Example

3 3 Interface An Interface is a collection of operations that are used to specify a service of a class or a component.

4 4 Why Interface To build systems with a clear separation of concerns so that,as the system evolves,changes in one part of the system don ’ t ripple through,rending other parts of the system.

5 5 If it ’ s important for your understanding of current model,you can render an interface as a stereotyped class. Another representation for Interface

6 6 Interface Specifier  As the figure shows,you can explicitly show the type of role using the syntax rolename:iname,where iname is some interface of the other classifier.

7 7 Package A package is general-purpose mechanism for organizing elements into groups.Graphically,a package is rendered as a tabbed folder. A package may own other elements,including classes,interface,components,nodes,collaborations,u se cases,diagrams,and even other packages.

8 8 Why Packages Organize the elements. Control the seams in your system ’ Architecture.

9 9 Generalization Packages involved in generalization relationship follow the same principle of substitutability as do classes.

10 10 To model architectural views Identify the set of architectural views. Pace the elements. Group these elements into their own packages.


Download ppt "1 Introduction to UML Interface and packages 即時與嵌入式系統實驗試 李榮華."

Similar presentations


Ads by Google