Danube Books

Create the following models. You may complete the StarUML model danube.uml.

Requirements Model

Draw a use case diagram for an online bookstore (like Amazon).

Domain Model

Draw a UML class diagram modeling the following bookstore concepts:

A book store has an inventory containing books. These books can be transferred to and from shopping carts. When the items in a cart are purchased, they are transferred to a customer.

Design Model

Create a design model (class diagram) for the bookstore. Consider using the following patterns:

Layers

Model-View-Controller

Publisher-Subscriber

Gateway

Facade

Command Processor

Your diagram should provide ways for users to view the inventory and their cart. There should be a way for users to transfer books between inventory and cart.

Show operations in your class.

Draw a sequence diagram showing how a user might transfer a book from inventory to a cart.

Database

Conceptual model of a database

Model of the Danube Database

Assume the following database has been created:

 

Utilities

The following utilities are available:

Event Notification

The package utils.events contains a Publisher class and a Subscriber interface.

GUI Components

The package utils.gui contains an abstract GUIComponent class. This will be useful for any visible component such as a view or a control (button, menu item, etc.)

Database Connectivity

An API for connecting to databases: