Architecture and the UML

42 576 0
Architecture and the UML

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Architecture and the UML

1Architecture and the UML 2Models, Views, and DiagramsUse CaseDiagramsUse CaseDiagramsUse CaseDiagramsScenarioDiagramsScenarioDiagramsCollaborationDiagramsStateDiagramsStateDiagramsComponentDiagramsComponentDiagramsComponentDiagramsDeploymentDiagramsStateDiagramsStateDiagramsObjectDiagramsScenarioDiagramsScenarioDiagramsStatechartDiagramsUse CaseDiagramsUse CaseDiagramsSequenceDiagramsStateDiagramsStateDiagramsClassDiagramsActivityDiagramsA model is a completedescription of a systemfrom a particularperspectiveModels 3Use Case ModelUse CaseDiagramsCollaborationDiagramsComponentDiagramsDeploymentDiagramsObjectDiagramsStatechartDiagramsSequenceDiagramsClassDiagramsActivityDiagramsUse CaseViewsDesignViewsDepl.ViewsImpl.ViewsAnalysisViewsTestViewsUse CaseViewsDesignViewsDepl.ViewsImpl.ViewsAnalysisViewsTestViews 4Analysis & Design ModelUse CaseDiagramsCollaborationDiagramsComponentDiagramsDeploymentDiagramsObjectDiagramsStatechartDiagramsSequenceDiagramsClassDiagramsActivityDiagramsUse CaseModelDesignModelDepl.ModelImpl.ModelAnalysisModelTestModelIncl. subsystems and packagesUse CaseViewsDesignViewsDepl.ViewsImpl.ViewsAnalysisViewsTestViews 5Deployment and Implementation ModelUse CaseDiagramsCollaborationDiagramsComponentDiagramsDeploymentDiagramsObjectDiagramsStatechartDiagramsSequenceDiagramsClassDiagramsActivityDiagramsUse CaseModelDesignModelDepl.ModelImpl.ModelAnalysisModelTestModelIncl. active classes and componentsUse CaseViewsDesignViewsDepl.ViewsImpl.ViewsAnalysisViewsTestViews 6Test ModelUse CaseDiagramsCollaborationDiagramsComponentDiagramsDeploymentDiagramsObjectDiagramsStatechartDiagramsSequenceDiagramsClassDiagramsActivityDiagramsUse CaseModelDesignModelDepl.ModelImpl.ModelAnalysisModelTestModelTest model refers to all other models and uses corresponding diagrams Use CaseViewsDesignViewsDepl.ViewsImpl.ViewsAnalysisViewsTestViews 7Use case - functions of a system from the user's point of view Sequence diagrams -illustrates object interactions arranged in a time sequence.Class diagrams -static structure in terms of classes and relationshipsActivity diagrams -behavior of an operation as a set of actionsState chart diagrams -behavior of a class in terms of statesCollaboration diagrams -spatial representation of objects, links, and interactionsObject diagrams -objects and their relationships and correspond to (simplified collaboration diagrams that do not represent message broadcasts)Component diagrams -physical components of an applicationDeployment diagrams -deployment of components on particular pieces of hardware 8Actors An actor is someone or some thing that must interact with the system under developmentTranc coordBuyerrsellerSecurity system 9Use Cases A use case is a pattern of behavior the system exhibits- Each use case is a sequence of related transactions performed by an actor and the system in a dialogue  Actors are examined to determine their needs- Buyer – post an rfq- seller – respond to rfq- Data validator – validate - Dep manager -- deploydeploypost an rfqValidate Principal actorsSecondary actors External hardware Other systems 10Use Cases A flow of events document is created for each use cases- Written from an actor point of view Details what the system must provide to the actor when the use cases is executed Typical contents- How the use case starts and ends- Normal flow of events- Alternate flow of events- Exceptional flow of events [...]... class diagram shows the existence of classes and their relationships in the logical view of a system  UML modeling elements in class diagrams - Classes and their structure and behavior - Association, aggregation, dependency, and inheritance relationships - Multiplicity and navigation indicators - Role names 8 Actors  An actor is someone or some thing that must interact with the system under development Tranc... a superclass and its subclasses  There are two ways to find inheritance: - Generalization - Specialization  Common attributes, operations, and/ or relationships are shown at the highest applicable level in the hierarchy 15 Classes  A class is a collection of objects with common structure, common behavior, common relationships and common semantics  Classes are found by examining the objects in... examining the objects in sequence and collaboration diagram  A class is drawn as a rectangle with three compartments  Classes should be named using the vocabulary of the domain - Naming standards should be created - e.g., all classes are singular nouns starting with a capital letter 11 Uses and Extends Use Case Relationships  As the use cases are documented, other use case relationships may... manager Buyer Service Offering Tranc coord payment 24 Attributes  The structure of a class is represented by its attributes  Attributes may be found by examining class definitions, the problem requirements, and by applying domain knowledge Each User has a name , location, interests, and authentification user name location interests 2 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams Collaboration Diagrams State Diagrams State Diagrams Component Diagrams Component Diagrams Component Diagrams Deployment Diagrams State Diagrams State Diagrams Object Diagrams Scenario Diagrams Scenario Diagrams Statechart Diagrams Use... manager profile 1: fill in info 2: submit 3: add user 4: add interests 5: save information 6: add info 7: add section 1 35 The State of an class  A state chart diagram shows - The life history of a given class - The events that cause a transition from one state to another - The actions that result from a state change  State transition diagrams are created for objects with significant dynamic behavior ... static spatial structure that facilitates the illustration of the collaboration of a group of objects Extension of object diagrams. context of a group of objects interaction between these objects Collaboration Diagram 39 An activity diagram is a variant of statechart diagrams organized according to actions, and mainly targeted towards representing the internal behavior of a method Activity Diagram ... discovered by examining interaction diagrams - If two objects must “talk” there must be a pathway for communication 9 Use Cases  A use case is a pattern of behavior the system exhibits - Each use case is a sequence of related transactions performed by an actor and the system in a dialogue  Actors are examined to determine their needs - Buyer – post an rfq - seller – respond to rfq - Data validator... actors Secondary actors External hardware Other systems 6 Test Model Use Case Diagrams Collaboration Diagrams Component Diagrams Deployment Diagrams Object Diagrams Statechart Diagrams Sequence Diagrams Class Diagrams Activity Diagrams Use Case Model Design Model Depl. Model Impl. Model Analysis Model Test Model Test model refers to all other models and uses corresponding diagrams Use Case Views Design Views Depl. Views Impl. Views Analysis Views Test Views ... Case Views Design Views Depl. Views Impl. Views Analysis Views Test Views Use Case Views Design Views Depl. Views Impl. Views Analysis Views Test Views 41 Deployment diagrams show the physical layout of the various hardware components (nodes) that compose a system, as well as the distribution of executable programs on this hardware. Deployment Diagram 18 Common Elements 4 Analysis & Design Model Use Case Diagrams Collaboration Diagrams Component Diagrams Deployment Diagrams Object Diagrams Statechart Diagrams Sequence Diagrams Class Diagrams Activity Diagrams Use... Case Views Design Views Depl. Views Impl. Views Analysis Views Test Views 5 Deployment and Implementation Model Use Case Diagrams Collaboration Diagrams Component Diagrams Deployment Diagrams Object Diagrams Statechart Diagrams Sequence Diagrams Class Diagrams Activity Diagrams Use Case Model Design Model Depl. Model Impl. Model Analysis Model Test Model Incl. active classes and components Use Case Views Design Views Depl. Views Impl. Views Analysis Views Test Views . diagram shows the existence of classes and their relationships in the logical view of a system UML modeling elements in class diagrams- Classes and their structure. 1Architecture and the UML 2Models, Views, and DiagramsUse CaseDiagramsUse CaseDiagramsUse CaseDiagramsScenarioDiagramsScenarioDiagramsCollaborationDiagramsStateDiagramsStateDiagramsComponentDiagramsComponentDiagramsComponentDiagramsDeploymentDiagramsStateDiagramsStateDiagramsObjectDiagramsScenarioDiagramsScenarioDiagramsStatechartDiagramsUse

Ngày đăng: 22/08/2012, 10:37

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan