Documente Academic
Documente Profesional
Documente Cultură
Introduction UML
Agenda
Architectural views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
Agenda
Architectural views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
customer
project manager system analyst system engineer
developer
architect maintainer other developers
Logical View
Developers Functionality
Implementation View
Programmers Configuration management
Process View
System integrators Performance Scalability Throughput
Deployment View
System engineering System topology Communication Provisioning
Conceptual
Physical
Agenda
Architectural Views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
What is UML?
Unified : Unification of OOAD Methods Modeling: Analyzing Requirements and Designing Objects Prior to Coding
uc Manage...
UML Elements
obj ect Class Model
cmp Serv er Components
Structural elements
actors, class, component, node
Client (from Act ors )
Account
Firew all
+ + + + + + + + + + +
billingAddress: String closed: Boolean deliveryAddress: String emailAddress: String name: String createNewAccount() : void loadAccountDetails() : void markAccountClosed() : void retrieveAccountDetails() : void submitNewAccountDetails() : void validateUser(String, String)
+ + +
Behavioral elements
use case, activity, state
uc Manage Users
Create Account
class Model Ov erv iew
Grouping elements
package
Other elements
note
Extensibility Mechanisms
obj ect Class Model
Stereotypes
Tagged values
Constraints
WebDataServer :Dell PowerEdge 6650 Disk Controller = RAID 5 Disks = 3 x 120 GB Processor = 3.0 GHz RAM = 1024 Mb
WebDataServer :Dell PowerEdge 6650 pc server RAM = 1024 Mb Processor = 3.0 GHz Disks = 3 x 120 GB Disk Controller = RAID 5
analysis Login
Orde r
uc Actors - I...
Account billing address: string closed: boolean delivery address: string e-mail address: string name: string
+ + + +
LoginAcount
Use r
UML Diagrams
Structural Diagrams:
Class Diagram: models classes and relationships
Component Diagram: displays the high level packaged structure of the code itself.
Deployment Diagram: displays the configuration of run-time processing elements and the software components, processes, and objects that live on them.
Behavioral Diagrams:
Use Case Diagram: displays the relationship among actors and use cases. Sequence Diagram: displays the time sequence of the objects participating in the interaction. State Diagram: displays the sequences of states that an object of an interaction goes through. Activity Diagram: displays a special state diagram where most of the states are action states and most of the transitions are triggered by completion of the actions in the source states.
UML Diagrams
Structural Diagrams
Class Diagrams
Component Diagrams
Deployment Diagrams
Behavioral Diagrams
Sequence Diagrams
State Diagrams
Activity Diagrams
Logical View
Classes, interfaces, collaborations
Implementation View
Components
Process View
Sequences, Activities, Tranzitions
Deployment View
Nodes
Conceptual
Physical
Agenda
Architectural Views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
Requirements
There are NO UML 2.0 notation for Requirements. You could use Enterprise Architect Extensions to formalize a requirement. You could uses Notes to specify Requirement Details Requirements can have relationships with other elements such as other Requirements, Use Cases etc.
REQ017 -Remove User REQ011 - Manage User Account s REQ018 - Report on User A ccount
Actors
Actor is someone or something that interacts with the system (exchanges information with the system) Use generalization to specify an instance of one actor can communicate with the same kinds of use-case instances as an instance of uc Actors other actors.
uc Actors
Administrator
Client
Use Cases
A use case is a sequence of actions a system performs that yields an observable result of value to a particular actor. A use case describes what a system does, but it does not specify how it does it.
List Current Orders
Process Order
uc Send Messages
Requirements implementation
Connect Functional Requirements to Use Cases using realization Use Relationship Matrix to check Requirements coverage
Agenda
SDM Overview Architectural Views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
It is a model which is used to define data model and class diagrams It is a model which is developed usually by System Analyst or
obj ect Domain Model actor Us er + + password user ID + 0..* + + + + entity Account billing address: string closed: boolean delivery address: string e-mail addre ss: string name: string
(from Actors)
(from Actors)
actor Administrator
(from Actors)
(from Actors)
Associations
Aggregation:
Is a special form of association that models a whole-part relationship between an aggregate (the whole) and its parts. When a class is formed as a collection of other classes, it is called an aggregation relationship between these classes.
Student 1 0..* Book
Composition:
If a class cannot exist by itself, and instead must be a member of another class, then that class has a Composition relationship with the containing class. Composition is a variation of the aggregation relationship. Composition connotes that a strong life cycle is associated between the classes.
Window 1 1 Frame
Associations
Association class
In an association between two classes, the association itself might have properties. Association class modeling element that has both association and class properties.
Reflexive association
Company * 1..* +children * Person +parents 2
Job
Agenda
SDM Overview Architectural Views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
Process View
Process View or Dynamic Model is defined by interaction diagrams Interaction diagrams describe how groups of objects collaborate in some behavior.
Are used to model the dynamic aspects of a system. Can be used to model one particular flow of control for a use case. Contain objects, links, and messages. Developed by Software Designer
Sequence diagram
Is an interaction diagram that emphasizes the time ordering of messages. Use to illustrate use-case realizations. Shows how objects interact to perform the behavior of all or part of a use case. One or more sequence diagrams may illustrate the object interactions that
uc Manage Users
Create Account
Logi n
analysis Login
Domain Model::Account name: string billing address: string e-mail address: string closed: boolean delivery address: string
LoginForm
LoginAcount
LoginData
State diagrams
A statechart diagram shows the behavior of classes in
system.
represents objects of a single class and track the different states of its objects through the system.
have one initial states, intermediate states and one or more final
states.
State diagrams
Send Compose Composed Save Send Sent Saved Transmit via Gateway [External Contact] The message is In Transit when it has left the Messenger . System for an external recipient
In Transit
Cancel
Discarded
This occurs when the message is removed from Deleted Items . Restore Delete Deleted Purge Purged Archived AccountLimitReached [HighPriority] /SendMessage
Activity Diagrams
An activity diagram illustrates the dynamic nature of a system
Activity diagram
Create Order
Check Stock
Validate
Cancel Order
Invalid
Valid
In Stock
Deliver Goods
Agenda
SDM Overview Architectural Views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
Component diagrams
Describes the organization of the physical components in a
system.
The different high-level reusable parts of a system are represented in a Component diagram. A component is one such constituent part of a system. To representing the high-level parts, the Component diagram also captures the inter-relationships between these parts.
Component diagrams
Agenda
SDM Overview Architectural Views UML Overview Requirements and Use Case Modeling Domain Model Interaction Modeling Implementation View Deployment View
Deployment diagrams
Show the hardware for your system, the software that is installed on that hardware, and the middleware used to connect the disparate machines to one another.
Deployment diagrams
216.239.46.96 : Ethernet Adaptor Web Server :Dell PowerEdge 2650 pc server RAM = 2 x 1024 MB Processor = 2 x 2.8 GHZ Disks = 4 x 80 GB Disk Controller = RAID 5
FRR01 :Intel 19510 Frame Relay Router HOES01 :Ethernet Switched Hub +Internet
216.239.46.95 : Ethernet Adaptor WebDataServer :Dell PowerEdge 6650 HOFW :WatchGuard III Firewall pc server RAM = 1024 Mb Processor = 3.0 GHz Disks = 3 x 120 GB Disk Controller = RAID 5