Browsing the Enroll System Design Model

In this exercise, you'll use Visual Modeler to get acquainted with the design model of the course administration system.

Opening the Enroll System Design Model

To open the course administration system design model

  1. Start Visual Modeler. Click Start, then Programs, Microsoft Visual C++ 6.0, Microsoft Visual C++ 6.0 Tools, Microsoft Visual Modeler 6.0.

  2. Click Open on the File menu.

  3. In the Load Model from dialog box, open the folder where the ENROLLVM sample has been installed.

  4. Double-click the Enroll.mdl file. Visual Modeler opens the sample model and displays a diagram called the Three-Tiered Service Model.

When you open the model, you'll see the architecture of the course administration application; that is, you'll see the classes of the design model and the relations between them. Defining and maintaining the architecture and relationships within the system are among the most important aspects of large-scale iterative development.

The Three-Tiered Service Model diagram supports the three-tiered architectural approach used when building Microsoft Visual C++ applications. It separates the contents of the system into three conceptual tiers of services: user services (left pane), business services (middle pane), and data services (right pane). It is a special kind of class diagram, called a three-tiered diagram.

To the left in the application window, a browser window lists the contents of the course system design model in a hierarchical order. (If you cannot see the browser in your Visual Modeler application window, click Browser on the View menu.)

The diagram notation used in this tutorial is a subset of the Unified Modeling Language (UML). Please refer to the Visual Modeler online help for descriptions of the different modeling constructs. To open this help, click Help, then Visual Modeler Help Topics in the Visual Modeler.

Browsing the Class Diagrams

The User Services diagram, located on the left pane of the Three-Tiered Service Model, is the diagram of the MFC document/view structure for the course administration system's user interface. The Business Services pane in the middle separates out the Course and Section objects of the application.

In the visual representation that the User Services diagram provides, the general structure of the application can be understood without browsing the source code. As an example, examine the details of the ECourse class.

To look at the details of the ECourse class

  1. Double-click the ESection class in the Business Services pane. This displays the Class Specification for ESection (double-click below the title of the class if a drop-down list is displayed instead). This specification enumerates the methods, properties, and other aspects of the ESection class. Click the Properties tab to view the member variables of the class.

  2. Close the specification.