SlideShare a Scribd company logo
 Layered Architecture
 Virtual Machine
 Interaction Architecture
◦ Model View Controller
 In a layered architecture the
system is decomposed into a
number of higher and lower
layers in a hierarchy.
 Each layer consists of a group
of related classes that are
encapsulated in a package.
 Each layer has its own sole
responsibility in the system.
 Each layer has 2 interfaces:
◦ The up interface provides services to its upper
layer and the low interface requires services
from its lower layer.
 In a pure layered hierarchy, each layer
only provides services to the adjacent
upper layer and only requests services
from the adjacent layer directly below.
 A simple software system may consist of two layers:
◦ An interaction layer and a processing layer
 The interaction layer provides user interfaces to
clients, takes requests, validates and forwards
requests to the processing and responds to clients.
 The processing layer receives the forwarded requests
and performs the business logic process, access the
database, return the results to its upper layer and let
the upper layer respond to clients since the upper
layer has the GUI interface responsibility.
 Abstraction
 Encapsulation
 Clearly defined functional layers
 Reusable
 High cohesion
 Loose coupling
 Abstraction. Layered architecture abstracts the
view of the system as whole while providing
enough detail to understand the roles and
responsibilities of individual layers and the
relationship between them.
 Encapsulation. No assumptions need to be made
about data types, methods and properties, or
implementation during design, as these features
are not exposed at layer boundaries.
 Clearly defined functional layers. The
separation between functionality in each layer is
clear. Upper layers such as the presentation layer
send commands to lower layers, such as the
business and data layers, and may react to events
in these layers, allowing data to flow both up and
down between the layers.
 High cohesion. Well-defined responsibility
boundaries for each layer, and ensuring that each
layer contains functionality directly related to the
tasks of that layer, will help to maximize cohesion
within the layer.
 Reusable. Lower layers have no dependencies on
higher layers, potentially allowing them to be
reusable in other scenarios.
 Loose coupling. Communication between layers
is based on abstraction and events to provide
loose coupling between layers.
 Incremental Software development based on
increasing levels of development
 Enhanced independence of upper layer to lower
layer since there is no impact from the changes of
lower level services as long as their interfaces
remain unchanged.
 Component based technology is suitable to
implement Layered architecture.
 Interchangeability and reusability are enhanced
due to separation of standard interface and its
implementation.
 Lower runtime performance.
 Errors and exception handling are issues
 Breach of interlayer communication may cause
deadlocks, and bridging may cause tight coupling.
 A virtual machine separates a
programming language from an
executable platform.
 This chapter focuses on software
architecture that best supports user
interaction.
 The interaction oriented software
architecture decomposes the system into
three major partitions:
◦ data module, control module and view
presentation module
 Each module has its own sole responsibility.
 The data module provides the data abstraction
and all core business logic on data processing.
 The view presentation module is responsible for
◦ Visual or audio data output and
◦ May also provide user input interface
 The control module determines the flow of control
involving
◦ View selection, communication between modules, data
initialization etc etc
 Two major style categories are
◦ Model-View-Controller
◦ Presentation-Abstraction-Control
 The two models are similar in sense that they
propose three component decomposition:
◦ Presentation module of PAC is like View module of MVC
◦ Abstraction module of PAC is like Model module of MVC
◦ Control module of PAC is like Controller module of MVC
 Both PAC and MVC are used for interactive
applications such as web online application etc.
 They differ in their flow of control and organization.
 MVC architecture is used in applications where
user interfaces are prone to data changes.
 Example:
◦ Java swing component and Java swing layout managers
are designed using MVC architecture
 The domain-specific representation of the
information on which the application operates.
 The model is another name for the application
logic layer (sometimes also called the domain
layer). Application (or domain) logic adds meaning
to raw data (e.g., calculating if today is the user’s
birthday, or the totals, taxes and shipping charges
for shopping cart items).
 Many applications use a persistent (permanent)
storage mechanism (such as a database) to store
data.
 Renders the model into a form suitable for
interaction, typically a user interface element.
 MVC is often seen in web applications, where the
view is the HTML page and the code which
gathers dynamic data for the page.
 Processes and responds to events, typically user
actions, and may invoke changes on the model
and view.
 System is decomposed into two subsystems:
◦ The Controller-View and the Model
 The Controller-View takes care of input and output
processing and their interfaces.
 The model module copes with all core functionality
and the data.
 The controller-view module register with the data
module.
 The model module notifies the Controller-View
module of any changes so that graphics data
display will be changed.
Controller/
View
Model Database
 The model module provides all the core
functionality and data supported by database.
 The view module displays the data.
 The controller module takes input requests,
validates input data, initiates the Model and View
and their connection etc.
 The controller and the view register with the Model
