Expert answer:Type: Individual ProjectUnit: State Transition Diagrams and Activity DiagramsKey Assignment DraftYou will continue development of the object-oriented design for the ordering system. The new content this week will be the Activity Diagram and State Transition Diagram for the system. Create an activity diagram and state transition diagram for each use case that was identified in Week 1.State transition diagram: Identify all of the states and correctly identify the order of changes in state.Activity diagram: Correctly identify all of the activities for each use case.Use correct notation for both diagrams.Project Deliverables:Update the Object-Oriented Design Document title page with the new date.Update the previously completed sections based on instructor feedback.Create the Activity and State Transition diagrams for each use case identified in Week 1.Identify all of the states, and correctly identify the order of changes in state.Identify all of the activities for each use case.There should be 1 activity diagram and 1 state transition diagram for each of the use cases identified. (4)This submission will be Section 4 of the Key Assignment.Update all of your diagrams as needed based on feedback from your instructor.This week’s project is the Key Assignment draft and should contain all the models updated with any feedback received from your instructor.Be sure to update your table of contents before submission.
phillip_houston_cs377_ip3_.docx
Unformatted Attachment Preview
1
Object Oriented Methods (CS377 – 1704B – 01)
Sequence and Collaboration Diagrams
Unit 3 Individual Project
Phillip Isiah Houston Sr.
Instructor Jeffrey Karlberg
Due Date 06 December 2017
2
Table of Contents
Introduction ……………………………………………………………………………………………………………………3
Use Case Diagram …………………………………………………………………………………………………………..4
Functional Decomposition Diagram …………………………………………………………………………………………… 5
UC-001 Retrieve Customer Information ………………………………………………………………………………….. 5
UC-002 Place Orders and Calculate Order Total ……………………………………………………………………….. 6
UC-003 Prepare Orders …………………………………………………………………………………………………………. 6
UC-004 Deliver Orders ………………………………………………………………………………………………………….. 7
Class diagrams ……………………………………………………………………………………………………………….9
Main classes ……………………………………………………………………………………………………………………………. 9
Class diagram ………………………………………………………………………………………………………………………… 10
Sequence Diagrams ……………………………………………………………………………………………………….11
Collaboration Diagrams ………………………………………………………………………………………………..12
References …………………………………………………………………………………………………………………….13
3
Introduction
A case diagram refers to the procedural steps employed in particular business
operations. It summarizes relevant use cases in systems and their subsystems for example the
ordering pizza system which involves consumers, cashiers and cooks as its stakeholders.
The system starts with patron favored which is an employee institution in corporate
campuses like Oregon and Clackamas. The patron orders the meals from the company dinning.
An estimation of 400 out of a total of 600 potential patrons uses the dinning ordering system
four times in one week. Sometimes they order multiple meals in case there are guests or for
group events. For purposes of efficiency and timeliness, the patrons orders from their offices by
using the intranet. Patrons who may want the same meals brought to them daily or have
special meals prepared and transferred to their offices make meal subscriptions.
Dinning staff. The system dinning staff gets orders from the dinning ordering system.
They make the ordered foods and pack them. The staff print distribution instructions and
request for the distribution. The dinning staff needs to be taught on how to use cyber and the
dinning ordering system.
The system continues with the menu manager. The manager is a dinning employee with
a duty to form, keep and retain menu of meals available from the dining. They track the time
when the meals are readily available. The manager has a responsibility to edit the menus
occasionally to match market price fluctuations and also detect the special orders that may not
be available.
4
Food distributor- food distributors receive the printed delivery request from the dinning
staff. They therefore take the food distribution instructions for the meals and take to the
patrons. They are attached to the system as they reprint the distribution instructions and
respond to the managers on whether the meals are distributed or not.
Use Case Diagram
Figure 1 use case diagram
5
Functional Decomposition Diagram
UC-001 Retrieve Customer Information
Use Case ID
Use Case
Actors
Description
Pre-conditions
Flow of Events
Post-conditions
Alternative
Flows
Priority
Non-Functional
Requirements
Assumptions
Source
UC-001
Retrieve Customer Information
Customer [P], Cashier [S]
Cashiers retrieve customer information from the database, which is
identified
by customer’s telephone number. After the customer information is being
retrieved, the Cashier can start taking orders from the customer.
The system screen shows “Ready”
1. The cashier logs in the pizza ordering using his own username and
password
2. The cashier swipes his staff card for authentication
3. The system logs the cashier into the ordering system successfully
4. A customer calls the cashier
5. The cashier asks for the customer’s telephone number
6. The customer provides telephone number
7. The cashier inputs the telephone number into the system and press ‘OK’
button to start retrieving customer information
8. The customer name, address and last order date are retrieved from the
system
9. The cashier confirms the name and the address with the customer
10. The customer acknowledges the customer name and address
The customer name, address and current order date are appeared as a new
blank transaction on screen for taking orders from the customer
1. The customer may be new and therefore the customer information is not
found
2. The customer may not acknowledge the information as the customer
information is wrong
3. Customer forget their telephone numbers
High
1. Customer information should be retrieved in 2 seconds
2. Cashier cannot retrieve customer information without knowing
customers’
phone number
Cashiers are able to communicate with Customers in Chinese and English
6
UC-002 Place Orders and Calculate Order Total
Use Case ID
Use Case
Actors
Description
Pre-conditions
Flow of Events
Post-conditions
Alternative
Flows
Priority
Non-Functional
Requirements
Assumptions
UC-002
Place Orders and Calculate Order Total
Customer [P], Cook [P], Cashier [S]
Cashier takes the order from the customer, and calculates order total. After
customer acknowledges the order, the cashier will further proceed with the
order. System automatically notifies the cook for new orders.
The customer name, address and current order date are appeared as a new
blank transaction on screen for taking orders from the customer.
1. The customer provides the detail of the order to the cashier
2. The cashier searches the corresponding item from the system and add
into the transaction screen
3. The cashier presses “Calculate” and the total including tax is calculated
4. The cashier repeats the detail of the order to the customer, with the total
price information
5. The customer acknowledges the order
6. The cashier confirms the order with the customer
7. The cashier presses “Finish” to complete the transaction
8. The system notifies the cook to retrieve the order for preparation
1. The system shows “Transaction Completed” and goes back to main
screen in 2 seconds
1. Some dishes may be out of stock
2. The customer may not acknowledge the order and would like to modify
the order
3. The customer may cancel the order before acknowledgement
High
1. The user interface for cashier should be friendly enough, preferably with
images, to facilitate fast order taking
2. The customer information, including the orders, should be highly
secured.
3. The receipts and order information should be ready immediately after
completing the order
The customer should have a menu on hand and places order according to
the
information in the menu
Source
UC-003 Prepare Orders
7
Use Case ID
Use Case
Actors
Description
Pre-conditions
Flow of Events
Post-conditions
Alternative
Flows
Priority
Non-Functional
Requirements
Assumptions
UC-003
Prepare Orders
Cook [P], Driver [P]
Cook will prepare the food according to the orders information. After the
orders are prepared, the cook will use the update the order status. The
system notifies the driver for delivery.
The system screen shows “Ready”
1. The cook logs in the pizza ordering using his own username and
password
2. The cook swipes his staff card for authentication
3. The system logs the cook into the ordering system successfully
4. The cook retrieves the unprepared orders and prints the detailed order
information using a thermal transfer printer
5. The cook prepares for the orders accordingly
6. The cook updates the order status in the system after preparing for the
food
7. The system notifies the driver for delivery
The system screen shows other unprepared orders if there is any
The order may not be prepared on time and hence delays are expected
The cook may not have sufficient ingredients for the order
High
A thermal transfer printer should be installed in the kitchen for printing
out
orders
The cook should be trained to operate the pizza ordering system in
retrieving
orders and completing orders
Source
UC-004 Deliver Orders
8
Use Case ID
Use Case
Actors
Description
Pre-conditions
Flow of Events
Post-conditions
Alternative
Flows
Priority
Non-Functional
Requirements
Assumptions
Source
UC-004
Deliver Orders
Driver [P], Customer[P]
Driver receives notifications from system, to retrieve order information
from
the system, in order to perform delivery of pizza.
A copy of receipt will be given to the customer when pizza is delivered.
The system screen shows “Ready”
1. System notifies the driver about the new delivery orders
2. The Driver logs in the pizza ordering using his own username and
password
3. The Driver swipes his staff card for authentication
4. The system logs the Driver into the ordering system successfully
5. The Driver retrieves the receipts and prints the receipts out using a
thermal
transfer printer
6. The Driver matches the receipts with the order information and prints
the
order information using a thermal transfer printer
7. The Driver obtains the order and performs delivery
8. The Driver passes the copy of receipt to the customer
9. The Driver updates the order status to “Delivered” in the system
The system is back in “Ready” state.
The customers may not be reached when delivering orders
High
A thermal transfer printer should be installed in the delivery department
for
printing out orders
The Driver should be trained to operate the pizza ordering system in
delivering orders
9
Class diagrams
Main classes
Name
Attributes
Patron
-userId: string
-password: string
-confirmPassword: string
-firstName: string
-lastName: string
-email: string
Payment
-patronId: string
-creditCardNumber: int
-paypalInformation: string
-totalCost: float
-paymentId: string
—
Order
item: string
-userId: string
-mealId: string
-timestamp: string
Meal
-order: string
-mealDetails
Methods
+checkUserIdDatabaseAbscence()
+displayBlankFieldError()
+checkCardTypeMatch()
+registrationStatus()
+passwordReset()
+paymentMethod()
-paymentInformation()
+makePayment()
+backToMainMenu()
+backToPreviousMenu()
+logout()
+noPaymentMethodError()
+noPaymentInformationError()
+selectMeal()
+customizeMeal()
+placeOrder()
+backToMainMenu()
+logout()
+placeOrder()
+placeRestaurantOrder()
+Notification()
+preventPatronSelections()
10
Class diagram
Figure 2 class diagram
11
Sequence Diagrams
Sequence diagram is an interface diagram in which objects move down the pages in links.
The links movement indicates a message drafted by arrow from the source link to the target link.
The diagram best explains how objects in the sequence communicate to the other and it shows
how the arrow links relate and communicate information’s. The arrows are supposed to
communicate simple step by step informed ideas.
The intention of a sequence diagrams is to describe sequential happenings with definitive
and predictable results. The diagram concentrates on the order in which the links convey and
transfer the information’s intended. Nevertheless, most sequence diagrams interconnects sent
messages and the directives they are expected to happen.
Figure 3 sequence diagram
12
Collaboration Diagrams
Collaboration Diagram describes the interconnection between the objects in form of well-
arranged and classified information’s. The collaboration diagram expounds on both the dynamic
and static structures of various systems. The collaboration diagram have the same information
just like the sequence diagram but it primarily builds on the object relationships.
There are associated connectors in collaboration diagrams that shows the objects and
their interrelationships. The uses of short arrows that points to the directions to which the
messages are transferred. In the arrows, information’s are added to the associate connectors to
enhance the functionality of the systems build and to ease the understanding of parties to the
systems. The short arrows are numbered to communicate the order of the information.
Figure 4 collaboration diagram
13
References
Lejk, M. and Deeks, D. (2002). An Introduction To System Analysis Techniques, 2nd Ed.
Auckland, New Zealand: Addison Wesley Longman.
Ashworth, C. and Goodland, M. (1990). SSADM: A Practical Approach. NewYork: McGrawHill.
Chester, M. and Arthwall, A. (2002). Basic Information Systems Analysis And Design. New
York: McGraw-Hill Higher Education.
http://en.wikipedia.org/wiki/Structured_systems_analysis_and_design_method
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more