Professional Documents
Culture Documents
UML ch2
UML ch2
Structural View
UML Diagrams
Behavioural View
Structural View - Sequence Diagram
- Class Diagram - Collaboration Diagram
- Object Diagram - State-chart Diagram
- Activity Diagram
User’s View
-Use Case
Diagram
Implementation View
- Component Diagram Environmental View
- Deployment Diagram
Person
(Person) (Person)
Name:string
Joe Smith Mary Sharp
Attributes
Simple data
E.g. name, dateOfBirth
Associations
Relationships to other important classes
E.g. supervisor, coursesTaken
Type of a variable
Determines what classes of objects it may contain
If one instance sets the value of a class variable, then all the other
instances see the same changed value.
Indicator Meaning
1 One only
Has Capital
Country City
________ ________
name name
Client Server
Element
Queue
Queue<Integer>
1 Corporate Personal
Customer Customer
{ if Order.customer.creditRating() = “poor” contactName
then Order.isPrepaid = true } creditCardNumber
creditRating
creditLimit
Ordered
Product 1..* remind()
billForMonth(Int) {creditRating()=“poor”}
Product Order
quantity: Int 1..* 1 1..* indicates that credit
Product Sales rating is always
price: Money
Rep 0..1 set to poor for a
isSatisfied: Bool
Employee Personal Customer
Stereotype
Stereotype
«button» in form of icon
CancelButton
state
CancelButton
name
address
Class Association
<<stereotype>
>
DialogBox
Questions?