module.
 Whenever the data in the model module is
changed, the view module and the controller
module are notified of changes.
 The Model module plays an active role in MVC-II
as in MVC-I
 In MVC-II the view and Controller module are
separate.
 This allows for the division of labor.
 For Example
◦ The programming expert can work on the development of
Controller while the graphics interface design expert can
work on the development of view.
Questions???

More Related Content

Similar to Lec 4.ppt

IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and WorkingIRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET Journal
 
Layered architecture style
Layered architecture styleLayered architecture style
Layered architecture style
Begench Suhanov
 
Unit-3.doc
Unit-3.docUnit-3.doc
Unit-3.doc
chitranshidheeraj6
 
MVC
MVCMVC
Design pattern
Design patternDesign pattern
Design pattern
Pawan Kumar Tiwari
 
Software Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdfSoftware Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdf
jordantsagmo
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systemssanjoysanyal
 
The Clean Architecture
The Clean ArchitectureThe Clean Architecture
The Clean Architecture
Dmytro Turskyi
 
Model View Controller
Model View ControllerModel View Controller
Model View Controller
Madhukar Kumar
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC Structure
Dipika Wadhvani
 

Similar to Lec 4.ppt (20)

IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and WorkingIRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
 
Layered architecture style
Layered architecture styleLayered architecture style
Layered architecture style
 
Unit-3.doc
Unit-3.docUnit-3.doc
Unit-3.doc
 
MVC
MVCMVC
MVC
 
Design Pattern
Design PatternDesign Pattern
Design Pattern
 
Design pattern
Design patternDesign pattern
Design pattern
 
Software Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdfSoftware Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdf
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systems
 
The Clean Architecture
The Clean ArchitectureThe Clean Architecture
The Clean Architecture
 
Model View Controller
Model View ControllerModel View Controller
Model View Controller
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC Structure
 

More from Sami Mughal

lec 6 neurons.ppt
lec 6 neurons.pptlec 6 neurons.ppt
lec 6 neurons.ppt
Sami Mughal
 
ch15.pdf
ch15.pdfch15.pdf
ch15.pdf
Sami Mughal
 
ch7.ppt
ch7.pptch7.ppt
ch7.ppt
Sami Mughal
 
ch6.ppt
ch6.pptch6.ppt
ch6.ppt
Sami Mughal
 
ch5.ppt operating system
ch5.ppt operating systemch5.ppt operating system
ch5.ppt operating system
Sami Mughal
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
Sami Mughal
 
ch2.ppt
ch2.pptch2.ppt
ch2.ppt
Sami Mughal
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
Sami Mughal
 

More from Sami Mughal (8)

lec 6 neurons.ppt
lec 6 neurons.pptlec 6 neurons.ppt
lec 6 neurons.ppt
 
ch15.pdf
ch15.pdfch15.pdf
ch15.pdf
 
ch7.ppt
ch7.pptch7.ppt
ch7.ppt
 
ch6.ppt
ch6.pptch6.ppt
ch6.ppt
 
ch5.ppt operating system
ch5.ppt operating systemch5.ppt operating system
ch5.ppt operating system
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
ch2.ppt
ch2.pptch2.ppt
ch2.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 

Recently uploaded

Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
TeeFusion
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
M. A. Architect
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
aaryangarg12
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
ameli25062005
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
Mansi Shah
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
Alan Dix
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
h7j5io0
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
ameli25062005
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
taqyed
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
7 Alternatives to Bullet Points in PowerPoint
7 Alternatives to Bullet Points in PowerPoint7 Alternatives to Bullet Points in PowerPoint
7 Alternatives to Bullet Points in PowerPoint
Alvis Oh
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
madhavlakhanpal29
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 

Recently uploaded (20)

Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
7 Alternatives to Bullet Points in PowerPoint
7 Alternatives to Bullet Points in PowerPoint7 Alternatives to Bullet Points in PowerPoint
7 Alternatives to Bullet Points in PowerPoint
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 

