Documente Academic
Documente Profesional
Documente Cultură
Context models
Interaction models
Structural models
Behavioral models
Model-driven engineering
Quesion#1:
Establish <<Include>> and <<Extend>> Relationships
Delivery Agent:
Check online orders
Change the status of the order to delivered
Administrator:
Add DVD
Update inventory of DVDs
The objects are laid out near the top of the diagram from
left to right..
• Through the use of combined fragments the user will be able to describe
a number of traces in a compact and concise manner.
Sequence Fragments
Common Operators for
Interaction Frames
Alternatives
Contains a list of fragments that contain alternative sequences
of messages. Only one sequence occurs on any occasion.
Option
the fragment executes only if the supplied condition is true.
Equivalent to an alt only with one trace.
Loop
Composition
• Strong form of Aggregation.
• components have only one owner.
• Lifetime control; components cannot exist
without the aggregate i.e components cannot
exist independent of their owner.
• Indicated by a solid diamond on the side of
the collection.
UML Class Notation
Association: Multiplicity and Roles
student
1 *
University Person
0..1 *
employer teacher
Multiplicity
Symbol Meaning Role Role
1 One and only one “A given university groups many
people; some act as students, others
0..1 Zero or one as teachers. A given student
M..N From M to N (natural language) belongs to a single university; a
given teacher may or may not be
* From zero to any positive integer working for the university at a
0..* From zero to any positive integer particular time.”
Regular Loyalty
Customer Customer
Subtype1 Subtype2
or: Customer
Generalization expresses a
relationship among related
classes. It is a class that Regular Loyalty
includes its subclasses. Customer Customer
Notation of Class Diagram:
Generalization
Time Event
This refers to an event that stops the flow for a time; an hourglass
depicts it.