Upload
dotram
View
221
Download
0
Embed Size (px)
Citation preview
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
Vending Machine Simulator System (VMCS)
FORMAT
A4 Cover 04-01-022-A
SOFTWARE REQUIREMENT SPECIFICATIONS (SRS)
FOR THE
Vending Machine Control System
OF THE
Vending Machine System
Contract No: ….. CDRL Sequence No: …..
Prepared For:
Vimto Soft Drinks Company
Prepared By:
Centre For Advanced Software Engineering (CASE)
Authenticated by __________________ Approved by__________________
Vimto Soft Drinks Company CASE
Date ___________________ Date __________________
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 i 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
DOCUMENT APPROVAL
Name Date
Verified by:
________________________
Project Leader
Authenticated by:
________________________
Project Manager
Approved by:
________________________
Client
Software: Microsoft Word 2000
Archiving place: C:\ (Where you place an archive)
Copies available: .DOC, .PDF format and CD-ROM
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 ii 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
REVISION HISTORY
REVISION
DESCRIPTION
A
B
C
D
E
Ind.+ Date A B C D E
Written by
Verified by
Authenticated by
Approved by
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 iii 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
LIST OF EFFECTIVE PAGES
PAGES REVISION PAGES REVISION
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 iv 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
TABLE OF CONTENTS
DOCUMENT APPROVAL ............................................................................................. i
REVISION HISTORY ................................................................................................ ii
LIST OF EFFECTIVE PAGES ..................................................................................... iii
TABLE OF CONTENTS .............................................................................................. iv
1 SCOPE ............................................................................................................... 1
1.1 Identification ............................................................................................... 1
1.2 Overview Of The System ............................................................................... 1
1.3 Overview Of The Documents .......................................................................... 1
2 APPLICABLE DOCUMENTS ................................................................................. 2
2.1 Government Documents ................................................................................ 2
2.2 Non-Government Documents ......................................................................... 2
2.3 Contractual documents ................................................................................. 2
2.4 Non-contractual document ............................................................................ 2
3 ENGINEERING REQUIREMENTS ......................................................................... 3
3.1 CSCI External Interface Requirements ............................................................ 3
3.1.1 Interface Customer/ CSCI ATS .............................................................. 3
3.1.2 Interface ATM Operator/ CSCI ATS ........................................................ 4
3.1.3 Interface Banking System /CSCI ATS ..................................................... 4
3.2 CSCI Capability Requirements ........................................................................ 5
3.2.1 Use Case Cash Withdrawal (SRS_REQ_100) ............................................ 5
3.3 CSCI Internal Interfaces .............................................................................. 15
3.4 CSCI Data Element Requirements ................................................................ 16
3.4.1 Interface Classes ............................................................................... 16
3.5 Adaptation Requirements ............................................................................ 21
3.6 Sizing and Timing Requirements .................................................................. 21
3.7 Safety Requirements .................................................................................. 21
3.8 Security Requirements ................................................................................ 21
3.9 Design Constraints ..................................................................................... 21
3.10 Requirements Traceability ........................................................................ 22
4 QUALITY ASSURANCE ...................................................................................... 23
5 PREPARATION FOR DELIVERY ......................................................................... 24
6 NOTES ............................................................................................................. 25
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 v 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
LIST OF FIGURES
Figure 1: Use Case External Interface Diagram .................................................... 3
Figure 2 : Use Case Diagram of CSCI ATS ........................................................... 5
Figure 3: Cash Withdrawal Use Case ................................................................... 5
Figure 4 : Cash Withdrawal Class Diagram ........................................................ 15
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 vi 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
LIST OF TABLE
Table 1 : Traceability Requirements Matrix ........................................................ 22
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 1/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
1 SCOPE
1.1 Identification
System Number :
System Name : Vending Machine Control System CSCI Identification Number :
CSCI Title : Vending Machine Simulator CSCI Abbreviation : VMCS
1.2 Overview of the System
Purpose of the VMCS System:
Purpose of the VMCS CSCI:
1.3 Overview of the Documents
This document describes the interaction between the actors with the CSCI VMCS. Analysis of the requirements applying to VMCS relies on an OOAD UML notation using the Rational Rose 2000 tool. Certain elements resulting from
this analysis are presented in this document.
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 2/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
2 APPLICABLE DOCUMENTS
The following documents, for which the exact is indicated, form part of the specification as far as everything specified hereafter is concerned. In the event
of a discrepancy between the documents referred to here and the content of this
specification, it is the content of the specification, which should be considered to be the background reference.
Copies of specifications, standards, drawings and publications requested by
suppliers in contact with the specified supplying functions may be obtained by
contacting the contracting agency or directly through the contracting office.
2.1 Government Documents
[1] DoD-Std-2167A Defense System Software Development
[2] DoD-Std-2168 Defense System Software Quality Program
[3] MIL-Std-1521B Technical Reviews and Audits
2.2 Non-Government Documents
This section consists of the contractual documents and non-contractual documents.
2.3 Contractual documents
[4] VMCS requirement slides Lecture notes of OOA using UML class
2.4 Non-contractual document
Not applicable
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 3/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3 ENGINEERING REQUIREMENTS
3.1 CSCI External Interface Requirements
Customer
Maintainer
Controller
Figure 1: Use Case External Interface Diagram
3.1.1 Interface Customer/ CSCI VMCS
Interface Identification: Customer Interface Type: Person
Description The customer is an actor who uses the VM system to do transactions
Association This actor communicates with the Purchase Drinks use cases
CSCI VMCS
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 4/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.1.2 Interface Maintainer/ CSCI VMCS
Interface Identification: Maintainer Interface Type: Person
Description
The customer is an actor who uses the VM system to maintain and manage the machine
Association
This actor communicates with the Maintain VM and Manage VM’s Parameter use cases
3.1.3 Interface Controller/CSCI VMCS
Interface Identification: Controller
Interface Type: System
Description The customer is an actor who uses the VM system to control the machine
Association This actor communicates with the Start Simulation use cases
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 5/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2 CSCI Capability Requirements
Figure 2: Use Case Diagram of CSCI VMCS
3.2.1 Use Case Purchase Drinks (SRS_REQ_100)
Purchase DrinksCustomer
Figure 3: Purchase Drinks Use Case
Purchase Drinks Customer
Start SimulationController
Maintain VM
MaintainerLogin
<<uses>>
Manage VM's parameter
<<uses>>
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 6/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2.1.1 Brief Description
This use case is initiated by the customer. It provides the capability for the customer
to purchase drinks.
3.2.1.2 Characteristic of Activation
Event driven by the customer
3.2.1.3 Pre-Condition(s)
Existing customer
3.2.1.4 Description
3.2.1.4.1 Basic Flow
i. This use case begins when the customer wants to purchase drinks. The
customer selects the drink.
ii. The VM monitors the number of drink cans for the selected drink brand. If the
drink is not available [E1: Drink not in stock].
iii. The VM verifies that the customer selected drink brand is available by
displaying message “Brand Available”. The VM display the drinks brand and
price.
iv. The customer inserts the coins.
v. The VM validates the coins. If the coin is invalid [E2: Coin not valid].
vi. The VM accepts the coins.
vii. The VM displays the cumulated amount of coins each time coins are entered.
viii. The VM monitors the amount of the accepted coins inserted. If the coins are
not enough [A1: Coin not enough].
ix. The VM determines the total coins.
x. The VM dispense selected drink can to customer.
xi. The VM determine if any change should be sent back to customer.
xii. The VM monitor the total cash held. If total cash is not enough to give a
change [E3: Unavailable change].
xiii. The VM display the change at panel. Then, the VM dispenses change.
xiv. The use case ends.
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 7/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2.1.4.2 Alternative Flow
A1: Coin not enough
i. The VM waits for the further coins from customer. If the customer wants to
cancel the transaction [A2: Terminate transaction].
ii. The use case continues.
A2: Terminate transaction
i. The customer press the terminate button.
ii. The VM terminates the transaction.
iii. The VM will not update the records.
iv. The VM returns the customer’s money.
v. The use case ends.
3.2.1.4.3 Exception Flow
E1: Drinks not in stock
i. The customer selects the drinks brand.
ii. The VM monitors the number of drinks can for the selected drinks brand.
iii. The VM displays “Brand Unavailable”.
iv. The VM does not respond and wait for another selection.
E2: Coin not valid
i. The customer inserts coins.
ii. The VM validates coins inserted.
iii. The VM reject coins and displays “Coins Not Valid” at panel.
iv. The VM displays value/identity of the invalid coins at panel.
E3: Unavailable change
i. The VM dispense the selected drink can to customer.
ii. The VM determine if any change should be sent back to customer.
iii. The VM monitor the total cash held.
iv. The VM displays “No Change Available” at panel.
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 8/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2.1.5 Post Condition(s)
The drink and change are dispensing to the customer.
3.2.1.6 Rules(s)
Total cumulated coins = total cumulated coins + coins inserted
Total drink cans container = total drink cans container – drink can dispense
Change coins = total cumulated coins – drink can price
3.2.1.7 Constraint(s)
Not applicable
3.2.1.8 GUI
Not applicable
3.2.2 Use Case “login” (SRS_REQ_200)
Manage VM
MaintainerLogin
<<uses>>
Manage VM's parameter
<<uses>>
Figure 4: Login Use Case
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 9/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2.2.1 Brief Description
This use case is initiated by the maintainer. It provides the capability for the
Password Manager to check the authentication of the maintainer to allow access to
the drinks stock mechanism and the money storage.
3.2.2.2 Characteristic of Activation
Event driven by the maintainer
3.2.2.3 Pre-condition(s)
The password is fixed
3.2.2.4 Description
3.2.2.4.1 Basic Flow
i. The maintainer enters the authorization password.
ii. The Password Manager checks the password [E1: Invalid password].
iii. The VM Manager will unlock the vending machine’s [door].
iv. The use case ends.
3.2.2.4.2 Alternative Flow
Not applicable
3.2.2.4.3 Exception Flow
E1: Invalid password
i. The password is invalid.
ii. The VM Manager will not begin the transaction with maintainer.
iii. The VM Manager will not allow the maintenance activities.
3.2.2.5 Post-condition(s)
The VM Manager will allow the maintainer to access to the drinks stocking
mechanism and the money storage.
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 10/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2.2.6 Rule(s)
Not applicable
3.2.2.7 Constraint(s)
Not applicable
3.2.2.8 GUI
Not applicable
3.2.3 Use Case “Manage VM” (SRS_REQ_300)
MaintainerManage VM
Figure 5: Manage VM Use Case
3.2.3.1 Brief Description
This use case is initiated by maintainer. It provides the activity to request the
number of drink cans and coin denomination held in vending machine. The activity
also includes maintainer to check and remove cash from the machine.
3.2.3.2 Characteristic of Activation
Event driven by maintainer
3.2.3.3 Pre-condition(s)
The maintainer is a valid user
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 11/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2.3.4 Description
3.2.3.4.1 Basic Flow
i. The use case starts when the actor login to Maintainer Control Panel.
ii. The panel shall allow the actor to perform the following operations:
• A1: Determine number of coins in selected denomination
• A2: Determine number of drinks cans in selected denomination
• A3: Change drink price
• A4: Collect all cash
iii. The use case ends when the actor clicks “Press here when finish”.
3.2.3.4.2 Alternative Flow
A1: Determine number of coins in selected denomination
i. The use case starts when the actor clicks on a radio button corresponding to
the chosen denomination.
ii. There are four denominations:
• 10c
• 20c
• 50c
• $1
iii. The Maintainer Control Panel shall then display the total number of coins
corresponding to the chosen denomination.
iv. The use case continues.
A2: Determine number of drinks cans in selected denomination
i. The use case starts when the actor clicks on a radio button corresponding to
the chosen drink brand.
ii. The Maintainer Control Panel shall then display the total number of cans
corresponding to the chosen drink brand.
iii. The use case continues.
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 12/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
A3: Change drink price
i. The actor shall select the desired drink brand.
ii. The actor shall then type the new price in a “Type new drinks can price”
panel.
iii. The vending machine shall then be effectively empty of cash.
iv. The initial values of the drink brands are as follows:
• Drinks Brand 1: 70c
• Drinks Brand 2: 70c
• Drinks Brand 3: 70c
• Drinks Brand 4: 60c
• Drinks Brand 5: 60c
v. The use case continues.
A4: Collect all cash
i. The actor shall click “Press here to collect all cash” radio button to collect all
cash held within vending machine.
ii. The vending machine shall display the total cash in “Collect all cash here”
panel.
iii. The vending machine shall then be effectively empty of cash.
iv. The use case continues.
3.2.3.4.3 Exception Flow
Not applicable
3.2.3.5 Post-condition(s)
Actor gets information on the number of chosen drinks and total number for selected
coin denomination
3.2.3.6 Rule(s)
Not applicable
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 13/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.2.3.7 Constraint(s)
Not applicable
3.2.3.8 GUI
Not applicable
3.2.4 Use Case “Activate Interface” (SRS_REQ_400)
Start SimulationController
Figure 6: Activate Interface Use Case
3.2.4.1 Brief Description
This use case describes the simulation external interfaces process of the VMS. The
controller shall activate or deactivate simulation panel.
3.2.4.2 Characteristic of Activation
Event driven by controller
3.2.4.3 Pre-condition(s)
The control panel has started by a controller
3.2.4.4 Description
3.2.4.4.1 Basic Flow
i. The use case starts when the controller start simulator panel while click on
the radio button.
ii. The control panel start signal to activate customer control panel.
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 14/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
iii. The simulator controller will activate customer control panel.
iv. The simulator controller will activate maintainer panel [A1: Activate
Machinery Panel].
v. The controller will select end simulation button to end signal.
vi. The Simulator panel deactivates customer control panel, maintainer control
panel and machinery control panel.
3.2.4.4.2 Alternative Flow
A1: Activate Machinery Panel
The Simulator Controller Activate Machinery Panel.
3.2.4.4.3 Exception Flow
Not applicable
3.2.4.5 Post-condition(s)
The controller successfully guides customer and maintainer using the VMCS.
3.2.4.6 Rule(s)
Not applicable
3.2.4.7 Constraint(s)
Not applicable
3.2.4.8 GUI
Not applicable
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 15/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.3 CSCI Internal Interfaces
PasswordPanel
password : String
name
retriev ePassword()
display Message()
(from VM Interface)
<<boundary>>
CoinSlot
insertCoin()
v erif y Coin()
calculateMoney ()
reset()
(from VM Interface)
<<boundary>>
PasswordManager
f ixPwd : String
pwdStatus : Boolean
v erif y Passsword()
isValid()
(from VM Business Rules)
<<control>>
11 11
MachineryPanel
deactiv ateMachinery Panel()
display CoinDenom()
editCoinAmount()
Click "locked" radio button()
selectLock()
display DrinkDenom()
editDrinkAmount()
(f rom VM Interf ace)
<<boundary>>
CustomerPanel
deactiv ateCustomerPanel()
activ ateCustomerPanel()
selectDrink()
display Message()
display Price()
display TotalMoney ()
display DispensedCan()
display Change()
display NoChange()
Cancel transaction()
selectTerminate()
(f rom VM Interf ace)
<<boundary>>
1
1
1
1
SimulatorManager
startSimulator()
endSimulator()
(from VM Business Rules)
<<control>>
1
1
1
1
LockMechanism
lockStatus : Boolean
setLock()
(from VM Interface)
<<boundary>>
11 11
VMManager
setSelectedDrink()
isAv ailable()
isEnough()
calculateChange()
v erif y ExactChange()
terminateTransaction()
setNewPrice()
getTotalCash()
setCollectCash()
updateCoinAmount()
Door locked status()
lockDoor()
reset()
updateDrinkAmount()
calculateTotalCash()
setSelectedCoinDenom()
(from VM Business Rules)
<<control>>
11 11
1
1
1
1
SimulatorPanel
btnID : String
btnStatus : Boolean
activ atePanel()
(from VM Interface)
<<boundary>>
11 11
1
1
1
1
MaintainerPanel
activ ateMaintainerPanel()
deactiv ateMaintainerPanel()
selectDrink()
display Price()
getNewPrice()
insertNewPrice()
selectTerminate()
selectCollectCash()
display TotalCash()
selectCoinDenom()
display CoinAmount()
display CanAmount()
(f rom VM Interf ace)
<<boundary>>
11 11 11 11
1
1
1
1
1
1
1
1
Figure 7: VMS Class Diagram
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 16/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.4 CSCI Data Element Requirements
This paragraph identifies the interfaces between the capabilities identified above. In this case, this means that we give the main activity, the list of the classes, the received and sent messages of each class according to an object-oriented viewpoint.
3.4.1 Interface Classes
3.4.1.1 VMManager
Class Type : Controller Class
Responsibilities :
Received Event
: setSelectedDrink(String) : updateCoinAmount(Integer, Integer) : lockDoor(Boolean)
: updateDrinkAmount(String, Integer) : terminateTransaction(Boolean) : setNewPrice(String, Double)
: setCollectCash()
: setSelectedCoinDenom(Integer) Sent Event
: getTotalCan(String) : displayMessage(Boolean) : getPrice(String)
: totalMoney()
: deductCan(String) : getCoinDenom(Integer) : deductCoin(Double, Integer)
: updateCoinDenom(Integer, Integer) : setLock(Boolean) : activatePanel(String, Boolean)
: getDrinkDenom(String)
: updateDrinkDenom(String, Integer) : reset()
: saveNewPrice(String, Double)
: resetCoinDenom()
Attributes :???
: :
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 17/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.4.1.2 SimulatorManager
Class Type : Controller Class Responsibilities :
Received Event
: startSimulator() : endSimulator()
Sent Event
: activatePanel(String, Boolean) : activateCustomerPanel()
: activateMaintainerPanel(String)
: deactivateCustomerPanel() : deactivateMachineryPanel()
: deactivateMaintainerPanel()
Attributes :???
: :
3.4.1.3 PasswordManager
Class Type : Controller Class
Responsibilities :
Received Event : verifyPassword(String)
Sent Event
: activatePanel(String, Boolean)
: activateMaintainerPanel() : deactivateCustomerPanel()
: displayMessage(Boolean) : isValid()
: setLock(Boolean)
Attributes :???
: :
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 18/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.4.1.4 SimulatorPanel
Class Type : Boundary Class Responsibilities :
Received Event
: activatePanel(String, Boolean) Sent Event
: startSimulator() : endSimulator()
Attributes :???
:
:
3.4.1.5 MaintainerPanel
Class Type : Boundary Class Responsibilities :
Received Event : activateMaintainerPanel() : deactivateMaintainerPanel()
: displayPrice()
: displayCanAmount(Integer) : displayCoinAmount(Integer)
: displayTotalCash(Double) : insertNewPrice()
: selectCoinDenom() : selectDrink()
: selectCollectCash()
: selectTerminate()
Sent Event : setCollectCash()
: setNewPrice(String, Boolean)
: setSelectedCoinDenom(Integer) : setSelectedDrink(String)
: terminateTransaction(Boolean)
Attributes :??? :
:
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 19/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.4.1.6 MachineryPanel
Class Type : Boundary Class Responsibilities :
Received Event
: deactivateMachineryPanel() : displayCoinDenom(Integer, Integer)
: editCoinAmount() : editDrinkAmount()
: displayDrinkDenom(String, Integer) : selectLock()
Sent Event
: lockDoor(Boolean) : updateCoinAmount(Integer, Integer)
: updateDrinkAmount(String, Integer)
Attributes :???
: :
3.4.1.7 PasswordPanel
Class Type : Boundary Class
Responsibilities :
Received Event : displayMessage(Boolean)
: retrievedPassword(String)
Sent Event
: verifyPassword(String)
Attributes :??? :
:
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 20/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.4.1.8 LockMechanism
Class Type : Boundary Class Responsibilities :
Received Event
: setLock(Boolean)
Sent Event :
Attributes :???
:
:
3.4.1.9 CustomerPanel
Class Type : Boundary Class Responsibilities :
Received Event : activateCustomerPanel(String) : deactivateCustomerPanel()
: displayMessage(Boolean)
: displayPrice() : displayTotalMoney(Double)
: displayDispensedCan(String) : displayChange(Double)
: displayNoChange() : selectDrink()
: selectTerminate()
Sent Event
: setSelectedDrink(String) : terminateTransaction(Boolean)
Attributes :??? :
:
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 21/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.4.1.10 CoinSlot
Class Type : Boundary Class Responsibilities :
Received Event
: insertCoin() : reset()
Sent Event
: calculateMoney(Double) : addCoin(Double, Integer)
: verifyCoin(Integer)
Attributes :???
: :
3.5 Adaptation Requirements
Not applicable
3.6 Sizing and Timing Requirements
Not applicable
3.7 Safety Requirements
Not applicable
3.8 Security Requirements
Not applicable
3.9 Design Constraints
Not applicable
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 22/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
3.10 Requirements Traceability
REQUIREMENTS DESCRIPTIONS
Source
Allocated
Lecture notes of
OOA using UML
SRS_REQ_100
� SRS_REQ_101 � SRS_REQ_102
� SRS_REQ_103 � SRS_REQ_104
� SRS_REQ_105
� SRS_REQ_106
Cash Withdrawal Use Case
� Verifies card � Validate pin codes
� Dispense cash/receipt/card and update account
� Pin code is invalid
� Maximum attempts allowed is 3
Table 1: Traceability Requirements Matrix
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 23/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
4 QUALITY ASSURANCE
Not applicable
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 24/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
5 PREPARATION FOR DELIVERY
The delivery of documents will be delivered in the following formats:
File format : MS Word and Rational Models
Submission formats : Hardcopy and Softcopy Quantity : 1 each
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 25/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
6 NOTES
Abbreviation used:
- CASE Centre for Advanced Software Engineering - CDRL Context Data Requirement List
- CSCI Computer Software Configuration Item - DOD Department of Defense
- IRS Interface Requirement Specification
- MIL Military - OOAD Object Oriented Analysis Design
- SDP Software Development Plan - SOW Statement of Work
- UML Unified Modeling Language
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 26/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
ANNEX
Actor: Controller
: ControllerSimulatorManager :
SimulatorManager
CustomerPanel :
CustomerPanel
MaintainerPanel :
MaintainerPanel
MachineryPanel :
MachineryPanel
SimulatorPanel :
SimulatorPanel
1: activatePanel(String, Boolean)
2: startSimulator( )
3: activatePanel(String, Boolean)
4: activatePanel(String, Boolean)
5: activatePanel(String, Boolean)
6: activatePanel(String, Boolean)
7: activatePanel(String, Boolean)
8: activateCustomerPanel( )
9: activateMaintainerPanel( )
11: activatePanel(String, Boolean)
12: endSimulator( )
13: activatePanel(String, Boolean)
14: activatePanel(String, Boolean)
15: activatePanel(String, Boolean)
16: activatePanel(String, Boolean)
17: deactivateCustomerPanel( )
18: deactivateMaintainerPanel( )
19: deactivateMachineryPanel( )
10: deactivateMachineryPanel( )
a. Normah clicks the "Begin Simulation"
radio button to turn on the s imulator.
b. The Simulator Panel sends start signal
to the Simulator Manager.
c. The Simulator Manager activates
Customer Panel, Maintainer Panel and
"End Simulation" radio button.
d. The Simulator Manger deactivates
Machinery Panel.
e. Normah clicks the "End Simulation" radio
button to turn off the simulator.
f. The Simulator Panel sends the end signal
to the Simulator Manager.
g. The Simulator Controller deactivates
Customer Panel, Maintainer Panel and
Machinery Panel.
Appendix 1: Activate Simulation
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 27/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
Actor: Customer
: Customer CustomerPanel : CustomerPanel
VMManager : VMManager
DrinkContainer : DrinkContainer
CoinSlot : CoinSlot
CoinCointainer : CoinContainer
1: selectDrink( )
2: setSelectedDrink(Str ing)
3: getTotalCan(String)
4: Number of cans
5: isAvailable(Integer)
15: isEnough(Double)
14: displayTotalMoney(Double)
6: getPrice(String)
9: insertCoin( )
10: verifyCoin(Integer)
12: calculateMoney(Double)
13: Total Money
17: displayDispensedCan(String)
18: deductCan(String)
7: Drink's price
19: calculateChange(Double, Double)
23: displayChange(Double)
24: deductCoin(Double, Integer)
8: displayPrice( )
16: Total Money
11: Coin (object class)
22: ver ifyExactChange(Double)
20: getCoinDenom(Integer)
21: Total Cash Held
a. Rohaizah select the drink brand.
b. Customer Panel inform the VM Manager the selected drink brand.
c. VM Manager get the drink brand from the Drink Container.
d. Drink Container send the drink brand available to the VM Manager.
e. VM Manager get the drink price from the Drink Container.
f. Drink Container sends the price to the VM Manager.
e. VM Manager sends the message to display the drink price to the Customer Panel.
f. Rohaizah insert the coins to the Coin Slot .
g. Coin Slot validate and calculate the coins inserted.
h. Then, the Coin Slot send the total money calculated to the VM Manager.
i. VM Manager sends the message to display the total money inserted to the Customer Panel and verify enough money is inserted.
j. VM Manager sends the total money to the coin slot.
k. VM Manager sends the message to display the dispensed drink selected can to the Customer Panel.
l. VM Manager sends the message to display the change to the Customer Panel.
m. VM Manager sends signal to the Drink Container to deduct the dispensed drink can.
n. VM Manager calculate the change and get the coin denomination from the Coin Container.
o. Coin Container sends the total cash held to the VM manager.
p. VM Manager verify the exact change and sends the message to display the change to the Customer Panel.
q. VM Manager sends signal to the Coin Container to deduct the change with the total cash held.
Appendix 2: Purchase Drinks OK
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 28/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
CustomerPanel :
CustomerPanel : Customer
VMManager :
VMManagerDrinkContainer :
DrinkContainer
SimulatorPanel :
SimulatorPanel
1: selectDrink( )
9: selectTerminate( )
2: setSelectedDrink(String)
5: isAvailable(Integer)
10: terminateTransaction(Boolean)
3: getTotalCan(String)
4: Number of cans - 5
6: getPrice(String)
7: Drink's Price
8: displayPrice( )
11: deactivateCustomerPanel( )
12: activ atePanel(String, Boolean)
a. Rohaizah select the drink brand.
b. Customer Panel inf orm the VM Manager the
selected drink brand.
c. VM Manager get the drink brand f rom the Drink
Container.
d. Drink Container send the drink brand av ailable to
the VM Manager.
e. VM Manager get the drink price f rom the Drink
Container.
f . Drink Container sends the price to the VM
Manager.
e. VM Manager sends the message to Customer
Panel to display the selected drink price.
f . Rohaizah click the "Press Here To Return Cash
And Terminate Transaction Here" button at the
Customer Panel.
g. Customer Panel inf orms VM Manager.
h. VM Manager sends signal to deactivate the
Customer Panel.
i. VM Manager sends signal to activ ate the
Simulator Panel.
Appendix 3: Cancel (Before Transaction)
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 29/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Customer
CustomerPanel :
CustomerPanel
VMManager :
VMManager
DrinkContainer :
DrinkContainer
CoinSlot : CoinSlot SimulatorPanel :
SimulatorPanel
1: selectDrink( )
2: setSelectedDrink(String)
3: getTotalCan(String)
4: Number of cans - 5
5: isAv ailable(Integer)
6: getPrice(String)
9: insertCoin( )
10: verif y Coin(Integer)
12: calculateMoney (Double)
16: selectTerminate( )
17: terminateTransaction(Boolean)
19: reset( )
7: Drink's Price
8: displayPrice( )
11: Coin (object class)
13: Total Money
14: displayTotalMoney(Double)
15: isEnough(Double)
18: displayChange(Double)
20: deactivateCustomerPanel( )
21: activatePanel(String, Boolean)
a. Rohaizah select the drink brand.
b. Customer Panel inform the VM Manager
the selected drink brand.
c. VM Manager get the drink brand from the
Drink Container.
d. Drink Container send the drink brand
available to the VM Manager.
e. VM Manager get the drink price from the
Drink Container.
f. Drink Container sends the price to the VM
Manager.
g. VM Manager sends the message to the
Customer Panel to display the selected drink
price.
h. Rohaizah insert the coins to the Coin Slot.
i. Coin Slot validate and calculate the coins
inserted.
j. Then, the Coin Slot send the total money
calculated to the VM Manager.
k. VM Manager sends the message to display
the total money inserted to the Customer
Panel.
l. Rohaizah click the "Press Here To Return
Cash And Terminate Transaction Here"
button at the Customer Panel.
m. Customer Panel informs VM Manager.
n. VM Manager sends the message to
Customer Panel to display the change
message.
o. VM Manager sends signal to ini tial ize the
Coin Slot and deactivate the Customer
Panel.
p. VM Manager sends signal to activate the
Simulator Panel.
Appendix 4: Cancel (During Transaction)
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 30/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Customer
CustomerPanel :
CustomerPanel
VMManager :
VMManager
DrinkContainer :
DrinkContainer
1: selectDrink( )
2: setSelectedDrink(String)
6: displayMessage(Boolean)
5: isAv ailable(Integer)
3: getTotalCan(String)
4: Number of can
a. Rohaizah select the drink brand.
b. Customer Panel inform the VM Manager the
selected drink brand.
c. VM Manager get the drink brand from the
Drink Container for verification.
d. VM Manager sends the message to the
Customer Panel to display "Brand Unavailable"
message.
Appendix 5: Purchase Drinks KO
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 31/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
CoinCointainer :
CoinContainer : Customer
CustomerPanel :
CustomerPanel
VMManager :
VMManager
DrinkContainer :
DrinkContainer
CoinSlot :
CoinSlot
1: selectDrink( )
2: setSelectedDrink(String)
5: isAv ailable(Integer)
14: display TotalMoney (Double)
8: displayPrice( )
18: display DispensedCan(String)
23: v erif yExactChange(Double)
24: displayNoChange( )
21: getCoinDenom(Integer)
22: Total cash held
3: getTotalCan(String)
4: Number of cans
19: deductCan(String)
6: getPrice(String)
7: Drink's Price
9: insertCoin( )
10: v erif y Coin(Integer)
11: Coin (object class)
12: calculateMoney (Double)
13: Total Money
15: isEnough(Double)
16: Total Money
17: addCoin(Double, Integer)
20: calculateChange(Double, Double)
a. Rohaizah select the drink brand.
b. Customer Panel inform the VM Manager the
selected drink brand.
c. VM Manager get the drink brand from the Drink
Container.
d. Drink Container send the drink brand available to
the VM Manager.
e. VM Manager get the drink price from the Drink
Container.
f. Drink Container sends the price to the VM
Manager.
g. VM Manager sends the message to Customer Panel
to display the selected drink price.
h. Rohaizah insert the coins to the Coin Slot.
i. Coin Slot validate and calculate the coins inserted.
j. Then, the Coin Slot send the total money
calculated to the VM Manager.
k. VM Manager sends the message to display the
total money inserted to the Customer Panel and
veri fy enough money is inserted.
l. VM Manager sends the total money to the coin slot.
m. VM Manager sends the message to Customer Panel
to display the dispensed drink selected message.
n. In the same time, VM Manager sends the message
to Customer Panel to display the change to the
message.
o. VM Manager sends signal to the Drink Container
to deduct the dispensed drink can.
p. VM Manager calculate the change and get the
coin denomination from the Coin Container.
q. Coin Container sends the total cash held to the VM
Manager.
r. VM Manager verify the exact change and sends
the message Customer Panel to display the no change
message,
Appendix 6: No Exact Change
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 32/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: CustomerCustomerPanel :
CustomerPanel
VMManager :
VMManager
DrinkContainer :
DrinkContainer
CoinSlot :
CoinSlot
1: selectDrink( )
2: setSelectedDrink(String)
8: display Price( )
5: isAvailable(Integer)
12: displayMessage(Boolean)
13: display Change(Double)
3: getTotalCan(String)
4: Number of can
6: getPrice(String)
7: Drink's Price
9: insertCoin( )
10: verifyCoin(Integer)
11: Coin (object class)
a. Rohaizah select the drink brand.
b. Customer Panel inf orm the VM Manager the
selected drink brand.
c. VM Manager get the drink brand f rom the Drink
Container.
d. Drink Container sends the drink brand av ailable
to the VM Manager.
e. VM Manager get the drink price f rom the Drink
Container.
f . Drink Container sends the drink price to the VM
Manager.
e. VM Manager sends the message to Customer
Panel to display the selected drink price.
f . Rohaizah insert the coins to the Coin Slot.
g. Coin Slot v erif y the coins inserted.
h. VM Manager sends signal to the Customer Panel.
i. Customer Panel display the change message.
Appendix 7: Slug
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 33/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
Actor: Maintainer
: Maintainer
PasswordPanel :
PasswordPanel
Password Manager :
PasswordManager
SimulatorPanel :
SimulatorPanel
MaintainerPanel :
MaintainerPanel
LockMechanism :
LockMechanism
CustomerPanel :
CustomerPanel
2: verifyPasssword(String)
3: isValid( )
4: displayMessage(Boolean)
5: activatePanel(String, Boolean)
6: activateMaintainerPanel( )
7: deactivateCustomerPanel( )
9: setLock(Boolean)
8: activatePanel(String, Boolean)
1: retrievePassword(String)a. Marina enters the authenticated
password abc123 to the Password
Panel.
b. The Password Panel sends the
password to the Password Manager to
verify the password.
c. Then, the Password Manager sends the
message to display the password is
valid to the Password Panel.
d. Password Manager then, activates the
Simulator Panel and Maintainer Panel
and also deactivates the Customer
Panel.
e. Password Manager unlocks the Lock
Mechanism of the machine.
Appendix 8: Login
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 34/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Maintainer
MaintainerPanel :
MaintainerPanel
VMManager :
VMManager
CoinContainer :
CoinContainer
SimulatorPanel :
SimulatorPanel
1: selectCoinDenom( )
2: setSelectedCoinDenom(Integer)
3: getCoinDenom(Integer)
4: Total coins
5: displayCoinAmount(Integer)
6: selectTerminate( )
7: terminateTransaction(Boolean)
8: reset( )
9: activatePanel(String, Boolean)
a. Putri selects coins denomination by
clicking the radio button.
b. VM Manager accumulates number of
coins in selected denomination from the coin
container.
c. The VM Manager displays the number of
coins in a chosen denomination to
maintainer on the maintainer panel .
d. Maintainer then terminates the
transaction with the system by clicking the
"Press here when finished" button at the
panel .
e. VM Manager then, activates Simulator
Panel.
Appendix 9: Display Number of Coins
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 35/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Maintainer
MachineryPanel :
MachineryPanel
VMManager :
VMManager
CoinContainer :
CoinContainer
LockMechanisme :
LockMechanism
SimulatorPanel :
SimulatorPanel
2: Number of coins f or each denomination
3: displayCoinDenom(Integer, Integer)
5: updateCoinAmount(Integer, Integer)
6: updateCoinDenom(Integer, Integer)
8: lockDoor(Boolean)
9: setLock(Boolean)
4: edi tCoinAmount( )
7: selectLock( )
1: getCoinDenom(Integer)
10: reset( )
11: activatePanel(String, Boolean)
a. VM Manager gets the amount of each coins
denomination from Coin Container.
b. Coin Container then, informs VM Manager the
amount of each coins denomination.
c. VM Manager displays amount of each coins
denomination on the Machinery Panel.
d. Marina edi ts the amount of each coins
denomination.
e. Machinery Panel sends the updated amount to
VM Manager and VM Manager updates the
amount of coins denomination in Coin
Container.
f. Marina press "Lock" radio button to lock
vending machine door.
g. Machinery Panel sends the lock signal to VM
Manager.
h. VM Manager set status lock to Lock
Mechanism.
i. VM Manager activates the Simulator Panel.
Appendix 10: Change Number of Coins
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 36/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Maintainer
MaintainerPanel :
MaintainerPanel
VMManager :
VMManager
CoinContainer :
CoinContainer
SimulatorPanel :
SimulatorPanel
1: selectCollectCash( )
2: setCollectCash( )
3: getCoinDenom(Integer)
4: Total cash for each denomination
5: calculateTotalCash(Integer, Double)
6: displayTotalCash(Double)
7: resetCoinDenom( )8: selectTerminate( )
9: terminateTransaction(Boolean)
10: reset( )
11: activatePanel(String, Boolean)
a. Putri clicks "Press here to collect all cash"
button to collect the total amount of cash
held by the vending machine.
b. VM Manager requests the total cash for
each denomination from coin container.
c. Coin container informs the total cash for
each denomination and VM Manager
accumulates the total coins.
d. The VM Manager displays the total cash to
maintainer on the maintainer panel.
e. VM Manager empties the coin container.
f. Maintainer then terminates the transaction
with the system by clicking the "Press here
when finished" button at the panel.
g. VM Manager then, activates Simulator
Panel.
Appendix 11: Collect Cash
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 37/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Maintainer
MaintainerPanel :
MaintainerPanel
VMManager :
VMManager
DrinkContainer :
DrinkContainer
SimulatorPanel :
SimulatorPanel
1: selectDrink( )
2: setSelectedDrink(String)
3: getTotalCan(String)
4: Total of drink cans
5: displayCanAmount(Integer)
6: selectTerminate( )
7: terminateTransaction(Boolean)
8: reset( )
9: activatePanel(String, Boolean)
a. Putri selects drink brand by clicking the
radio button.
b. VM Manager accumulates number of
drink cans for selected brand from the drink
container.
c. The VM Manager displays the number
of selected drink cans to maintainer on
the maintainer panel.
d. Maintainer then terminates the
transaction with the system by clicking the
"Press here when finished" button at the panel.
e. VM Manager then, activates Simulator
Panel.
Appendix 12: Display Number of Drinks
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 38/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Maintainer
MachineryPanel :
MachineryPanel
VMManager :
VMManager
DrinkContainer :
DrinkContainer
LockMechanism :
LockMechanism
SimulatorPanel :
SimulatorPanel
2: Number of drink cans for each brand
3: displayDrinkDenom(String, Integer)
4: editDrinkAmount( )
5: updateDrinkAmount(String, Integer)
6: updateDrinkDenom(String, Integer)
7: selectLock( )
8: lockDoor(Boolean)
9: setLock(Boolean)
1: getDrinkDenom(String)
10: reset( )
11: activatePanel(String, Boolean)
a. VM Manager gets the amount of each drink brand
from Drink Container.
b. Drink Container then, informs VM Manager the
amount of each drink brand.
c. VM Manager displays amount of each drink brand
on the Machinery Panel.
d. Marina edits the amount of each drink brand.
e. Machinery Panel sends the updated amount to
VM Manager and VM Manager updates the
amount of drink brand in Drink Container.
f. Marina press "Lock" radio button to lock vending
machine door.
g. Machinery Panel sends the lock signal to VM
Manager.
h. VM Manager set status lock to Lock Mechanism.
i. VM Manager activates the Simulator Panel .
Appendix 13: Change Number of Drinks
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 39/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Maintainer
MaintainerPanel :
MaintainerPanel
VMManager :
VMManager
DrinkContainer :
DrinkContainer
SimulatorPanel :
SimulatorPanel
1: selectDrink( )
2: setSelectedDrink(String)
3: getPrice(String)
4: Drink's price
5: displayPrice( )
6: insertNewPrice( )
7: setNewPrice(String, Double)
8: sav eNewPrice(String, Double)
9: selectTerminate( )
10: terminateTransaction(Boolean)
11: deactivateMaintainerPanel( )
13: activatePanel(String, Boolean)
12: reset( )
a. Putri selects drink brand in order to
change the price.
b. VM Manager requests the price can
from Drink Container
c. The VM Manager displays the price
of selected drink cans to maintainer
on the maintainer panel.
d. Maintainer changes the drinks can
price by typing the new price in the
panel for chosen brand.
e. VM Manager stores the price for the
selected drink can in Drink Container
f. Maintainer then terminates the
transaction with the system by clicking
the "Press here when finished" button
at the panel.
g. VM Manager then, deactivates
Maintainer Panel and activates
Simulator Panel.
Appendix14: Change Price
This document and the inform
ation it contains are property of CASE-UTM,
© All Copyrights Reserved, 2000 and confidential. They shall not be
Reproduced nor disclosed to any person except to those having a need to
know them without prior written consent of CASE-UTM
VERSION PAGE ITEM NUMBER
1.0
DOCUMENT IDENTIFICATION
SYSTEM NAME
FORMAT
A4 40/19 04-01-022-A
VCMS/SRS
Vending Machine Simulator System (VMCS)
: Maintainer
PasswordPanel :
PasswordPanel
PasswordManager :
PasswordManager
1: retrievePassword(String)
2: verifyPasssword(String)
3: isValid( )
4: displayMessage(Boolean)
a. Marina enters the unauthorized
password 123abc to the Password
Panel.
b. The Password Panel sends the
password to the Password Manager
for the verifications.
c. The Password Panel will display
the invalid password message.
Appendix 15: Sad Login