Professional Documents
Culture Documents
PREPARED BY
Ch Krishna Priya B.Tech
DEPT.OF IT
PBR VITS-KAVALI
0
UNFIED MODELLING LANGUAGE LAB
The student is expected to take up about two mini- projects and model them and
produce Use Cases, Analysis Documents- both static & dynamic aspects, Sequence
Diagrams and State- Charts, Database design. A sample collection of Ideas is given.
Numerous other ideas can be found in the pages from the list of references given below.
STUDY OF UML
1
AIM:
DESCRIPTION:
At the center of the UML are its nine kinds of modeling diagrams, which
we describe here.
Some of the sections of this course contain links to pages with more
detailed information. And every section has short questions. Use them to
test your understanding of the section topic.
Let's look at this question from the point of view of the construction
trade. Architects design buildings. Builders use the designs to create
buildings. The more complicated the building, the more critical the
communication between architect and builder. Blueprints are the
standard graphical language that both architects and builders must learn
as part of their trade.
2
The UML is applicable to object-oriented problem solving. Anyone
interested in learning UML must be familiar with the underlying tenet of
object-oriented problem solving -- it all begins with the construction of a
model. A model is an abstraction of the underlying problem. The domain
is the actual world from which the problem comes.Models consist of
objects that interact by sending each other messages. Think of an object
as "alive." Objects have things they know (attributes) and things they can
do (behaviors or operations). The values of an object's attributes
determine its state.
Classes are the "blueprints" for objects. A class wraps attributes (data)
and behaviors (methods or functions) into a single distinct entity. Objects
are instances of classes.
Actors are stick figures. Use cases are ovals. Communications are
lines that link actors to use cases.
3
A use case diagram is a collection of actors, use cases, and their
communications. We've put Make Appointment as part of a diagram with
four actors and four use cases. Notice that a single use case can have
multiple actors.
Class diagrams
4
UML class notation is a rectangle divided into three parts: class name,
attributes, and operations. Names of abstract classes, such as Payment,
are in italics. Relationships between classes are the connecting links.
An association has two ends. An end may have a role name to clarify
the nature of the association. For example, an OrderDetail is a line item of
each Order.
5
OrderDetail has an Item. Associations with no navigability arrows are bi-
directional.
Multiplicities Meaning
zero or one instance. The notation n . . m indicates n
0..1
to m instances.
0..* or * no limit on the number of instances (including none).
1 Exactly one instance
1..* at least one instance
6
Packages appear as rectangles with small tabs at the top. The
package name is on the tab or inside the rectangle. The dotted arrows are
dependencies. One package depends on another if changes in the other
could possibly force changes in the first.
This small class diagram shows that a university Department can contain
lots of other Departments.
Sequence diagrams
7
Class and object diagrams are static model views. Interaction
diagrams are dynamic. They describe how objects collaborate.
8
there is available room for each day of the stay in the hotel). The
expression in square brackets, [ ], is a condition.
Collaboration diagrams
Statechart diagrams
9
Logging in can be factored into four non-overlapping states: Getting
SSN, Getting PIN, Validating, and Rejecting. From each state comes a
complete set of transitions that determine the subsequent state.
States are rounded rectangles. Transitions are arrows from one state
to another. Events or conditions that trigger transitions are written beside
the arrows. Our diagram has two self-transition, one on Getting SSN and
another on Getting PIN.
The initial state (black circle) is a dummy to start the action. Final
states are also dummy states that terminate the action.
Activity diagrams
10
"Withdraw money from a bank account through an ATM."
The three involved classes (people, etc.) of the activity are Customer,
ATM, and Bank. The process begins at the black start circle at the top and
ends at the concentric white/black stop circles at the bottom. The
activities are rounded rectangles.
11
of a branch. A branch and its subsequent merge marking the end of the
branch appear in the diagram as hollow diamonds.
A transition may fork into two or more parallel activities. The fork and the
subsequent join of the threads coming out of the fork appear in the
diagram as solid bars.
12
STEPS FOR MODELING UML DIAGRAMS
1. Draw the lines around the system and actors lie outside the
system.
2. Identify the actors which are interacting with the system.
3. Separate the generalized and specialized actors.
4. Identify the functionality the way of interacting actors with
system and specify the behavior of actor.
5. Functionality or behavior of actors is considered as use cases.
6. Specify the generalized and specialized use cases.
7. Se the relatonship among the use cases and in between actor and
use cases.
8. Adorn with constraints and notes.
9. If necessary, use collaborations to realize use cases.
13
4. Specify the links among these objects.Lay the association links
first represent atructural connection.Lay out other links and adorn
with stereotypes.
5. Strating with the message that initiates this interaction, attach
each subsequent message to appropriate link, setting sequence
number as appropriate.
6. Adorn each message with time and space constraints if needed
7. Attach pre & post conditions to specify flow of control formally.
14
8. Check that all states are reachable under some combination
of events.
9. Check that no state is a dead from which no combination of
events will transition the object out of that state.
10. Trace through the state machine, either manually or by using
tools, to check it against expected sequence of events & their
responses.
15
12. Set the version of the source code as a constraint to each
source code.
13. Represent source code as components.
14. Show the relationships among components.
15. Adorn with nodes,constraints and tag values.
16
EXP NO :1 Point of Sale System
2. cashier
USECASES:
1. Bar code scanning
2. Process sale
3. Close sale
4. Pay Bill.
5. Tax calculation
6. Buy product
7. Update Inventory
ALGORITHMIC PROCEDURE:
17
Use Case Diagram :
Buy product
Barcode scanning
Pay bill
Customer
Cashier
Process sale
Close sale
Update Inventory
Tax calculation
18
POS system sequence diagram
1: process sale
2: enter item
3: scan item
4: total cost
5: close sale
7: bill generation
8: generate reoprt
19
Process sale sequence diagram
1: Enter no of items
2: get item id
4: calculate bill
5: bill payment
6: get credit card number
7: verify validation
8: valid
9: validation ok
20
Process sale collaboration diagram
1: Enter no of items
5: bill payment 2: get item id
Cashier POS Codescan
System ner
4: calculate bill 3: show item details
10: generate report
6: get credit card number
9: validation ok
7: verify validation
Card Bank
reader
8: valid
enters the
shop
21
Class diagram:
Component Diagram
Point of
scale
RESULT:
Thus various UML Diagrams were generated for POINT OF SALE SYSTEM and the
corresponding code was generated using Java.
22
EX NO :2 ONLINE BOOK SHOP
ACTORS:
1. customer
USECASES:
Select Category
Select book
Order
Registration
Login
Verification
Confirmation
ALGORITHMIC PROCEDURE:
23
Online Book Shop Use Case Diagram
Sequence Diagram:
24
Sequence Diagram
25
OBS Collaboration Diagram
26
Activity Diagram:
27
Class Diagram:
28
Dynamic Aspect:
Analysis of Dynamic Aspect of classes:
The documentation in this section provides information about the static aspects of the
system. It shows how the classes interact and react to specific stimuli.
The documents are shown as follows
Collaboration Diagram:
The application setup of the use case has collaboration diagrams.
Instance level collaboration diagram of the OBS is given below
<<Application>>
Online Book
Shop
RESULT:
Thus various UML Diagrams were generated for ONLINE BOOK SHOP and the
corresponding code was generated using Java.
29
EX NO :3 SIMULATED COMPANY
ACTORS:
1. OWNER
USECASES:
ALGORITHMIC PROCEDURE:
30
31
Sequence diagrams
32
33
34
Collaboration Diagrams
35
36
37
Activity Diagrams
38
39
40
Class Diagrams:
Component Diagram
<<Application>>
Simulated
company
RESULT:
Thus various UML Diagrams were generated for SIMULATED COMPANY and the
corresponding code was generated using Java.
41
EX NO : 4 A Multi- Threaded Airport Simulation
ACTORS:
ATC Controller
Use Cases
1. ATC Controller
2. Decision Support System
3. Planning
4. Emergency
5. Sensor
6. Gateway
7. Runway
8. Terminal
9. Available
10. Waiting Queue
ALGORITHMIC PROCEDURE:
USECASE DIAGRAM:
1 Draw and drop the actors and usecase from browser window into the
diagram window.
2 Associate the usecases and actors
ACTIVITY DIAGRAM:
1 The activity diagram describes the sequencing of activities, with
support for both conditional and parallel behavior.
2 The various controls are placed into the diagram window to create
activity diagram
42
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM
43
Sequence Diagram:
Sequence Diagrams
44
Conflict Detection Sequence Diagram
45
Collaboration Diagram:
46
Activity Diagram:
47
Class Diagram:
Component Diagram
Airport
Simulation
RESULT
The various UML diagrams were drawn for AIRPORT
SIMULATION SYSTEM application and the corresponding code
was generated.
48
EX NO:5 ONLINE AUCTION
Actors:
1. Purchaser
2. seller
1. Login
2. Seller
3. Purchaser
4. Chatting
5. Select Method of bidding
6. Select Method of Auction
7. Buy Goods
8. Register for goods
9. Select history of database
1. Validate User
2. Record chatting.
ALGORITHMIC PROCEDURE:
3 Draw and drop the actors and usecase from browser window into the
diagram window.
4 Associate the usecases and actors
49
ACTIVITY DIAGRAM:
3 The activity diagram describes the sequencing of activities, with
support for both conditional and parallel behavior.
4 The various controls are placed into the diagram window to create
activity diagram
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM
50
Use Case diagram of Auction System
chatting
logout
validate user
<<include>>
<<include>>
<<include>>
<<extend>>
purchaser
51
Sequence Diagram:
4: give status
5: check status
7: validate card
52
Static aspects of the system: Collaboration diagram
53
Activity Diagram
54
Activity Diagrams
Auction Activity Diagram
55
Bidding activity Diagram
56
Class Diagram:
user
name : string goods
id : number name : string
password : string quantity : number
Component Diagram
<<Application>>
Online Auction
RESULT:
Thus various UML Diagrams were generated for Online Auction Application and
the corresponding code was generated using Java.
57
EX NO :6 CONTENT MANAGEMENT SYSTEM
1. End user
2. Administrator
3. Manage
USECASES:
ALGORITHMIC PROCEDURE:
USECASE DIAGRAM:
5 Draw and drop the actors and usecase from browser window into the
diagram window.
6 Associate the usecases and actors
ACTIVITY DIAGRAM:
58
support for both conditional and parallel behavior.
6 The various controls are placed into the diagram window to create
activity diagram
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
5 Press F5 on the sequence diagram the collaboration diagram is obtained
6 Save the diagram.
COMPONENT DIAGRAM
59
USE CASE DIAGRAM FOR CONTENT MANAGEMENT SYSTEM
publish
LOGIN
INCLUDE
CONTROL PRESENTATION
SHARE INFORMATION
manager
60
SEQUENCE DIAGRAM FOR CONTENT MANAGEMENT SYSTEM
logs in
login ok
logout
logout successfull
61
COLLABORATION DIAGRAM FOR CONTENT MANAGEMENT SYSTEM
ADMINISTR
ATOR
3: login ok
7: terminates the user login
62
ACTIVITY DIAGRAM FOR CONTENT MANAGEMENT
user logs in
63
CLASS DIAGRAM FOR CONTENT MANAGEMENT SYSTEM
System
<<Actor>> (from lang)
endUser in : InputStream
(from Use Case View) out : PrintStream
id : integer err : PrintStream
password : integer
setIn()
login() setOut()
logout() setErr()
sbope() setSecurityManager()
endUser() getSecurityManager()
currentTimeMillis()
arraycopy()
identityHashCode()
getProperties()
setProperties()
getProperty()
getProperty()
setProperty()
getenv()
exit()
gc()
<<Actor>> runFinalization()
administrator runFinalizersOnExit()
(from Use Case View) load()
loadLibrary()
checksp() mapLibraryName()
vc()
cp()
64
COMPONENT DIAGRAM FOR CONTENT MANAGEMENT SYSTEM
RESULT:VARIOUS DIAGRAMS FOR CONTENT MANAGEMENT SYSTEMS HAS BEEN DRAWN AND
VERIFED.
65
EX NO :7 BANK APPLICATION
ACTORS:
1. Customer
2. Manager
3. Operator
4. Transaction system
5. Master system
USECASES:
1. create acct
2. closing acct
3. withdraw
4. deposit
5. apply loan
6. grant loan
7. verify cust details
8. fixed deposit
9. verify maturity date
10. update trans
11. update master
12. issue amt
ALGORITHMIC PROCEDURE:
USECASE DIAGRAM:
7 Draw and drop the actors and usecase from browser window into the
diagram window.
66
8 Associate the usecases and actors
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM
67
Banking - USE CASE Diagram
Create acct
Close acct
Operator
withdraw
deposit
Customer
update transaction
issuing amt
apply loan
Transacion
Grant loan system
Fixed deposit
Master system
Banking: ActivityDiagram
specify
transaciontype
trans_trpe? 68
Banking: ActivityDiagram
specify
transaciontype
trans_trpe?
4 5
1 2 3
Deposit? FD? cust applyfor
createacct? closeacct? yes specifythe loan
withdrawamt? maurityperiod
yes no
cust paythe
Acct already
FD? datematured? amt Managerverify
exists? operatorissueamt&
closetheacct cust details
no no operatoraddtheamt
createacct & amtavailablein yes toacct/ issuetheFD
acct? satisfied? no
issuepassbook no yes
Informcust amt Issuetheamt yes
not available rejectingthe
grant loan loan
update
transaction
transcommited?
yes
cancel
updatemaster transaction
file
69
Ba nkin g: Sequence Di agram
5:pay_amt()
4:acct_already_exist()
6:issue_passbook() 7:update_trans()
8:closing_acct()
9:issue_amt() 10:update_trans()
11:withdraw()
12:fix eddeposi t()
15:update-trans()
16:if FD,verify_mat_date()
17:if matured, issue_amt()
18:update_trans()
19:deposit()
20:fixeddeposit()
21:if FD,specify_fd_period()
22:update_trans()
23:apply_loan()
24:verify_cust_details
25:grant_loan()
70
Banking:Colloboration diagram
2: 2:check_trans_type()
5: 4:acct_already_exist() 7: 7:update_trans()
12: 12:fixeddeposit() 10: 10:update_trans()
13: 13:if not FD, check_amt() transaction
15: 15:update-trans()
16: 16:if FD,verify_mat_date() system
18: 18:update_trans()
20: 20:fixeddeposit() 22: 22:update_trans() 28: 28:if not, cancel_trans()
24: 24:verify_cust_details
26: 26:trans_commit()
Operator
Manager
6: 6:issue_passbook()
9: 9:issue_amt()
14: 14:issue_amt()
17: 17:if matured, issue_amt()
Customer
Master
system
71
Banking: Class Diagram
Transaction
trans_type : int
trans_completed : boolean
check_trans_type()
trans_commit()
cancel_trans()
update_trans() Transaction Types
type : int
create_acct()
Cust
close_acct()
Name : string withdraw()
occupation : string deposit()
otherdet : varchar fixeddeposit()
acct_type : string wd_fd()
acct_no : int verfify_maturiy_date()
apply_loan()
specify_trans() verfiy_cust_detals()
pay_amt() grantloan()
specify_fd_period() System_maintena
nce issue-amt()
acct_already_exist()
balance : float
issue_passbook()
check_amt()
update_master()
Banking:Componen Diagram
Transaction Master
System system
Cus tomer
trans
RESULT:
Thus various UML Diagrams were generated for BANK APPLICATION and the
corresponding code was generated using Java.
72
EX NO :8 ATM APPLICATION
ACTORS:
1. Client
2. Administrator
3. System
USECASES:
1. insert card
2. enter pin no
3. invalid pin
4. type of transaction
5. withdrawal amount
6. balance amount
7. transaction completed
8. remove the card
9. exit
10.carryout transaction
11.transaction completed
12.complain
13.sends currency
14.check balance amount
15.check card validity
16.inform about transaction
17.sends bill
ALGORITHMIC PROCEDURE:
73
USECASE DIAGRAM:
Draw and drop the actors and usecase from browser window into the
diagram window.
Associate the usecases and actors
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM:
74
Use Case Diagram ATM
PIN
Request
client
Admini
change Pin
Change Pin
Withdrawal
Report
Done
75
Administrator Sequence Diagram
: Admini
1: Atm Card
3: Validate
4: Request
7: Cahnge Pin
76
Client Sequence Diagram
4: Show menu
5: Request
6: to withdraw
7: valid
8: pay amopunt
9: to change pin
77
Collaboration Diagram For Administrator
3: Validate insert
5: check for balance card
Pin
1: Atm Card
4: Request Widthdr
request aw
insert
Exit 1: Insert the card into ATM card 3: Validity
13: Eject the card
7: valid 2: Enter Pin code
8: pay amopunt Pin
: client 4: Show menu
widthdra
12: To exit w 11: New pin
9: to change pin
request change
pin
78
ATM Activity Diagram
Insert the
card
Choice to widthdraw,account
info,change pin
is widthdraw
yes is report
Amount for
widthdraw yes is pin change
Print the account
details yes
Checking
balance Enter new
Pin
Inform ur balance
check valid
is less amount
Update pin
pay amount
requested
Go to menu
Eject the
card
79
ATM Class Diagarm
Client Admini
name atmid : String
cardNo : String +theClient +theAdmini
Laocation : String
Pin : Integer
Withdraw()
requestWithdraw() changePin()
requestChangePin() Report()
Component Diagram
ATM
RESULT:
Thus various UML Diagrams were generated for ATM SYSTEM and the
corresponding code was generated using Java.
80
Exp.No: 9 AIM: To create a UML diagram of RAILWAY RESERVATION
SYSTEM
ACTORS:
1. Passenger
2. System
USECASES:
1. enter the website
2. choose the destination
3. list of trains
4. user details
5. number of seats
6. credit card number
7. ticket status
8. confirmation
9. exit
ALGORITHMIC PROCEDURE:
STEP 1: Start the application
STEP 2: Create the require actors and usecases in the browser window
STEP 3: Goto new usecase view and then click the usecase view and open a
new package
STEP 4: Rename the new package with the package with required names
STEP 5: Create two packages actor and usecase
USECASE DIAGRAM:
Draw and drop the actors and usecase from browser window into the
diagram window.
Associate the usecases and actors
ACTIVITY DIAGRAM:
The activity diagram describes the sequencing of activities, with
support for both conditional and parallel behavior.
The various controls are placed into the diagram window to create
activity diagram
SEQUENCE DIAGRAM:
Create a new package from the database and name it as a sequence
diagram
81
From the toolbar, select the required tools and make corresponding
connections.
COLLABORATION DIAGRAM:
Press F5 on the sequence diagram the collaboration diagram is obtained
Save the diagram.
COMPONENT DIAGRAM:
Create a new package from the database and name it as a component
diagram
Generate the coding using java
82
Usecase Diagram
List of Trains
User details
Passenger
Number of seats System
Ticket status
Confirmation
Exit
83
Activity Diagram
ENTER
WEBSITE
SPECIFY SOURCE,
DEST.
CHOOSE
TRAIN
SPECIFY USER
DETAILS
SEAT
NO AVAILABLE YES
NEXT TRAIN
SPECIFY CREDIT
CARD NUMBER
VALIDATE
CREDIT
CONFIRM
DETAILS
DISPLAY
TICKET
UPDATE
DATABASE
84
Sequence Diagram(Passenger)
1: Enter website
2: Specify Destination
3: Choose train
4: Specify details
6: Confirm details
Collaboration Diagram(Passenger)
2: Specify Destination
SPECIFY
DEST.
: Passenger
3: Choose train
4: Specify details
CHOOSE
TRAIN
5: Enter Credit card number
SPECIFY
6: Confirm details DETAILS
ENTER CREDIT
CONFIRM CARD NO
DETAILS
85
Sequence Diagram(System)
2: Accept details
3: Seat Availability
5: Display Ticket
6: Update Database
Collaboration Diagram(System)
VALIDATE
5: Display Ticket
CREDITCARD
6: Update Database
UPDATE DISPLAY
DATABASE TICKET
86
Class Diagram
PASSENGER
NAME SYSTEM
CREDITCARDNUMBER
DETAILS 1 DISPLAY_LIST_OF_TRAINS()
* CHECK_AVAIL_SEATS()
ENTER_WEBSITE() CHECK_CREDITCARD_INFO()
CHOOSE_DEST() PROCESS_STATUS()
CHOOSE_TRAIN() SHOW_TICKET()
ENTER_DETAILS() CONFIRM()
ENTER_CREDITCARDNUM()
Component Diagram
<<ActiveX EXE>>
OnlineTicket
RESULT:
87
Exp.No:10 AIM: To create a UML diagram of LIBRARY MANAGEMENT
system
ACTORS:
1. Librarian
2. Member
3. System
4. Sys operator
5. Manager
USECASES:
ALGORITHMIC PROCEDURE:
88
Draw and drop the actors and usecase from browser window into the
diagram window.
Associate the usecases and actors
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM
89
Library Use Case Diagram
Reponse
Manager Librarian Join
Renewel
Helpsto member
bookskeeper
Request for materials need
Reference material
Maintain material
90
Activity Diagram
Overthrough
books Return or
renewel book
No
if need Refer the
books Check date
valid
if member
no
Leave the
Library
91
Manager Sequence Diagram
: Manager
1: instruction to maintain
3: Reponse to request
Collaboration Diagram
1: instruction to maintain
2: request for acitvity
control
: Manager
Request
3: Reponse to request
Respons
e
92
Bookskeeper Sequence Diagram
Collaboration Diagram
Request
93
Collaboration Diagram
Matian
membership
order
: Librarian
5: Reuesting to get books for loan
Give for
Loan 1: Give Reading Material needed
Reading material
needed
94
Sequence Diagram For Member
95
Collaboration Diagram
96
Class Diagram
Librarian
Management name : char
detail : char
name : char
detail : char
issuebooks()
takingreturn()
checkVailddate()
Member
bookskeeper
name : char
detail : char name : char
validDate : char detail : char
getloanBooks() maintainBooks()
returnBooks() requirment()
Component Diagram
<<Application>>
Libraray
RESULT
Thus various UML Diagrams were drawn for LIBRARY SYSTEM and the
corresponding code was generated using Java.
97
EXP NO 11 AIM: To create a UML diagram of Inventory Control System.
ACTORS:
1. Stock Manager
2. Service Manager
3. Supplier
4. Stock Accountant
5. Buyers
USECASE:
ALGORITHMIC PROCEDURE:
USECASE DIAGRAM:
Draw and drop the actors and usecase from browser window into the
diagram window.
Associate the usecases and actors
98
ACTIVITY DIAGRAM:
The activity diagram describes the sequencing of activities, with
support for both conditional and parallel behavior.
The various controls are placed into the diagram window to create
activity diagram
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM
Option Explicit
99
Inventory Class Diagram
StockAccountant
StockManager StocksAvailable1
DateBought1
StocksAvailable
DateSold1
StocksPurchased
ServiceRepairmentDate
StocksSold
1
SupplyAccount1
StocksServiced
PurchaseAccount1
StockRepaired +theStockManage
ServiceAccount1
InventoryDB r
InventoryDB1
MaintainsExistingStocks()
MaintainsSupplyAccount()
BuySocks()
UpdateStocks()
SellStocks()
MaintainsPurchaseAccount()
MaintainsInventoryDB()
MaintainsServiceAccount(
StockManager()
)MaintainsInventoryDB()
StockAccountant()
+theStockAccountant
+theStockAccountant
+theStockAccountant
+theSupplyAccount
+thePurchaseAccount+theServiceAccount
SupplyAcco
unt PurchaseAc ServiceAcco
+theSupplyAccount count unt
+theServiceAccount
+theStockSupplier +theServiceEngineer
100
USECASE DIAGRAM
Maintains existing
stocks
Request for
Stocks_supply
Stock
manager
Buy new stocks
Request_ServiceRepai
r
Components_ServiceR
epairment
Service
Engineer
Maintains service
account
Supplier
Maintains Purchase
account
Stock
Accountant StocksSale
Maintains Supply
account
Buyers
Update
StocksInventoryDB
101
COLLABORATION DIAGRAM
2: Supply stocks
9: Updates Inventory DB
6: Request Stocks
7: Sell Stocks
Buyer
ServiceEngin StockAccoun
eer tant
12: Updates ServiceRepair Account
102
SEQUENCE DIAGRAM
Supply stocks
Purchase Stocks
Request Stocks
Sell Stocks
Updates Inventory DB
Update InventoryDB
103
start
Inventory Activity Diagram
Request option
repair or
Buy? service?
Sell?
Purchase new
Stocks Sell
Repairs or
Stocks
services stocks
Update stocks
in Inventory DB
stop
104
Component Diagram
<<Application
Inventory
>>
RESULT
105
EXP NO 12 AIM: To create a UML diagram of QUIZ APPLICATION.
ACTORS:
1. Interviewer
2. participant
3. scorer
USECASES:
10.number of team
11.number of participants
12.explain rules
13.round no
14.ask questions
15.time up
16.answers
17.correct answers
18.announce marks
19.announce results
20.distribute prices
ALGORITHMIC PROCEDURE:
USECASE DIAGRAM:
Draw and drop the actors and usecase from browser window into the
diagram window.
Associate the usecases and actors
106
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM
107
Quiz Usecase Diagram
No of Teams
Team Name
No of Participants
Rules
Rounds
Participant
Interviewer
Q&A
Time
Score Scorer
Result
Prize
108
Activity Diagram For Quiz
Questions
Answers
Check
Answers
Correct Incorrect
Increament
Score
Next
Question
Result
Prize
109
Sequence Diagram for Interviewer
1: Announces
2: Announces
3: Asks
4: Announces
5: Distributes
2: Announces RESULT
3: Asks
1: Announces 4: Announces
5: Distributes
PRIZE
Interviewer
110
Sequence Diagram For Participant
Participant
1: Announced to
2: Announced to
3: Specifies
4: Specifies 5: Asked to
6: Choose
7: Answers
8: Correct
9: Wrong
9: Wrong 4: Specifies
7: Answers 5: Asked to
CHOICE OF
QUESTION
1: Announced to 6: Choose
Participant 3: Specifies
RULES
2: Announced to
ROUNDS
111
Sequence Diagram for Scorer
Scorer
1: Time Elapsed for a question
RESULT
3:
1: TIME
2:
Scorer : Scorer
SCORE
112
Class Diagram For Quiz
<<Class Module>>
PARTICIPENT
NAME : Variant
*
TEAM_NAME : Variant
NOS : Variant
QUESTIONS() 1
RULES()
RESULTS()
<<Class Module>>
1 SCORER_
SCORE : Variant
TIME : Variant
ANN_RESULTS()
ANN_TIME()
QUIZ
RESULT :
The various UML diagrams were drawn for QUIZ application and the
corresponding code was generated
113
Library Information System
EA 4.10 Unregistered
dbase Trial Version - EA 4.10 Unregistered Trial Version
name: librarian EA 4.10 Unregistere
- adress: int
- speed: - id: int - name:
EA 4.10 Unregistered Trial Version* EA 4.10 Unregistered
- computer:
*
Trial Version int EA 4.10 Unregistere
- designation:
- cost: int 1 + login() : void
+ search() : void * + verify() : void
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
+
+
login() : void
search() : void
1
+
+
read() : void
return() : void
+
+
add() : void
delete() : void
+ issue() : void
1 + collectfine() : void
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
1
EA 4.10 Unregistered
student Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
* *
- branch:
- year: int
EA 4.10 Unregistered Trial Version
staff EA 4.10 Unregistered
book Trial Version EA 4.10 Unregistere
+ read() : void * - author:
- designation:
+ write() : void - cost: int
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
-
-
branch: int
experience: int - publisher: int
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
magazine
EA 4.10 Unregistered Trial Version EA 4.10
textbookUnregistered Trial Version EA 4.10 Unregistere
- author:
- author: - cost: int
- cost: int
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
- publishername: int
- publishername: int
+ read() : void
+ read() : void + write() : void
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
+ write() : void
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
Object
EA 4.10 diagram -Library
Unregistered Trial Information
Version EA System:-
4.10 Unregistered Trial Version EA 4.10 Unregistere
cd
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
member librartian
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
staff
EA 4.10 Unregistered Trial
student
Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered
text Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
database
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
115
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistere
Sequence diagram: -Library Information System:-
EAsd4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10member
Unregistered Trial Version
librarian
EA 4.10 Unregistered
database
Trial Version EA 4.10 Unregistered Trial V
book
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
create
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
verifyid
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
read
EA 4.10 Unregistered
return
Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
116
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial V
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
Deployment diagram: -Library Information System:-
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
dd
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
client serv er
+ book.exe() : void + login() : void
EA 4.10 Unregistered Trial Version
+ librarian.exe() : void EA 4.10 +Unregistered
«deploy» search() : void Trial Version EA 4.10 Unregistered Trial Ver
+ member.exe() : void
+ database.exe() : void
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
117
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ver
Activity diagram: -Library Information System:-
ad
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
start
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
request for book
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
giv e permission
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
goto database
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
login
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
search
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
found
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
delete
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10readbook
Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
return
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
takebook
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
v erifybook
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version stopEA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
118
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Un
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
Component diagram: -Library Information System:-
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
id
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
lib infosys
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
member.j av a
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered
librarian.j av a
Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
119
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Ve
Collaboration diagram: -Library Information System:-
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
cd
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Version EA 4.10 Unregistered Trial Versio
Mini Project :
PAYROLL SYSTEM
CONTENTS
1. Problem Statement 01
2. Payroll System Glossary 02
3. Payroll System Supplementary Specifications 03
4. Finding the Actors & Use cases from the Payroll system 05
5. Payroll System use case model main diagram 06
5.1 Brief Description of use cases 07
6. Identifying the Classes 08
6.1 Boundary Classes
6.2 Control Classes
6.3 Entity Classes
7. Class Diagram 09
8. Sequence Diagram 10
9. Deployment Diagram 11
PROBLEM STATEMENT
The new system will be state of the art and will have windows based
desktop interface to allow employees to enter timecard information, enter purchase
orders, change employee preferences such as payment methods and create
various reports. The system will run on individual desktop throughout the entire
121
company. For reason of security and auditing, employees can only access and edit
their own timecard and purchase orders.
The system will retain information of all employees in the company (Acme),
currently has 5000 employees worldwide. The system must
pay each employee a correct amount, on time, by the method
that they specify (see possible methods described later).
Acme for cost reasons does not want to replace one of their
legacy data base, the project management database that
contains all information regarding projects and charged
numbers. The new system must work with the existing project
management database, which is the DB2 database running
on IBM mainframe. The payroll system will access but not
update information stored in the project management
database.
122
One of the most requested features of the new system is
employ reporting. Employees will be able to query the system
for numbers of hours worked, totals of all hours billed to a
project (charge number), total pay received here-to-date,
remaining vacation time, etc.,
123
Definitions
The glossary contains the working definitions for the key concepts in
the payroll system.
Bank system
Any bank(s) to which direct deposit transactions are sent.
Employee
A person that works for the company that owns and operates the payroll
system (Acme, Inc).
Payroll Administrator
The person responsible for maintaining employees and
employee information in the system.
System Clock
The internal systems clock that keeps track of time. The
internal clock will automatically run the payroll at the
appropriate times.
Pay Period
The amount of time over which an employee is paid.
Paycheck
A record of how much an employee was paid during a
specified Pay Period.
Payment Method
How the employee is paid, either pick-up mails, or directs
deposit.
124
Timecard
A record of hours worked by the employee during a
specified Pay Period.
Purchase Order
A record of a sale made by an employee.
Salaried Employee
An employee that receives a salary.
Commissioned Employee
An employee that receives a salary plus commissions.
Hourly Employee
An employee that is paid by the hour.
Payroll System Supplementary Specification
Objectives
The purpose of this document is to define requirements
of the payroll system. This supplementary specification lists
the requirements that are not readily captured in the use-
cases of the use-case model. The supplementary
specifications and the use-case model together capture a
complete set of requirements on the system.
Scope
This supplementary specification applies to the payroll
system, which will be developed by the OOAD students. This
specification defines the non-functional requirements of the
system: such as reliability, usability, performance and
supportability as well as functional requirements that are
common across a number of use-cases. (The functional
requirements are defined in the use-case specifications.)
References
125
None
Functionality
None
Usability
None
Reliability
The main system must be running 98% of the time. It is
imperative that the system be up and running during the times
the payroll is run(Every Friday and last working day of the
month).
Performance
The system shall support up to 2000 simultaneous users
against the central database at any given time and up to 500
simultaneous users against the local servers at any one time.
Supportability
None
Security
The system should prevent employees from changing
any timecards other than their own. Additionally, for security
reasons, only the payroll administrator is allowed to change
any employee information with the exception of the payment
delivery method.
Design Constraints
126
The system shall integrate with an existing legacy
system, the project management database, which is a DB2
database running on an IBM mainframe.
The system shall interface with existing bank systems via an
electronic transaction interface
1.Actors
1. Employee
2. Commissioned Employee
3. Payroll Administrator
4. System clock
5. Project database
6. Printer
7. Bank system
2.Use-cases
127
1. Select payment
2. Maintain timecard
3. Create employee report
4. Maintain purchase order
5. Login
6. Create administrative report
7. Maintain employee information
8. Run payroll
USE-CASE DIAGRAM
128
Select payment
Login
Maintain purchase order
Commisioned
employee
Create administrator report
Payroll
administrator Maintain employee
information
Bank system
129
Brief Description of Use-Cases
Run payroll
Brief Description
The use-case describes how the payroll is run every Friday and the last
working day of the month.
Flow of Events
Basic Flow
The use-case begins when it’s time to run the payroll. The payroll is run
automatically every Friday and the last working day of the month.
Alternative Flows
130
Bank System Unavailable
Deleted Employees
Special Requirements
None
Pre-Conditions
None
Post-Conditions
Extension Points
None
Identifying the Classes
Boundary classes
1. System check interface
2. Naming
Control Classes
1. Payroll controller
2. Pay controller
131
Entity Classes
1. Payroll DB Manager
2. Pay check
3. Time period
4. Employee
5. Salaried Employee
6. Hourly Employee
7. Commissioned Employee
8. Purchase Order
CLASS DIAGRAM
0..1
0..*
0..1
0..1
0..* 0..*
<< entity>> << entity>> 1 0..* << entity>>
Payroll DB Manager Employee Pay Check
0..*
<< entity>> << entity>> << entity>>
Hourly Employee Salaried Employee Time Card
132
Sequence Diagram
2: Run Payroll
3: getemployee(string)
4: Is Pay Day?()
5: get payamount()
6: get timecardinfo
7: get PO info()
8: calculatepay()
10: //add(paycheck)
11: //save(paycheck,emp)
13: print(paycheck,string)
15: print
16: deposit(paycheck,bankinf)
DEPLOYMENT DIAGRAM
Desktop
Printer
PC
Payroll
Server
Bank Project
System Mana...
133
Mini Project :
CONTENTS
1. Problem Statement 01
2. Course Registration System Glossary 02
3. Course Registration System Supplementary Specifications 03
4. Finding the Actors & Use cases from the registration system 04
5. Course Registration System use case model main diagram 05
5.1 Brief Description of use cases 05
6. Activity Diagram 08
7. Identifying the Classes 09
7.1 Boundary Classes
7.2 Control Classes
7.3 Entity Classes
8. Class Diagram 10
9. Interaction Diagram 11
10. State Chart Diagram 12
11. Component Diagram 13
12. Deployment Diagram 14
134
Problem Statement
As the head of Information Systems for WYLIE College you are tasked with
developing a new student registration system. The college would like a new
client /server system to replace its much older system developed around
mainframe technology. The new system will allow students to register for a course
and view report cards from PC’s attached to the campus LAN. Professors will be
able to access the system to signup to teach courses as well as record grades.
The new system will allow students to select four course offerings for the
coming semester. In addition, each student will indicate two alternative choices in
case the student cannot be assigned to a primary selection. Course offerings will
have a maximum of ten students and a minimum of three students. A course
offering fewer than three students will be cancelled. For each semester, there is a
period of time that students can change their schedule. Students must be able to
access the system during this time to add or drop courses. Once the registration
process is completed for a student, the registration system sends information to
the billing system so the student can be billed for the semester. If a course fills up
during the actual registration process, the student must be notified of the change
before submitting the schedule for processing.
At the end of semester, the student will be able to access the system to give
an electronic report card. Since students grades are sensitive information, the
system must employee extra security measures to prevent unauthorized access.
135
Course Registration System Glossary
Introduction
This document is used to define terminology specific to the problem domain,
explaining terms, which may be unfamiliar to the reader of the use-case
descriptions or the other project documents. Often, this document can be used as
an informal data dictionary, capturing data definitions so that use-case descriptions
and other project documents can focus on what the system must do with the
information.
Definitions
The glossary contains the working definitions for the key concepts in the
Course Registration System.
Course
A Class offered by the university
Course Offering
A specific delivery of the course for a specific semester – you could run the
same course parallel sessions in the semester. Includes the days of the week and
times it is offered.
Course Catalog
Faculty
Finance System
Grade
Professor
136
Report Card
All the grades for all courses taken by a student in a given semester.
Roster
Student
Schedule
Objectives
Scope
References
None
Functionality
137
If a course offering becomes full while a student is building a schedule including
that offering, the student must be notified.
Usability
The desktop user-interface shall be Windows 95/98 compliant.
Reliability
The system shall be available 24 hours a day 7 days a week, with no more than
10% down time.
Performance
1. The system shall support up to 2000 simultaneous users against the central
database at any given time and up to 500 simultaneous users against the local
servers at any one time.
2. The system shall provide access to the legacy course catalog database with
no more than 10 second latency.
Note: Risk based projects have found that the legacy course catalog database
cannot meet our performance needs without some creative use of mid-tier
processing power.
3. The system must be able to complete 80% of all transactions within
2minutes.
Supportability
None.
Security
The system must prevent students from changing any schedules other than
their own, and professors from modifying assigned course offerings for other
professors.
4. Finding the actors and use cases from the course registration system
4.1 Actors
4.1.1 Student
4.1.2 Professor
4.1.3 Registrar
4.1.4 Course catalog
4.1.5 Billing system
138
4.2 Use cases
Course
Login Catalog
Select courses to teach
Professor
Submit Grades
Maintain Professor
Information
Registrar
Close Registration
Billing System
139
Brief Description of use cases :
1. Close Registration
2. Login
3. Maintain Professor Information
4. Maintain Student Information
5. Register for courses
6. Select courses to teach
7. Submit Grades
8. View Report Card
1. Close Registration
Brief Description
This use case allows a Registrar to close the registration process. Course
offerings that do not have enough students are cancelled. Course offerings must
have a minimum of three students in them. The billing system is notified for each
student in each course offering that is not cancelled, so the student can be billed
for the course offering.
Flow of Events
Basic Flow
This use case starts when the Registrar requests that the system close
registration.
2. For each course offering, the system checks if a professor has signed up to
teach the course offering and at least three students have registered. If so, the
system commits the course offering for each schedule that contains it.
3. For each schedule, the system “levels” the schedule: if the schedule does not
have the maximum number of primary courses selected, the system attempts to
select alternates from the schedule’s list of alternates. The first available course
140
offerings will be selected. If no alternates are available, then no substitution will be
made.
4. For each course offering, the system closes all course offerings. If the course
offerings do not have at least three students at this point (some may have been
added as a result of leveling), then the system cancels the course offering. The
system cancels the course offering for each schedule that contains it.
5. The system calculates the tuition owed by each student for his current
semester schedule and sends a transaction to the Billing System. The Billing
System will send the bill to the students, which will include a copy of their final
schedule.
Alternative Flows
If, in the Basic Flow, there is no professor signed up to teach the course
offering, the system will cancel the course offering. The system cancels the course
offering for each schedule that contains it.
If the system is unable to communicate with the Billing System, the system will
attempt to re-send the request after a specified period. The system will continue to
attempt to re-send until the Billing System becomes available.
Special Requirements
None.
Pre-Conditions
The Registrar must be logged onto the system in order for this use case to
begin.
Post-Conditions
If the use case was successful, registration is now closed. If not, the system
state remains unchanged.
141
Extension Points
None.
Note:
[ Registration in progress ]
Display Image
Commit
Course
Create
Schedule
Send list to
Billing System
142
7. Identifying the Classes
143
8. CLASS DIAGRAM [ REGISTER FOR COURSES ]
<<entity>>
Registration User
+0..4 0..4
<<entity>>
Course Offering Fulltime Part time
144
9. INTERACTION DIAGRAM [ SELECT COURSES TO TEACH ]
: Professor : professor course options : Add course offering : Professor course : course : Course Offering
1:Extra password manager
2:Verify password
3:Enter Semester
4:Add an offering
5:Display
7:Get offering
8:Get offering
9:Get offering
10:Display offering
145
10. STATE CHART DIAGRAM
Initialization
entry/
Open
Cancel
entry/
cancel
146
11. COMPONENT DIAGRAM
Billing
Registra
tion
Course
Catalog
147
Course Catalog
Student PC System
Registration
Server
148