Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION:
USECASE DIAGRAM:
A behavioral diagram that shows a set of use cases and actors and their relation ships.
USECASE:
It is a description of set of sequence of actions that a system performs that yields an observable result of value to a particular actor. An use case is used to structure the behavioral things in a model and it is rendered as an ellipse with solid line along with its name.
Actor:
It specifies a coherent set of roles that users of use cases play when interacting with these use cases.
CLASS DIAGRAM:
A structural diagram that shows a set of classes, interfaces, collaborations, and their relationships.
OBJECT DIAGRAM:
A structural diagram that shows a set of objects and their relationships.
SEQUENCE DIAGRAM:
A behavioral diagram that shows an interaction, emphasizing the time ordering of messages.
COLLABORATION DIAGRAM:
A behavioural diagram that shows an interaction, emphasizing the structural organization of the objects that send and receive meassages.
STATECHART DIAGRAM:
A behavioural diagram that shows a state machine, emphasizing the event-ordered behavior of an object.
ACTIVITY DIAGRAM :
An activity diagram represents the e ecution state of a mechanism as a sequence of steps grouped sequentially as parallel conrol flow branches.It is a variant of state chart diagrams organized according to actions and internal behavior of a method or a usecase.
Activity diagram s are used to model the dynamic aspects of system. !wimlanes "or#ing $oining COMPONENT DIAGRAM:
%omponent diagrams are basically used to model static view of the system. &his can be achieved by modeling various physical components li#e libraries, tables, files etc. which are residing within a node. %omponent diagrams are very essential for constructing e ecutable systems. &his can be done using concepts of forward and reverse engineering. &he graphical representation of a component diagrams basically include collection of vertices and arcs.
DEPLOYMENT DIAGRAM:
'eployment is the stage of development that describes the configuration of the running system in a real time environment."or deployment,decisions should be made about configuration parameters,performece,resource allocation ,distribution and concurency.&he component develop or reused should be deployed on some set o f hardware for e ecution.(odes are used to model the topology of the hardware on which the system e ecutes.A node usually represents a processor or a device on which components can be deployed
8eturn Item 7anage &itles 7anage Items 7anage 6orrowers 7anage 5ibrarians Assume Identity of 6orrower
&he outline of the basic flow for the use case %hec#out Item ,which means that a 6orrower can chec# out an Item- is described as follows: ). &he borrower chooses to perform a 9!earch: for desired titles; <. &he system prompts the borrower to enter !earch criteria. =. &he borrower specifies the search criteria and submits the search. 3. &he system locates matching titles and displays them to the borrower. 1. &he borrower selects a title to chec# out. >. &he system displays the details of the title, as well as whether or not there is an available item to be chec#ed out. ?. &he borrower confirms that he or she wishes to chec#out the item. @. &he system chec#s out the item. A. !teps ) to @ can be repeated as often as desired by the borrower. )4. &he borrower completes chec#out. )). &he system notifies a librarian that the borrower has concluded the chec#out item session and displays instructions for the borrower to collect the contents.
Registered !ser
Login
Browse
earch
Librarian
Manage Borrowers
Remove reservation
Borrower
Manage Items
Make Reservation
Manage Titles
Checkout Item
Return Item
Master Librarian
Manage Librarian
Fig:
librarian )* )*$$+ L"/I ITOR v"name time refers'( LIBRARlib"name lib"add timings'( )* L" TA,, sta"name sta"desig sta"id lend'( maintain'( log'( )*$$+ is member of maintains
).$$+ visits
)*
)*
)*$$+
associated with
).$$+ L"M&MB&R mem"name mem"add no$books take'( visit'( read'( )*$$+ uses L"BOO# bk"name bk"id no$co%ies
)*$$+
)*$$+
Borrower
can Borrow'(
makes
.$$+
Reservation
creation1ate 0 1ate 2 current1ate .$$+
checks out
.$$+
references
*
Title
name 0 tring getLendingTime'( *
Loan
creation1ate 0 1ate 2 current1ate
Item
id 0 integer
.$$+
Book Title
lendingTime 0 1ays 2 3.
Mag4ine Title
lendingTime 0 1ays 2 *.
0Title
0Borrower
0item
50 search'(
70 select title'(
80 get item'title(
90 get item'(
:0 select item'(
;0 return'(
*.0 return'item(
**0 can return 'item( *50 <barrower is allowed to return this item= 0Return item Controller 60 get matching'criteria( 90 get item'( 0Title *30 set status'( 0item 30 search'criteria( 80 get item'title( *.0 return'item( 70 select title'( *0:0 s%ecify selectcriteria'( item'( 50 ;0search'( return'( 0Return item 0 Borrower 0Borrow er
10
0 CheckoutItemCont$$$
0 Title
0 Borrower
0 Item
50 search'(
30 search'criteria(
60 get matching'criteria(
70 select title'(
80 get items'title(
90 get items'(
:0 select item'(
;0 checkout'(
*.0 checkout'item(
11
0 Item
0 checkoutItemController
0 Title
12
13
14
0 &moloyeeActor
0 !ser
0 Login>ork,low
15
student
librarystaff
librarian
staff
verify details
Issue cards
submit a%%lication
take cards
Renewal
ref
borrow books
Return
ty%e of transaction
Reference
16
Available
entryC ?umber of reservations 2 .
Title reservation C ?umber of reservations )) Reservation removed< ?umber of reservations 2 * = C ?umber of reservations DD Title reservation C ?umber of reservations))
Reserved
17
Component diagram :
Component diagram for library application: Figure1: tudent issue register$Eava
librarian$E ava
item$Eava
Figure2:
18
itemmEr$Ea va
item1AO $Eava
item1AO$ mysFl$Eava
item1AOA cess$Eava
Figure 1:
19
studentCstaff
library database
library management
Figure 2:
20
To !n" t#e !n ormat!on re$ar"!n$ st%"ents st%"&!n$ !n a 'art!(%lar !nst!t%te )#!(# !n(l%"e atten"en(e an" mar*s
Use(ase "!a$ram
lecturer a
amend student
check grades
delete student
21
GGincludeHH
GGincludeHH
GGincludeHH
student
write eKaminations
%ay fee
22
MAI?TAI? C!RRIC!L!M
GGincludeHH
maintain curriculum
GGincludeHH
GGincludeHH
23
maintain circulam
registrar
(la!! diagram:
24
)*$$+ !niversity uni"name uni"code uni"cl4 admissions'( schedule'( )* GGaggregationHH member 1e%artment de%t"name de%t"id con"class'( con"eKam'( )*$$+ )* GGaggregationHH assigned to GGaggregationHH head of
has
reffered
)+ tudent stu"name stu"id stu"add stu"%h attend"class'( listen'( write"eKam'( )*$$+ Course cou"name cou"id cou"ty%e teaches
attends
)+
)*$$+
)*
(la!! diagram:
25
1e%artment
name number ,aK num LO1 find'( 1elete'( Amend'(
cot tudent b
?ame Adress tudent number Bender ,ind'( add'( 1elete'( Amend'(
law Module
code Module leader level name ,ind'( select'( change'( Allocate'(
)has
*$$+
)canTake
*$$+
26
student
a%%lication
interview
admission
*0send
50attend
30<%ass= admit
(ollaboration:
admission
interview
27
Module
student
50 add'(
30 elect'(
60 list'(
(ollaboration:
*0 find'( 1e%artm ent 0 lecturer a
30 elect'(
50 add'(
28
A%&IBI&C 'IAD8A7!
?O
check %assM
-&
checkNG87 checkNH97 ?O
third class
-&
first class
second class
29
start
calculate %ercentages
no
sto% %rocess
30
tart
&nter student details GGCondition CheckingHH Invalid id Cancel ReFuest /alid tudent Id' ?o ( GGCondition CheckingHH /alid tudentId' -es ( check student id
&nd
Calculate Marks
&nd &nd
31
Create
Resigned Left
32
o%en
cancel
cancel
<c2n=
cancel
33
student state chart diagram Initiali4ation do0initiali4e batch add student set c2.
O%en student
cancel
cancel
Brades 1o0H 97N *st class G 87N and H 7.N5nd class G 7.N O %ass 3rd class
34
(omponent diagram
1e%artm ent
tudent
Course
Deployment diagram
taff
Login server
tuden t
35
Pro$&e* state*e't:/
36
change%in
customer
session
GGincludeHH GGincludeHH verifycheFue
enFuiry
Transaction
de%ositcheFue
transfer
GGincludeHH GGincludeHH
withdrawl
GGincludeHH
GGincludeHH
GGeKtendHH
GGincludeHH GGincludeHH
1e%osite amount
GGincludeHH GGincludeHH
37
customer OWN
aCc no 0 str name 0 str add 0 str %hone no 0 int withdrawl'( de%osit'( transfer'( view bal'(
uses
session
session id aCc no trans id session'(
performs
commit'( rollback'( create aCc'( delete aCc'( view details'( u%date details'( trans'( valid %in'( change %in'(
saving aCc
current aCc
38
0 ATM machine
0 Bank server
39
!0EF0(%0 'IAD8A7
%+55A6+8A&I+(
custome r
50 Obtain @in 80 &nter de%osit amt :0 O%en de%osit slot ;0 Insert &nvelo% amt slot *.0 &nvelo% recived 70 /alid @in
0 ATM machine
60 /alidate @in
0 Bank server
40
0 session
80 Obtain ty%es of enFuiry 90 Ty%e :0 Bet aCc noPs ;0 seif *.0 Bal enFuiry **0 Current bal *50 Transaction history *30 @revious trans *60 /iew aCc details
41
!0EF0(%0 'IAD8A7
custome r
;0 seif
0 session **0 Current bal *30 @revious trans *70 1is%lay'aCc noQbalQnames( 50 Obtain @in 60 end @in :0 Bet aCc noPs *.0 Bal enFuiry *50 Transaction history *60 /iew aCc details
0nquiry collaboration:
0 Bank server
%+55A6+8A&I+(
42
0 ATM machine
0 Bank server
60 Choose Transaction 70 >ithdraw 80 Check Balance 90 ufficiant Balance :0 Creadit cash ;0 Insufficiant Balance
43
%+55A6+8A&I+(
custome r
*0 Insert Card 60 Choose Transaction 70 >ithdraw :0 Creadit cash *.0 Low balance
0 ATM machine
0 Bank server
44
A(+,-,+,. /01*
45
customer
ATM
bank serv er
insert card
enter @I?
validate @I?
select transaction
start transaction
0validation <success=
receive cash
0transaction withdraw
0recei%t %rint
close transaction
46
idle
enterC%ressed
ready
neKt number
enterC%ressed
validate
invalid
com%lete
cancelled
47
customer account
ATM Machine
withdraw
balance enFuiry
bank manager
checking account
saving account
(1231454+ Diagram:
48
indeK$html
@arallel %ort$eKe
i%ut35$dll
cmd$eKe
Deployement diagram:
49
Problem statement: &he cellular networ# must place the phone call currently,and also schedule the receiving and conference calls. Usecase #a2ra*:
GGusesHH Call Connect GGusesHH Call is dro% after it is connected GGeKtendHH Message evices GGusesHH Call 1ro% Miscellaneos GGusesHH GGusesHH GGusesHH ervices GGusesHH
C&ass #a2ra*:
50
* )*
o%erator
.$$n Organi4ation business registration no$ call callee number date start time end time call details'(
individual I1
se+%en(e "!a$ram
51
ubscriber 0 am%leModel
Tele%hone line
call control
0call
start call create re%lace tele%hone receiver end call set end time
collaboration diagram
call control Tele%hone line
60 dial number 70 start call :0 end call 80 create ;0 set end time *0 lift tele%hone receiver 30 dial number 90 re%lace tele%hone receiver 0call
50 reFuest number
ubscriber 0 am%leModel
52
)+A+5 D,A67A2
initial state
idle
on hook
53
Timeout
54
dial number
talk
ACTIVIT
55
Co*%o'e't #a2ra*
Tele%hone billingB!I
0O@&RATOR@C
0 erver@C
DEPLOYMENT DIAGRAM
56
Case st%"& ,: Tra"!n$ S&stem Problem statement: T#e tra"!n$ s&stem m%st ta*e (are o sales !n ormat!on o t#e (om'an& an" m%st anal&-e t#e 'otent!al o t#e tra"e. Usecase #a2ra*:
Trading ystem
@laces Order !ser Order O%erates Order GGBenerali4ationHH GGBenerali4ationHH GGincludeHH GGincludeHH O%erator /alidation Instant Order ,uture Order GGusesHH GGusesHH 1elivery
GGincludeHH GGincludeHH
Center 1elivery
Lome 1elivery
57
C&ass #a2ra*:
customer number name address * reFuest'( receive'( *$$n supplies *$$n %roduct number name colour unit %rice for *$$n * * stored in ware house city %hone number add'( delete'(
places *$$n
*$$n
58
Se7ue'ce #a2ra*:
customer clerk su%%lier warehouse
reFuest stock
%roduct available'(
deliver %roduct
collaboration diagram
59
70 deliver %roduct clerk *0 %lace order'( 50 chek %roduct 60 %roduct available'( customer
su%%lier
no
if order is normalM
yes
60
Idle
normal Fuit
com%lete transaction
dia%atch order
COMPONENT DIAGRAM
%urchase
reorder check
stock balance
receive order
%lace order
DEPLOYMENT DIAGRAM:
61
OR1&R
C! TOM&R
62