1 architectural modeling 主講人 : 李榮華. 2 outline deployment deployment diagrams...

22
1 ARCHITECTURAL MODELING 主主主 : 主主主

Upload: monica-matthews

Post on 12-Jan-2016

234 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

1

ARCHITECTURAL MODELING

主講人 :李榮華

Page 2: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

2

Outline

• Deployment

• Deployment Diagrams

• Collaborations

• Patterns and Frameworks

Page 3: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

3

Deployment-Node and connections

• Node:A node is a physical element that exists at run time and represents a computational resource,generally having at least some memory and,often,processing capability.

• Ref.P361,Fig. 26-2• Connections:An association represents a

physical connection among nodes.• Ref.P363,Fig 26-4

Page 4: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

4

Deployment Diagram

Page 5: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

5

Deployment Diagram-Common Modeling Techniques

• Modeling an Embedded System

Ref.p412.fig30-2

• Modeling a Client/Server System

Ref.p414.fig30-3

• Modeling a Fully Distributed System

Ref.p415.fig30-4

Page 6: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

6

Collaborations• A collaboration is a society of

classes,interfaces,and other elements that work together to provide some cooperative behavior that’s bigger than the sum of all its parts.

Page 7: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

7

Modeling the Realization of a Use case and an Operation

• Modeling the Realization of a Use Case

Ref.P376,fig 27-5

• Modeling the Realization of an operation

Ref.P377,fig27-6

Page 8: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

8

Patterns and frameworks• Patterns:A patterns provides a common

solution to a common problem in a given context.

• Framework:A framework is typically an architectural pattern that provides an extensible template for applications within a domain.

Page 9: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

9

Mechanisms

• A mechanism is just another name for a design pattern that applies to a society of classes.

• Mechanisms show up in two ways:Collaborations.(p382,fig28-1)Parameterized Collaborations.(p385,fig28-2)

Page 10: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

10

Modeling Design Patterns

• Identify the common solution to the common problem and reify it as a mechanism.

• Model the mechanism as a collaboration,providing its structural,as well as its behavioral,aspects.

• Identify the elements of the design pattern that must be bound to elements in a specific context and render them as parameters to the collaboration.

• Ref.p388,fig28-4

Page 11: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

11

Modeling Architectural Patterns• Harvest the framework from an existing,proven

architecture• Model the framework as a stereotyped

package,containing all the elements(and especially the design patterns)that are necessary and sufficient to describe the various views of that framework.

• Expose the slots,tabs,knobs,and dials necessary to adapt the framework in the form of design patterns and collaboration.For the most part,this means making it clear to the user of the pattern which classes must be extended,which operations must be implemented ,and which signals must be handled.(Ref.P386,fig28-3)

Page 12: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

12

Page 13: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

13

Page 14: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

14

Page 15: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

15

Page 16: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

16

Page 17: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

17

Page 18: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

18

Page 19: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

19

Page 20: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

20

Page 21: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

21

Page 22: 1 ARCHITECTURAL MODELING 主講人 : 李榮華. 2 Outline Deployment Deployment Diagrams Collaborations Patterns and Frameworks

22