Anda di halaman 1dari 3

Problem Set 2

Assigned: 9/22/11 Due: 9/30/11 by 5:00PM, Midterm: Tuesday, 10/25/11, in class. Reading: Text: Ch 2, 5.1 Problems: Part A: Text problems: Page 55: 2.4.3 a, d, e, h; 2.3.4 a, d, e, h; 2.4.6, 2.4.7 c, 2.4.8, Page 212: 5.1.3 Think about1: all the unassigned subproblems. E.g. 2.4.3 b,c, f, g, i Part B: Objective:

CS347, 9/28/11 V1.0

Version: 1.0

We have been learning the vocabulary of data modeling, necessarily, bottom-up. But designing a good data model is done top-down, starting from requirements. This homework, first of two, will step you through increasingly sophisticated requirements for an EDI system. See Note, this is a problem set, not an implementation homework. The models will be examined an graded. Warning: As this is a modeling assignment there may be more than one correct answer, and style may play into a correct answer being a preferred answer. Miranker will only weigh in on an assignment of points to a homework if the T.A. asks for a second opinion. Problem: Below is a purchase order data model, largely from the purchase order homework discussion as presented in class. The model represents a data model where, customers and their associated addresses are maintained in the database. All goods are shipped the same way on the same day. Not addressed in class but presented here, shipping method is modeled as a controlled enumeration (same as the texts use of domain enumeration) i.e. the set of choices is represented in a column of the table. Ordered items are a many-many mapping between a purchase order and a product catalog, where the precise number of items and their sales price is loaded into an association class.

Think about problems, are just that, think about them, dont hand anything in.

0) Draw and compile the given model for yourself. (turn nothing in). (recall you must use the association class work around. Note: You may have to use assocation class(es) to complete the rest of this; if so, use the work around, but make it pretty, and obvious, when you do so. 1) Suppose one can specify in a single purchase order that different goods may be shipped to different locations, and possibly using different shipping methods. Assume, all goods are shipped immediately. If a number of identical items are ordered, the identical items are shipped to the same place. Notice: Per the solution used as a starting point, shipping cost is not being addressed in this homework. Update the given model to fulfill the new requirements. Transform the model and generate code. Turn in the logical and physical (Data) model diagrams. Think about: a) the code generated b) how would you handle shipping cost? Consider, i) what might the requirements be. Ii) how would [differently] requirements impact your model [differently].

Want a head start on the next problem set? This will be assigned next week. Requirement change (big step toward the real requirements of an EDI/Supply Chain model): The purchase order model must now enable the purchase of a large number of items that are the raw materials for a manufacturing process. The buyers manufacturing process is geographically distributed (i.e. more than one shipping address). The order is for materials for an entire quarter, but may be delivered, in shipments spread over time, (e.g. weekly). Update the given model to fulfill the new requirements. Transform the model and generate code. Turn in the logical and physical (Data) model diagrams. For example: Bevomatic Inc, purchases, 1200 disk drives, 600 USB connectors, 600 motherboards and 2400 fans. These are to be delivered, 100 disk drives and 50 USB connectors weekly, for 12 weeks, to the ACES building, coordinated with weekly shipments of 50 motherboards and 200 fans. You may have inferred that .Bevomatics goal is to make 50 computers a week for 12 weeks and the final assembly is taking place in the lobby in front of Os.