Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 994867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:38:04+00:00 2026-05-16T06:38:04+00:00

Introduction to the problem I have been taught about OO Analysis and Design through

  • 0

Introduction to the problem

I have been taught about OO Analysis and Design through Craig Larman’s Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, that follows the UP(Unified Process).

When using it, we usually draw a Domain Model and from it, doing Interaction/Association Diagrams, we get to the Class Diagrams. We generally then make Controllers that will be the "gate" between our Model and the "outside World" (following the GRASP patterns). All the world accesses to do any kind of logic has to go through the Controllers. I’ll call those Controllers Model's Controllers, so later when we talk about MVC's Controllers we can differentiate them.
That can be depicted in the following most awesome diagram:

alt text http://dl.dropbox.com/u/6187267/pic1.jpg

In black we have our Model‘s objects and that classes’ associations. In red we have the Model Controllers, that use data from the Model.

Basically, following this kind of design, you can only work with the Model through the so called Model's Controllers (we usually had one Controller per Use Case!).

Now the question itself

When learning about the MVC, I always had the question of wherever the MVC's Controller was in fact Model's Controller or not? Are they the same concept or not? I think they are different concepts, as the Model Controllers we used to do didn’t ever know about anything other than the classes on our Model, which is not what seems to happen in MVC's Controllers.

If what I’m saying is true, the following diagram should make sense:

alt text http://dl.dropbox.com/u/6187267/mvc_.png

Am I right?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:38:05+00:00Added an answer on May 16, 2026 at 6:38 am

    I think I understand what you are talking about 🙂

    What you are calling Model Controllers are known as Repositories. This is an interface that defines your specific interactions with the underlying model. For example, if you had a class representing Employees, and you wanted to do three things:

    • List<Employee> List()
    • Add(int employeeID)
    • Delete(int employeeID)

    Then you would define an interface called something like:

    public interface IEmployeeRepository
    {
        List<Employee> List();
        void Add(int employeeID);
        void Delete(int employeeID);
    }
    

    You would make sure that all your code deals with the Interface, and not the object directly – the Repository Pattern. This is what you are calling a Model Controller. See http://www.dev102.com/2008/12/08/working-with-aspnet-mvc-part-2-the-model-and-the-repository-pattern/ for more details, or search on Repository Pattern.

    A contoller in the MVC world is actually something that dictates logic of program flow. For example, say you had a view of a list of employees. When the user hits “Delete” button on this view, the controller would load the appropriate repository and call the Delete method on it.

    tl;dr: MVC Controller = When user does this, do this in a program (program logic); Repository (Model Controllers) = Define what interactions are supported with objects in my model

    And yes, you’re right 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with a web page. The introduction of a simple <base
Introduction: I want to loop through XML files with flexible categories structure. Problem: I
I was going through the longest common sub sequence problem in the INTRODUCTION TO
Introduction I have been so annoyed by applications that have a startup dialog which
Introduction : Hello Everyone, I have been looking for days for a way to
Let's start from simple introduction. For better understanding my problem I have drastically simplifield
I have been reading parts of Introduction to Algorithms by Cormen et al, and
Introduction: I have a flat ArrayCollection of object's, which i group to create the
Introduction of problem: I have two forms Home.cs and Login.cs . I have ToolStripMenuItems
I have a design problem, my app has a grows up traffic and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.