The MVC: Model View Controller

Technical Overview

Intent: To provide users control over data as seen from multiple perspectives (see Figure 10-4).

Image

Figure 10-4. Class Diagram

Parts
  • Model
  • View
  • Controller
  • Client
Benefits
  • Increases cohesion of each aspect.
  • Localizes a logic domain that can be easily maintained.
  • Enables the Model's independence from the UI.
Drawbacks
  • The MVC is complex.
  • Compounded drawbacks among the patterns that it contains.
  • Changes among the interface of one component may affect another.
A Comprehensive Look

The Model View Controller, or MVC, is made up of three aspects, as the name suggests: the Model, the View, and the ...

Get AdvancED ActionScript 3.0: Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.