ERD
Planning Use Cases. DFDs. Analysis ERDs. Working toward an actual information system.
Design
Implementation
Users
Use Cases
DFDs
ERDs
Information System
ERD
Planning Use Cases. DFDs. Analysis ERDs. Working toward an actual information system. Physical DFDs and ERDs go here.
Design
Implementation
Items in an ERD
Entity
* Attribute (identifier) Attribute
Relationship
Items in an ERD
Entity
* Attribute (identifier) Attribute
Relationship
Cardinality
Cardinality refers to the number of times instances in one entity can be related to instances in another entity
One instance in an entity refers to one and only one instance in the related entity (1:1)
Cardinality
I
1:1
Dept. Manager contains Dept.
Cardinality symbols
Cardinality
Cardinality refers to the number of times instances in one entity can be related to instances in another entity
One instance in an entity refers to one and only one instance in the related entity (1:1) One instance in an entity refers to one or more instances in the related entity (1:M)
1:M
Dept. Manager manages Dept. Employee
Cardinality
Cardinality refers to the number of times instances in one entity can be related to instances in another entity
One instance in an entity refers to one and only one instance in the related entity (1:1) One instance in an entity refers to one or more instances in the related entity (1:M) One or more instances in an entity refer to one or more instances in the related entity (M:M)
M:M
Dept. Projects works on Dept. Employee
Modality
Modality refers to the minimum number of times that an instance in one entity can be related to an instance in another entity
One means that an instance in the related entity must exist for an instance in another entity to be valid
Modality
I
1
Dept. Manager contains Dept.
Modality 1 symbols
Modality
Modality refers to the minimum number of times that an instance in one entity can be related to an instance in another entity
One means that an instance in the related entity must exist for an instance in another entity to be valid Zero means that no instance in the related entity is necessary for an instance in another entity to be valid
0
Dept. Manager manages Dept. Employee
Both
Dept. Projects works on Dept. Employee
Identify the entities Add appropriate attributes for each entity Draw the relationships that connect associated entities
Data stores of the DFD should correspond to entities Only include entities with more than one instance of information Dont include entities associated with implementation of the system, not the system itself
All analysis activities are interrelated Process models contain two data components Data flows and data stores The DFD data components need to balance the ERDs data stores (entities) and data elements (attributes) Many CASE tools provide features to check for imbalance Check that all data stores and elements correspond between models Do not follow thoughtlessly -- check that the models make sense!
Recall: on-line university registration (from Use Case & DFD examples)
The system should enable the staff of each academic department to examine the course offered by their department, add and remove course, and change the information about them (e.g., the maximum number of students). It should permit students to examine currently available courses, add and drop courses to and from their schedules, and examine the course for which they are enrolled. Department staff should be able to print a variety of reports about the courses and the students enrolled in them. They system should ensure that no student takes too many course and that students who have any unpaid fees are not permitted to register. (Assume that a fees data store is maintained by the university's financial office that the registration system accesses but does not change.)
Course Offerings
Course enrollment
Student schedule
Students
D2 Dept Staff
D3
3
Course Enrollment Reports Enrollment information D1 Fees
Registration ERD
Course Offering Dept. # * Course # Course name Hours Credit Max. size Number enrolled
includes
Enrollment
1 Sales Contract
House information
Sellers
House information
House information
House information
Buyers
House information
AREI ERD
Sales Contract offers * Seller name Address Phone Listing date Listing term * Seller name Address Style Size Price Offered House shown * Name Address Phone Preferred style Preferred size Price limit Buyer