Logical Architecture Diagram and UML Package Diagram
Logical Architecture Diagram and UML Package Diagram
TOPICS COVERED
Logical Architecture
UML Package Diagram
SOFTWARE ARCHITECTURE
An architecture is the set of significant decisions
about the
organization of a software system,
the selection of the structural elements and their
interfaces by which the system is composed together
with their behavior as specified in the collaborations
among those elements.
The composition of these structural and behavioral
elements into progressively larger subsystems and the
architectural style that guides this organization –these
elements and their interfaces their collaborations and
their composition
LOGICAL ARCHITECTURE
Logical architecture:
the large-scale organization of software classes into
packages, subsystems, and layers.
“Logical” because no decisions about how these
elements are deployed across different operating
system processes or across physical computers in a
network
.
LAYERS
A layer is a very coarse-grained grouping of
classes, packages, or subsystems that has
cohesive responsibility for a major aspect of the
system.
Layers are organized such that "higher" layers
(such as the UI layer) call upon services of
"lower" layers, but not normally vice versa.
Typically layers in an OO system include:
CONTD..
User Interface.
Application Logic and Domain Objects software
objects representing domain concepts (for
example, a software class Sale) that fulfill
application requirements, such as calculating a
sale total.
Technical Services general purpose objects and
subsystems that provide supporting technical
services, such as interfacing with a database
or error logging. These services are usually
application-independent and reusable across
several systems.
CONTD..
Strict layered architecture
Relaxed layered architecture
CONTD..
The objects have to be assigned with its
responsibilities.
The responsibilities of objects in one particular
layer should not be mixed with other layer.
Package diagram will generate code
Authorization
Transactions
CORE/MISC PACKAGE
Core/Misc
Store
Houses
Register Manager
address 1 1..*
name
1..*
1
Employs
1 Authorizes-payments-of
1..*
Paid-by
Check
1
1
Check Credit
CashPayment Credit Check Authorized-by Authorization Authorization
Payment Payment 1
amountTendered
* Service Service
* * * * 1
Authorized-by
Logs
Establishes- Establishes-
credit-for identity-for
Authorization Transactions::
1 1 1
PaymentAuthorizationReply
Accounts CreditCard DriversLicense
Receivable
expiryDate number
number - CheckPayments have
1
Identifies CheckPaymentReplies
1 1
Abused-by - CreditPayments have
Sales::Customer
1 CreditPaymentReplies
PACKAGE DIAGRAM