Docsity

Domain Models - Java and the Web - Lecture Slides, Slides of Java Programming

Partial preview of the text

Download Domain Models - Java and the Web - Lecture Slides and more Slides Java Programming in PDF only on Docsity!

Java and the Web

Domain Models

Introduction

  • There are two different kinds of class models used at different phases of object oriented design.
  • During the Inception Phase, Domain Modeling is used to discover real world objects that will become candidates for system objects.
  • During the Elaboration and Construction Phases, a Class Model is developed, usually being created automatically by a diagramming tool as part of creating Interaction Diagrams.

Software Development Domains

  • Most software development focuses on the

intersection between a horizontal and a

vertical domain, such as an Accounting

Application for the Insurance Industry.

  • Often corporate software developers develop

expertise in one or more horizontal domains

as well as their own industry.

Example

  • During my software development career as part of AT&T’s Bell Labs, I was part of the Marketing and Financial Analysis district of the Business Operations Analysis division.
  • I developed expertise in the Telecommunications vertical domain and the Marketing and Finance horizontal domains.
  • When I transferred to Billing, AT&T sent me to school to learn the Telecommunications Billing domain.

Rudimentary Class Diagrams

  • A Domain Model is a simpler form of Class Model.
  • Usually, a Class model includes three types of information

about a class; it’s Name, Attributes, and Methods.

  • Domain Models concentrate on object Names. A few

Attributes and Methods may be documented, but they are secondary considerations.

System Objects

• A major difference between Domain Models

and Class Models is that Domain Models

concentrate on real world objects, while Class

Models include system objects such as

controllers, views, facades and menus that

systems use to manage real world objects.

White Boarding

• Domain modeling is often a White Board activity,

where a small group of software analysts and

subject matter experts brainstorm in a

conference room, drawing the Domain Model on

a white board with colored markers.

• A copy is created and distributed to participants

and others who may be interested.

Prototyping

  • Sometimes the Domain Model is entered into a modeling tool and used as an evolutionary prototype, being expanded into the Class model. This is not recommended.
  • Best practices suggest a clear separation between thinking about the problem domain (analyzing the problem) and the solution domain (designing a solution). For this reason, it is better to think of the Domain Model as a throwaway prototype.