UML Diagram
UML Diagram
1
Use case diagram
• Derived from use-case study scenarios. It is an overview of use cases,
actors, and their communication relationships to demonstrate how
the system reacts to requests from external users. It is used to
capture system requirements
2
Usecase Relationship
3
Cont..
Example optional use cases:
UC5: InspectAccessHistory
»
tend
«ex
ManageAccount
«ex
tend
»
UC6: SetDevicePrefs
[ Source: Robert Maksimchuk & Eric Naiburg: UML for Mere Mortals, Addison-Wesley, 2005. ] 4
Login Use Case?
BAD: GOOD:
Login
«inc
lude
AddUser »
AddUser
Login
Landlord
SetDevicePrefs Landlord SetDevicePrefs lu de»
«inc
5
Class Diagram
• Class diagrams can be derived from use-case diagrams or from
text analysis of the given problem domain.
• A class diagram is generated by system analysts and designers and
will be iteratively refined in the subsequent phases during the
software development life cycle.
6
Relationships between classes
interface implementation
aggregation
composition
7
Association: a usage relationship
• aggregation: “is part of”
– symbolized by a clear white diamond
8
Cont..
• dependency: “uses temporarily”
– symbolized by dotted line
– often is an implementation detail, not an
• intrinsic part of that object's state
9
Realization
• In a realization relationship, one entity (normally an interface) defines
a set of functionalities as a contract and the other entity (normally a
class) “realizes” the contract by implementing the functionality
defined in the contract.
10