Lec 4.ppt

  • 1.
  • 2.  Layered Architecture  Virtual Machine  Interaction Architecture ◦ Model View Controller
  • 3.  In a layered architecture the system is decomposed into a number of higher and lower layers in a hierarchy.  Each layer consists of a group of related classes that are encapsulated in a package.  Each layer has its own sole responsibility in the system.
  • 4.  Each layer has 2 interfaces: ◦ The up interface provides services to its upper layer and the low interface requires services from its lower layer.  In a pure layered hierarchy, each layer only provides services to the adjacent upper layer and only requests services from the adjacent layer directly below.
  • 5.  A simple software system may consist of two layers: ◦ An interaction layer and a processing layer  The interaction layer provides user interfaces to clients, takes requests, validates and forwards requests to the processing and responds to clients.  The processing layer receives the forwarded requests and performs the business logic process, access the database, return the results to its upper layer and let the upper layer respond to clients since the upper layer has the GUI interface responsibility.
  • 6.  Abstraction  Encapsulation  Clearly defined functional layers  Reusable  High cohesion  Loose coupling
  • 7.  Abstraction. Layered architecture abstracts the view of the system as whole while providing enough detail to understand the roles and responsibilities of individual layers and the relationship between them.  Encapsulation. No assumptions need to be made about data types, methods and properties, or implementation during design, as these features are not exposed at layer boundaries.
  • 8.  Clearly defined functional layers. The separation between functionality in each layer is clear. Upper layers such as the presentation layer send commands to lower layers, such as the business and data layers, and may react to events in these layers, allowing data to flow both up and down between the layers.
  • 9.  High cohesion. Well-defined responsibility boundaries for each layer, and ensuring that each layer contains functionality directly related to the tasks of that layer, will help to maximize cohesion within the layer.  Reusable. Lower layers have no dependencies on higher layers, potentially allowing them to be reusable in other scenarios.  Loose coupling. Communication between layers is based on abstraction and events to provide loose coupling between layers.
  • 10.  Incremental Software development based on increasing levels of development  Enhanced independence of upper layer to lower layer since there is no impact from the changes of lower level services as long as their interfaces remain unchanged.  Component based technology is suitable to implement Layered architecture.  Interchangeability and reusability are enhanced due to separation of standard interface and its implementation.
  • 11.  Lower runtime performance.  Errors and exception handling are issues  Breach of interlayer communication may cause deadlocks, and bridging may cause tight coupling.
  • 12.  A virtual machine separates a programming language from an executable platform.
  • 13.
  • 14.
  • 15.  This chapter focuses on software architecture that best supports user interaction.  The interaction oriented software architecture decomposes the system into three major partitions: ◦ data module, control module and view presentation module  Each module has its own sole responsibility.
  • 16.  The data module provides the data abstraction and all core business logic on data processing.  The view presentation module is responsible for ◦ Visual or audio data output and ◦ May also provide user input interface  The control module determines the flow of control involving ◦ View selection, communication between modules, data initialization etc etc
  • 17.  Two major style categories are ◦ Model-View-Controller ◦ Presentation-Abstraction-Control
  • 18.  The two models are similar in sense that they propose three component decomposition: ◦ Presentation module of PAC is like View module of MVC ◦ Abstraction module of PAC is like Model module of MVC ◦ Control module of PAC is like Controller module of MVC  Both PAC and MVC are used for interactive applications such as web online application etc.  They differ in their flow of control and organization.
  • 19.  MVC architecture is used in applications where user interfaces are prone to data changes.  Example: ◦ Java swing component and Java swing layout managers are designed using MVC architecture
  • 20.  The domain-specific representation of the information on which the application operates.  The model is another name for the application logic layer (sometimes also called the domain layer). Application (or domain) logic adds meaning to raw data (e.g., calculating if today is the user’s birthday, or the totals, taxes and shipping charges for shopping cart items).  Many applications use a persistent (permanent) storage mechanism (such as a database) to store data.
  • 21.  Renders the model into a form suitable for interaction, typically a user interface element.  MVC is often seen in web applications, where the view is the HTML page and the code which gathers dynamic data for the page.
  • 22.  Processes and responds to events, typically user actions, and may invoke changes on the model and view.
  • 23.
  • 24.  System is decomposed into two subsystems: ◦ The Controller-View and the Model  The Controller-View takes care of input and output processing and their interfaces.  The model module copes with all core functionality and the data.  The controller-view module register with the data module.  The model module notifies the Controller-View module of any changes so that graphics data display will be changed.
  • 26.  The model module provides all the core functionality and data supported by database.  The view module displays the data.  The controller module takes input requests, validates input data, initiates the Model and View and their connection etc.  The controller and the view register with the Model module.  Whenever the data in the model module is changed, the view module and the controller module are notified of changes.
  • 27.  The Model module plays an active role in MVC-II as in MVC-I  In MVC-II the view and Controller module are separate.  This allows for the division of labor.  For Example ◦ The programming expert can work on the development of Controller while the graphics interface design expert can work on the development of view.

Editor's Notes

  1. Abstract window toolkit
  2. Abstraction example you are going to meet a person. Dress color ,bag color This concept is also often used to hide the internal representation, or state, of an object from the outside. This is called information hiding.
  3. High cohesion means a class done a specific job. Same class perform Sum and displaying result Loose coupling means change in one class affects others.
  4. Breach means khilaf warzi