0% found this document useful (0 votes)
69 views7 pages

The Model View Controller Framework: Jogesh K. Muppala

The Model View Controller (MVC) framework is a software architectural pattern that separates an application into three main components: the model, the view, and the controller. The model manages application data and logic, the view renders the model for user interaction, and the controller handles input and calls on the model and view to perform actions. MVC promotes separation of concerns and allows for independent development and testing of each component.

Uploaded by

Ashihs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views7 pages

The Model View Controller Framework: Jogesh K. Muppala

The Model View Controller (MVC) framework is a software architectural pattern that separates an application into three main components: the model, the view, and the controller. The model manages application data and logic, the view renders the model for user interaction, and the controller handles input and calls on the model and view to perform actions. MVC promotes separation of concerns and allows for independent development and testing of each component.

Uploaded by

Ashihs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

The Model View Controller Framework

Jogesh K. Muppala
Design Patterns
• Well-documented solution to a recurring problem
– Also referred to as an architectural pattern
• Software design pattern
– Reusable solution to commonly occurring problems
– Gang of four: E. Gamma et al. Design Patterns:
Elements of Reusable Object-Oriented Software,
Addison-Wesley, 1994

https://en.wikipedia.org/wiki/Software_design_pattern

2
The Model-View-Controller (MVC)
Framework
• Software engineering
architecture pattern Controller
– Isolation of domain logic
from user interface
– Permits independent
development, testing and
maintenance (separation View Model

of concerns)

http://en.wikipedia.org/wiki/Model–View–Controller

3
MVC Framework
• Model Controller

– manages the behavior and data of the application


domain
– responds to requests for information about its state View Model

(usually from the view)


– responds to instructions to change state (usually
from the controller)
– In event-driven systems, the model notifies
observers (usually views) when the information
changes so that they can react

4
MVC Framework
• View Controller

– renders the model into a form suitable for


interaction, typically a user interface element
View Model
– Multiple views can exist for a single model for
different purposes
– A viewport typically has a one to one
correspondence with a display surface and
knows how to render to it

5
MVC Framework
• Controller Controller

– receives user input and initiates a


response by making calls on model View Model

objects
– A controller accepts input from the
user and instructs the model and
viewport to perform actions based on
that input

6
Model View View-Model (MVVM)
DataBinding
• Descendent of MVC View
View Model
• Sometimes called Model- Model
View-Binder Presentation and Business Logic
• View model Presentation Logic and Data

– Abstraction of the view


that exposes public
properties and commands
– Declarative data binding

You might also like