Model View Controller (MVC)

50 %
50 %
Information about Model View Controller (MVC)

Published on November 4, 2013

Author: javierhumaran


• Software architecture pattern that separates the model, the user interface and control logic of an application in three distinct components.

• MVC proposes the construction of three distinct components. One side for the representation of information, and on the other hand for user interaction. One model Many Views Many Controllers

The Model Representation of domain data. Business logic Persistence mechanism The View User Interface Interaction elements The Controller Intermediary between Model and View It maps user actions – model actions Select the view and provide information to itself

It is the specific representation of the information with which the system operates. Logic ensures the integrity of data and allows to derive it.

Represents the model in a suitable format to interact and access the data, usually called "User Interface" (GUI Java, HTML, XML).

It is the link between the view and the model, is responsible for receiving and responding to events, typically user actions and invokes changes on the model and probably in the view.

• Organization • Rapid Application Development • Reusing Code • Parallel development • It presents the same information in different ways. • The views and application behavior should reflect the manipulations of the data immediately. • It allows different user interface standards or port it to other environments where the application code should not be affected.

• This model is not new, it was introduced in 1987 in the Smalltalk programming language. • With the boom of Web applications, it has proven to be a programming mode that fits quite well with the internet, being both the model and the controller executed server side, and the view on the client side executed.

Control Flow 1. 2. 3. 4. 5. The user performs an action on the interface. The controller takes the input event. The controller notifies the user action to the model, which may involve a change of state of the model. It generates a new view. The view takes the data model. The user interface waits for another user interaction, which starts a new cycle.

Controller updates the model View alerts controller of a particular event View grabs model data and updates itself User interacts with a view Model alerts view that it has changed

• It applies to all types of systems • And technologies (Java, Ruby, Python, Perl, Flex, SmallTalk,. Net, etc..)

• Model: The model is made by the developer. • View: Set of objects of classes that inherit from java.awt.Component. • Controller: The controller is the event processing thread, which captures and propagates the event to the view and the model. Treatment classes of events (sometimes as anonymous classes) that implement EventListener type interfaces (ActionListener, MouseListener, WindowListener, etc..).

Software Engineer Instituto Tecnológico de Sonora Sonora, México @javierhumaran

Add a comment

Related pages

Model View Controller – Wikipedia

Der englischsprachige Begriff model view controller (MVC, englisch für Modell-Präsentation-Steuerung) ist ein Muster zur Strukturierung von Software ...
Read more

Model–view–controller - Wikipedia, the free encyclopedia

Model–view–controller (MVC) is a software architectural pattern for implementing user interfaces. It divides a given software application into three ...
Read more


The Model-View-Controller (MVC) ... Unfortunately, there is no good way to demonstrate the separation of model and view in a Unified Modeling Language ...
Read more

MVC – Wikipedia

Die Abkürzung MVC steht für: Mercedes-Benz Veteranen Club von Deutschland, deutscher Oldtimer-Club; Model View Controller, strukturiertes Software ...
Read more

Understanding Model-View-Controller - Coding Horror

05 May 2008 Understanding Model-View-Controller. Like everything else in software engineering, it seems, the concept of Model-View-Controller was ...
Read more

What is model-view-controller (MVC)? - Definition from ...

In object-oriented programming development, model-view-controller (MVC) is the name of a methodology or design pattern for successfully and efficiently ...
Read more

Model View Controller - Cunningham & Cunningham, Inc.

Model-View-Controller is the concept introduced by Smalltalk's inventors (TrygveReenskaug and others) of encapsulating some data together with its ...
Read more

Model-View-Controller-Paradigma – GlossarWiki

2.1.1 VCM-Paradigma. Ein MVC-Paradigma wird VCM-Paradigma genannt, wenn die drei zugehörigen Module folgende Schichtenarchitektur bilden: View, Controller ...
Read more

Implementing Model-View-Controller in ASP.NET

Note: This content was developed in June 2003. It pre-dates ASP.NET MVC, and describes how to implement the Model-View-Controller pattern on top of ASP.NET ...
Read more

Grundlagen: Model-View-Controller (MVC) | The Definitive ...

Yii implementiert das Model-View-Controller-Architekturmuster (MVC), das im Bereich der Web-Programmierung breite Anwendung findet.
Read more