Domain Modeling and Class Diagrams in Systems Analysis and Design
This chapter covers the essentials of domain modeling and class diagrams within the context of systems analysis and design. It discusses key components like domain classes, data entities, and their associations with attributes and values. The concepts of minimum and maximum multiplicity in relationships are explored, along with examples including customers, orders, and bank accounts. Additionally, the text delves into the importance of refinement in course enrollment models and how inheritance is utilized in subclassing for specialized accounts.
Domain Modeling and Class Diagrams in Systems Analysis and Design
E N D
Presentation Transcript
Chapter 4 Systems Analysis and Design in a Changing World, 6th Edition
Things in the System • Examples of “Things” (domain classes) • Products • Sales • Shippers • Customers • Invoices • Payments • Domain classes, data entities, same difference Systems Analysis and Design in a Changing World, 6th Edition
Brainstorming Technique Systems Analysis and Design in a Changing World, 6th Edition
Partial List of Nouns for RMOWith notes on whether to include as domain class Systems Analysis and Design in a Changing World, 6th Edition
Attributes and Values Systems Analysis and Design in a Changing World, 6th Edition
Associations Among Things Systems Analysis and Design in a Changing World, 6th Edition
Minimum and Maximum Multiplicity • Associations have minimum and maximum constraints • minimum is zero, the association is optional • If minimum is at least one, the association is mandatory Systems Analysis and Design in a Changing World, 6th Edition
A Simple Domain Model Class Diagram • A customer places zero or more orders • An order is placed by exactly one customer • An order consists of one or more order items • An order item is part of exactly one order Systems Analysis and Design in a Changing World, 6th Edition
Domain Model Class Diagramfor a bank with many branches Systems Analysis and Design in a Changing World, 6th Edition
Domain Model Class Diagramfor course enrollment at a university • Where is each student’s grade remembered in this model? Systems Analysis and Design in a Changing World, 6th Edition
Refined Course Enrollment Modelwith an Association Class CourseEnrollment • Association class— an association that is treated as a class in a many to many association because it has attributes that need to be remembered, such as grade Systems Analysis and Design in a Changing World, 6th Edition
Generalization/SpecializationSuper Class/Subclass, Inheritance Systems Analysis and Design in a Changing World, 6th Edition
Generalization/SpecializationInheritance for the Bank with Special Types of Accounts • A SavingsAccount has 4 attributes • A CheckingAccount Has 5 attributes • Note: the subclasses inherit the associations, too Systems Analysis and Design in a Changing World, 6th Edition
RMO CSMS ProjectSales Subsystem Domain Model Class Diagrams Systems Analysis and Design in a Changing World, 6th Edition