Read Dennis et al. Chapter 5: Complete Mini Case 2. See FIGURE 5-6 Sample CRC Card, FIGURE 5-7 Sample Class Diagram.
Work through Minicase 2 and answer the questions, using the appropriate diagrams and UML syntax
Note:
You can download and install Visio for free from Microsoft
Dreamspark: https://www.dreamspark.com/Student/
You can also use Argo: http://sourceforge.net/projects/argouml/
You can also use LibreOffice open source: http://www.libreoffice.org/discover/draw/
Download the UML shapes here: http://www.lautman.net/mark/coo/index.html
1. Identify the classes described in the preceding scenario (you should find six). Create CRC cards for each class.
Minicases 235
MINICASES
1. West Star Marinas is a chain of twelve marinas that offer lakeside service to boaters; service and repair of boats, motors, and marine equipment; and sales of boats, motors, and other marine accessories. The systems development project team at West Star Marinas has been hard at work on a project that eventually will link all the marina’s facilities into one unified, networked system.
The project team has developed a use-case dia- gram of the current system. This model has been care- fully checked. Last week, the team invited a number of system users to role-play the various use cases, and the use cases were refined to the users’ satisfaction. Right now, the project manager feels confident that the as-is system has been adequately represented in the use-case diagram.
The director of operations for West Star is the sponsor of this project. He sat in on the role-playing of the use cases and was very pleased by the thorough job the team had done in developing the model. He made it clear to you, the project manager, that he was anx- ious to see your team begin work on the use cases for the to-be system. He was a little skeptical that it was necessary for your team to spend any time modeling the current system in the first place but grudgingly admitted that the team really seemed to understand the business after going through that work.
The methodology you are following, however, specifies that the team should now turn its attention to developing the structural models for the as-is system. When you stated this to the project sponsor, he seemed confused and a little irritated. “You are going to spend even more time looking at the current sys- tem? I thought you were done with that! Why is this necessary? I want to see some progress on the way things will work in the future!”
What is your response to the director of opera- tions? Why do we perform structural modeling? Is there any benefit to developing a structural model of the current system at all? How do the use cases and use-case diagram help us develop the structural model?
2. Holiday Travel Vehicles sells new recreational vehicles and travel trailers. When new vehicles arrive at Holiday Travel Vehicles, a new vehicle record is created. Included in the new vehicle record are a vehicle serial number, name, model, year, manufacturer, and base cost.
When a customer arrives at Holiday Travel Vehi- cles, he or she works with a salesperson to negotiate a vehicle purchase. When a purchase has been agreed
upon, a sales invoice is completed by the salesperson. The invoice summarizes the purchase, including full customer information, information on the trade-in vehicle (if any), the trade-in allowance, and informa- tion on the purchased vehicle. If the customer requests dealer-installed options, they are listed on the invoice as well. The invoice also summarizes the final negoti- ated price, plus any applicable taxes and license fees. The transaction concludes with a customer signature on the sales invoice.
a. Identify the classes described in the preceding scenario (you should find six). Create CRC cards for each class.
Customers are assigned a customer ID when they make their first purchase from Holiday Travel Vehicles. Name, address, and phone number are recorded for the customer. The trade-in vehicle is described by a serial number, make, model, and year. Dealer-installed options are described by an option code, description, and price.
b. Develop a list of attributes for each class. Place the attributes onto the CRC cards.
Each invoice lists just one customer. A person does not become a customer until he or she purchases a vehicle. Over time, a customer may purchase a num- ber of vehicles from Holiday Travel Vehicles.
Every invoice must be filled out by only one sales- person. A new salesperson might not have sold any vehicles, but experienced salespeople have probably sold many vehicles.
Each invoice only lists one new vehicle. If a new vehicle in inventory has not been sold, there will be no invoice for it. Once the vehicle sells, there will be just one invoice for it.
A customer may decide to have no options added to the vehicle or may choose to add many options. An option may be listed on no invoices or it may be listed on many invoices. A customer may trade in no more than one vehicle on a purchase of a new vehicle. The trade-in vehicle may be sold to another customer who later trades it in on another Holiday Travel vehicle.
c. Based on the preceding business rules in force at Holiday Travel Vehicles and CRC cards, draw a class diagram and document the relationships with the appropriate multiplicities. Remember to update the CRC cards.
(Dennis 235)
Dennis, Alan. Systems Analysis and Design with UML Version 2.0, 4th Edition. Wiley, 01/2012. VitalBook file.
The citation provided is a guideline. Please check each citation for accuracy before use.
A customer may trade in no more than one vehicle
(Dennis 235)
Dennis, Alan. Systems Analysis and Design with UML Version 2.0, 4th Edition. Wiley, 01/2012. VitalBook file.
The citation provided is a guideline. Please check each citation for accuracy before use.