Asdf

Submitted by: Submitted by

Views: 51

Words: 404

Pages: 2

Category: Science and Technology

Date Submitted: 10/19/2014 08:30 PM

Report This Essay

* Contracts TEMPLATE

Method Name: GetOrdersByCustID() | Class Name: Order | ID: 321 |

Clients (Consumers): Customer Order Line |

Associated Use Cases:Customer InformationProcess Customer Order |

Description of Responsibilities: To get and display orders based on customer identification numbers. |

Arguments Received: 1. getCustomerID 2. getOrderID 3. displayOrder |

Type of Value Returned: 1. An itemized list of the items ordered (including any recipe modification requests) a. The date in which the order was place and process(ed/ing) |

Pre-Conditions: a. The customer exists b. An order exists i. The order is within the one year record holding timeframe |

Post-Conditions: 1. The order is displayed |

For the most part, this assignment was pretty “straight-forward”. The actual responsibilities for GetOrdersByCustID() was never completely laid out, so it was assumed that it’s job was to retrieve and display customer orders based on the customer’s ID. Most of the information was transposed from CRC cards, the rest was created based on what is already known about the system, and the beliefs as to what GetOrdersbyCustID() is supposed to do. The Customer can view this information to verify accuracy. The order line can also view this information because they need to know what each customer orders.

* Method Specification TEMPLATE

Method Name:GetOrderByCustID | Class Name: Order | ID: ORDMETH321 |

Contract ID: ORDCONTR321 | Programmer: Your Name | Date Due:InsertDate |

Programming Language: X Visual Basic Smalltalk C++ Java |

Triggers/Events: Mouse event generates a request to view an order for a specific customer. |

Arguments Received: Data Type: | Notes: |

Int | Customer ID |

Int | Order date |

| |

| |

Messages Sent & Arguments Passed: ClassName.MethodName: | Data Type: | Notes: |

Customer | | |

Customer.getCustomerID | int |...