This document discusses several different systems that can be modeled:
1) A magazine subscription system that tracks subscriber payments and expiration dates.
2) An undirected graph consisting of vertices and edges connecting pairs of vertices.
3) A car ownership system where owners can have multiple cars and companies can hire multiple employees, with identifying information for each.
4) A graphical document editor that supports grouping drawing objects, such as text and shapes, into hierarchical groups.
This document discusses several different systems that can be modeled:
1) A magazine subscription system that tracks subscriber payments and expiration dates.
2) An undirected graph consisting of vertices and edges connecting pairs of vertices.
3) A car ownership system where owners can have multiple cars and companies can hire multiple employees, with identifying information for each.
4) A graphical document editor that supports grouping drawing objects, such as text and shapes, into hierarchical groups.
This document discusses several different systems that can be modeled:
1) A magazine subscription system that tracks subscriber payments and expiration dates.
2) An undirected graph consisting of vertices and edges connecting pairs of vertices.
3) A car ownership system where owners can have multiple cars and companies can hire multiple employees, with identifying information for each.
4) A graphical document editor that supports grouping drawing objects, such as text and shapes, into hierarchical groups.
1. A person may have multiple magazine subscriptions. A
magazine has multiple subscribers. For each subscription, it is important to track the date and amount of each payment as well as the current expiration date. [1] CS3004 FAST-NUCES Dr. Ali Afzal Malik
2. An undirected graph consists of a set of vertices and a set of
edges. Edges connect pairs of vertices. [1] CS3004 FAST-NUCES Dr. Ali Afzal Malik
3. Consider a car ownership system. Each car has an owner.
Every owner can own multiple cars. An owner could be a person or a company. A person can work for multiple companies and a company can hire multiple persons. Each owner has a name and each car has a chassis number, model, make, and license number. Every person has a CNIC number and birth date and every company has an NTN. CS3004 FAST-NUCES Dr. Ali Afzal Malik
4. Consider a graphical document editor that supports
grouping. A document consists of several sheets. Each sheet contains drawing objects including text, geometrical objects, and groups. A group is simply a set of drawing objects, possibly including other groups. A group must contain at least two drawing objects. A drawing object can be a direct member of at most one group. Geometrical objects include circles, ellipses, rectangles, lines, and squares. [1] CS3004 FAST-NUCES Dr. Ali Afzal Malik
Reference
1. Object-Oriented Modeling and Design with UML, Michael R.
Blaha and James R. Rumbaugh, 2nd Edition, Pearson, 2005.