Model-View-Controller Approach
P | N


How do you connect domain objects to interfaces in an object-oriented way?

Solution: Have a different kind of object for each role in the UI

Handling domain (model), handling display (view), handling user input (controller)

Very common even today.

A Model broadcasts any changes in its information.

(This is what most objects that you design are.)

A View gets user input via a Controller and displays information from the Model.

A Controller determines how information can be manipulated.

(relatively low-level -- we avoid it mostly)


Previous | Next


Last modified at 7/8/97; 10:04:01 AM
Other Links of Interest
College of Computing | EduTech Institute | GVU Center
Mark Guzdial | Papers | CS 2390 Spring '97 Home Page | STABLE | MMC-CaMILE