Vending Machines Final PDF
Vending Machines Final PDF
Version: 1.0
5/23/2018
Nicosia, 2018
i
Table of Contents
1. Introduction ..............................................................................................................................1
1.1. Purpose ..............................................................................................................................2
1.2. Scope..................................................................................................................................2
2. Work break down using Gantt chart .........................................................................................2
3. Business requirements of coin-operated Drinks Dispenser Machine ..........................................3
3.1. Context diagram ................................................................................................................3
3.2. Functional Requirements ...................................................................................................5
4. Use Case Diagram and Descriptions ........................................................................................ 11
4.1. Use Case Diagram ............................................................................................................ 11
4.2. Use Case Descriptions ...................................................................................................... 11
5. Conclusions ............................................................................................................................. 16
6. References ............................................................................................................................... 17
Table of Figures
Figure 1 Work break down using Gantt chart........................................................................................2
Figure 2 Context Diagram....................................................................................................................3
Figure 3 Flow chart.............................................................................................................................4
Figure 6 Use case diagram................................................................................................................. 11
List of tables
Table 1 Requirement priority level .......................................................................................................5
Table 2 Drinks dispenser machine requirements...................................................................................6
Table 3 restart transaction ................................................................................................................ 11
Table 4 Restart transaction................................................................................................................ 12
Table 5 Insert Coin............................................................................................................................ 12
Table 6 Cancel request...................................................................................................................... 13
Table 7 Change Selection .................................................................................................................. 14
Table 8 Request Refund .................................................................................................................... 14
Table 9 Continue Buying ................................................................................................................... 15
Table 10 Display Message ................................................................................................................. 15
ii
1. Introduction
Selling and buying goods, foods, drinks, and newspapers is common in supermarkets, hotels,
schools, hospitals, stadiums, airport stations and on the road. All these are done with the help of
vending machines meaning “a machine that dispenses small articles such as food, drinks, or
cigarettes when a coin or token is inserted”.
Vending Machines are used to dispense various products like Tea, Coffee, Snacks, and Cold
Drink etc. when money is inserted into it perhaps with no money like in offices and in a
restaurant which has manual billings. These machines are likely used in a various area like a
commercial, industrial, shops, organization etc. Vending Machines have been in existence since
the 1880s [1]. The first commercial coin-operated machine was introduced in London and
England used for selling postcards [1]. The vending machines are more accessible and practical
than the convention purchasing method.
Nowadays, these can be found everywhere like at railway stations selling train tickets, in
schools and offices vending drinks and snacks, in banks as ATM machine and provides even
diamonds and platinum jewelers to customers, in entertainment stations like pool tables, boxer,
and Table football.
All these and other similar machines operated using Finite State Machine principles whereby the
machine will be at one state in time. In this case, the circuit’s output is defined in a different set
of states (The number of states is finite) i.e. each output is a state. A State Register to hold the
state of the machine and a next state logic to decode the next state. An output register defines the
output of the machine. Dynamic elements: The subset of dynamic elements includes the input
provided to the FSMs and the output generated from the FSMs in dynamic executions of the
FSM.
In general, both the number of different input and the number of different output are also finite
[2]. In FSM based machines the hardware gets reduced as in this the whole algorithm can be
explained in one process.
1
1.1. Purpose
The purpose of this document is to give a detailed description of the requirements for the
“automatic coin-operated drinks dispenser machine” that provides Tea, Coffee, Coke, and
Orange Juice which can be implemented in the large library but not limited only it can also
use in all level of libraries.
1.2. Scope
This document describes the functional requirements (use cases) and design constraints (non-
functional requirements) of an automatic coin-operated drinks dispenser machine as viewed
from the perspective of the software developer, an automatic coin-operated drink dispenser
machine, and the system’s typical end user, the Coffee User. Its purpose is to formally
capture and present an operational view of an automatic coin-operated drink dispenser
machine and to enumerate the system requirements as understood by the developer.
Duratio Compl
ID Task Name Start Finish
n ete
1 Literature Review Mar.15,18 Mar.29,18 7.0 d. 0.0%
2
3. Business requirements of coin-operated Drinks Dispenser
Machine
3.1. Context diagram
This section provides a detailed description of inputs into and outputs from the system using
a diagram. It also gives the logical layout of the system how it works and how the operations
are handled. Block Diagram of the Vending Machine
Reset
Input (Coin)
3
Automatic coin operated drinks dispenser machine
Start/Reset
Select Product
Display Cost
Cancel
No
Coin==Cost
Yes
Dispense
Product
Yes Continue
No
Finished
4
3.2. Functional Requirements
Requirements are the reasons for a project to be developed and deploy on which what the coin-operated drinks dispenser machine can
do, what data it shall store and how quickly or how easily it shall perform. In doing so, a project must have SMART requireme nts.
This machine will programme to receive the currency and validate the same before disbursing coins in various denominations selected
by the user. More or less this system requirements are grouped into User Requirements, System requirements, data requirements as
stated below.
The requirements, both functional and non-functional, in this document are prioritized as follows:
1 Critical This requirement is critical to the success of the project. The project will not be possible without this requirement.
2 High This requirement is high priority, but the project can be implemented at a bare minimum without this requirement.
3 Medium This requirement is somewhat important, as it provides some value but the project can proceed without it.
4 Low This is a low priority requirement, or a “nice to have” feature, if time and cost allow it.
5 Future This requirement is out of scope for this project, and has been included here for a possible future release.
5
Table 2 Drinks dispenser machine requirements
Impacted
Req# Priority Description Rationale
Stakeholders
User requirements
FR-U-005 2 The transaction shall be canceled as required A user can press Cancel button. Users
The transaction shall be continued as A user can use Continue to Buy button Users
FR-U-006 3
required without restarting the whole steps
6
Impacted
Req# Priority Description Rationale
Stakeholders
System requirements
Only readily items must be displayed as item E.g. coffee is not ready for sale Users
FR-S-002 1 list otherwise appropriate information to the
user
7
Impacted
Req# Priority Description Rationale
Stakeholders
The system shall be developed either as touch The machine may be developed based on Users and
FR-S-006 3
screen or button command based. the customer’s choice Customers
The system must display waiting time as a E.g. during boiling, adding ingredients and Users
FR-S-007 3
message to the user in preparing the items the like.
The system shall display items’ name along E.g. for coffee the icon must indicate the Users
FR-S-008 2
with acceptable icons coffee
The system shall allow resetting operation for E.g. for first time installation Customers
FR-S-011 3
vending machine supplier.
8
Impacted
Req# Priority Description Rationale
Stakeholders
Data requirements
9
Impacted
Req# Priority Description Rationale
Stakeholders
Other requirements
10
Impacted
Req# Priority Description Rationale
Stakeholders
11
4. Use Case Diagram and Descriptions
4.1. Use Case Diagram
Power Off
Display Items
Insert Coin
Power
Source
Compare Price
Cancel Request
start brewing
User Change Selection
Check Coin
System
Request Refund
Dispense Selected
Product
Continue buying
Dispense Coin
12
Post 1. The system store the coin inside the case
condition(s) 2. The machine dispense the order
3. The user must pick the order
Alternative 1. If the entered coin is not equal to the price of the item, then the
flow system has to give alternatives
1.1.The system shall display a message to change the order and this
could be compared with the entered coin
1.2.If no items for the entered coin, the system shall display a
message to cancel the request and to take the coin
1.3.The machine shall refund the coin to the user
1.4.The user shall pick the coin
2. If the entered coin is not equal to the price of the item, then the
system has to give alternatives
2.1.The system shall display a message to change the order and this
could be compared with the entered coin
2.2.If no items for the entered coin, the system shall display a
message to cancel the request and to take the coin
2.3.The machine shall refund the coin to the user
2.4.The user shall pick the coin
Exception(s) If there are free packages, allow the user to take the free item
13
Post 1. The system has to be at welcome state
2. The system has to rollback all transaction(s) if nay
condition(s)
Alternative flow for this use case no alternative flow of action
Exception(s) No Exception for this use case
14
3. The system has to rollback all transaction(s) if nay
4. The user pick the coin
15
1.3.If the user tries to use the product with no coin
1.4.If the system is under maintenance
Post no post condition for this use case
condition(s)
Alternative flow The user has to take actions accordingly.
Exception(s) No Exception for this use case
5. Conclusions
The vending machine is the most popular technological service which is used especially in
developed countries in meeting rooms, offices, libraries, supermarkets, and the places on which
many people are there for different purposes like selling a newspaper, hot drinks, and soft drinks,
in-game stations and many, many more. This machine, Vending Machine, is implemented using
finite state machine (FSM) principle on which the machine must be at one state and automatic.
In this project, Drinks Dispenser Machine, the methodology (FSM), different requirements (user
requirements, system requirements and data requirements are clearly defined), the use case
diagram and users action are stated as use case diagram.
16
6. References
1. International Journal of VLSI design & Communication Systems (VLSICS) Vol.3, No.2,
April 2012
2. Tian J. - Software Quality Engineering. Testing, Quality Assurance, and Quantifiable
Improvement – 2005[page 178]
3. http://javarevisited.blogspot.com/2016/06/design-vending- machine- in-
java.html#ixzz59FlsXvWK accessed on 3/9/2018
17