Documente Academic
Documente Profesional
Documente Cultură
PROCEDURE
1
Title
Bar
Menu
Bar
Tool
Bar
Browser
Specification
Window
2
Click on UseCase View >Main
1. From the menu bar select Tool > Create > UseCase
2. Select the Actor from the Toolbox and place it into the Use
CaseDiagram
3. Right click on the Actor to see the pop-up menu, and then select
Open Specificationmenu
4. Select the Use Case from the Toolbox and place it into the User
Case Diagram
3
5. Right click on the User case to change the name toHelloUML
HelloUML
Actor
hitenter
5
thisoperation method to Document textbox
6
Hello
message : String = "Hello
UML"
getName() Hello()
7
Step 5. Object Instantiation
1. Select the dash line icon (Dependency orinstaintiates)
2. Draw the line starting from the Test to Hello to make an
object instantiation
8
Step 6. Code Generation
1. From the menu bar, select Tools > Java/J2EE >
ProjectSpecification.
2. Double-click on the last one of the Classpaths as shown in the
following diagram.
3. Click
on the
button
with
three
dots to
see a
dialogbox.
4. ChooseDirectory.
9
10
5. Select the class diagrams, Test and Hello by left clicking on
Test first and hold down Ctrl key and left click on
Helloclass.
6. From the menu bar, select Tools> Java/J2EE> Generate
Code. Choose your working directory and clickOK.
The following warning message from the dialog box and Log windows is OK
for the time being:
11
20:47:43| WARNING: Class Logical View::Test - no return type has
been specified for operation main - default will be used
/**
* @roseuid 3C4762C801C8*/
*/
public Hello()
{
}
/**
* @returnString
* @roseuid3C4762A1029E
*/
public String getName()
{
return null;
}
}
/**
* @roseuid 3C47635B0350
*/
12
public Test()
{
}
/**
* @roseuid 3C476355017B
*/
public void main()
{
}
}
7. main() is not static method in the generated codes. To change the
method to static type: Right click on the class, Test, the dialog box
will appear. Click on Operations tab. Double click on main method
and another dialog box will appear. Click on java tab and the
following dialog box will appear. Click on Edit Setbutton.
8. Create a new set static by cloning. Type in the name static in the
following dialogbox.
13
9. Change static to betrue.
14
//Source file: E:\\lwinmoe\\lab1\\Hello.java
public class Hello
{
private String message = "HelloUML";
/**
* @roseuid 3C47663F006F
*/
public Hello()
{
}
/**
* @returnString
* @roseuid3C47663A025C
*/
}
}
/**
* @roseuid 3C4766960237
*/
public Test()
{
}
/**
* @return Void
* @roseuid 3C4766930387
*/
public static void main(String[] args)
15
{
Hello h = new Hello(); // instantiate a Hello object called h
System.out.println(h.getName()); // call getName() method from Hello
object
// h
}
}
Step 8. Compiling and Running Java Program from Command Line
VIVA QUESTIONS:-
16
5) eRequirements
2. What is UML?
Static/Structural Diagrams:
1) Class Diagram
2) Component Diagram
3) Object Diagram
4) Package Diagram
5) Deployment Diagram
Dynamic/Behavioral Diagrams:
1) Activity Diagram
2) State Machine Diagram
3) Use Case Diagram
4) Sequence Diagram
5) Communication Diagram
17
UML & DP Lab Manual Page No.: 18
4. What are the different views that are considered when building an object-
oriented software system?
Ans: Normally there are 5 views.
1. Problem Statement:
The goal of this project is to establish the requirements for a new library
Management system.
2. Identification of Actors:
Actor Definition:
An Actor is anything that interacts with the use case: human user,
external hardware or another system.
Graphical Representation:
<<Actor>>
<<Actor>>
Customer
Customer
4. Who will supply the system with this information & uses the information &
removes the information?
Definition:
Use case model defines the outside (actors) and inside (use case) of the
systems behavior.
Use cases are initiated by actors and describe flow of events that these actors
set off.
Graphical Representation:
Process
1.
Borrow Books
This use case allows the member to borrow books from the library.
2.
Return Books
3.
This use case allows the member to provide the books which are not available
in the library.
4.
This use case allows the member to check the limit of books and also the due.
5.
Do Research
6.
Purchase Supplier
7.
This use case allows the member to read books and newspapers in the library.
Definition:
Relation ships:
Use cases diagram consists of Actors, use cases and relation ships
to connect the actors and use cases. The relation ships are
Dependency:
Figure (
Association:
0...1 *
Employer Employee
Generalization:
Extends:
The extends association is used when you have one use case that is
similar to another use case but does a bit more or is more specialized in
essence, it is like a subclass.
Includes:
The includes use case extracts the common sub flow and make it a
use case of its own.
accession
supplier
issues
member
enquiries
LMS_DB
Not login()
return()
book catalog
outers
reenquiry
member catalog
returns
5. Acitivity Diagram:
Definition:
Activity:
Wait state State during which there is no internal activity by the object
and the object is waiting for some external event to occur.
2. Transition:
Parts of transition:
Source state
Event trigger
Guard condition
Action
Target state
Source state - state affected by the transition; changes when event and
guard condition satisfied.
Event trigger Event whose reception by the object in source state makes
transition eligible to fire, guard condition satisfied.
Target state state that is active after the completion of the transition.
Synchronization:
Forking
A fork represents the splitting of a single flow of control into two or more
concurrent flows of control.
A fork may have one incoming transition and two or more outgoing
transitions, each of which represents an independent flow of control.
Joining
A join may have two or more incoming transitions and one outgoing
transition.
Guard Condition:
Start state:
End state:
Swim Lanes
The activity diagram divided into groups, each group representing the
business organization responsible for those activities.
Each group is called a swim lane.
Each group is divided from its neighbor by a vertical solid line.
MEMBER LIBRIAN
N pay cash
borrow book
inter lib loan
Y section
N N
check f or book in
do research
do research
Y done
N checkout
books
do news read news papers Y
Y
N
member librarian
[ if no ] pay cash
[ if yes ] / do research
do research do
researc...
[ if no ]
[ if no ]
[ if no ]
Concept class
Event class
Organization class
People class
Places class
Tangible things and devices class
implicit or taken from general knowledge. Here we divide the classes into 3
categories:
Relevant classes,
fuzzy classes,
irrelevant classes.
Redundant Classes:
Do not keep two classes that express the same information if more
than one word is used to describe the same idea select the one that is the more
meaningful in the context of the system.
Adjective Classes:
Attribute Classes:
Irrelevant Classes:
Each class must have a purpose and every class should be clearly
defined and necessary. You must formulate a statement of purpose for each
candidate class. If you cannot come up with a statement of purpose, simply
eliminate the candidate class.
Account number
Password
Library card
Student
Staff
Member
Visitor
Due
Login
Supplier
Library system
Card
Transaction
Books
Books catalogue
Reference books
Amount
Due date
Loan
Librarian
Account
Account holder
Magazines
Administrator
Approval process
Account number
Password
Library card
Student
Staff
Member
Visitor
Due
Login
Supplier
Library system
Card
Transaction
Books
Books catalogue
Reference books
Amount
Due date
Loan
Librarian
Account
Account holder
Magazines
Administrator
Approval process
System
Account number
Library card
Student
Staff
Member
Due
Login
Supplier
Card
Books
Books catalogue
Amount
Due date
Librarian
Account
Administrator
Approval process
Account number
Library card
Student
Staff
Member
Due
Login
Supplier
Books
Amount
Due date
Librarian
Account
Class purpose
Definition:
Representation:
borrow borrow
(from Use Case View)
do research
do research
(from Use Case View)
read read
(from Use Case View)
return return
(from Use Case View)
Object Messages
Lifeline
Self Delegation.
2: select
3: check status
4: book available
5: request book
: books
: member
1: login
2: select book
3: request book
: books
: librarian
: supplier
1: give details of the book
2: request books
3: supply books
: books
: member
1: login
2: check status
3: book available
: library card
: books
: member : librarian
1: return book
2: check card
3: due
4: calculate due
6: pay amount
7: change status
Represents
Numbering Scheme
Collaboration Vs Sequence:
Sequence Vs Collaboration:
The sequence diagram contains object life line and focus of control which is
not present in collaboration diagram.
: books
10: change book status
1: login()
2: select
5: request book 3: check status
: library 6: request library card
card
: member
: books
4: takebook and do research
1: login
2: select book
3: request book
: member
3: supply books
: librarian : supplier
: books
1: login
2: check status
3: book available
: member
4: calculate due
1: return book
6: pay amount
: member
7: change status
3: due
2: check card
: library
card
: books
Attributes:
Here are the guidelines for identifying attributes of classes in use cases
Definition:
Shows sequence of states that an object goes through during its life time in
response to outside stimuli and messages.
Representation:
Parts of a State:
Name
Definition
librarian
(from analysis model)
1
1 issue book()
receive due() 1
update database()
1 1 library card
(from analysis model)
1..n account no
supplier books status
(from analysis model)
comp name
1
supply books()
library member
(from analysis model)
name
id
address books
1..n
acc no
(from analysis model)
1..n 1..n ISBN no
login ()
req book() publisher
renewal () version
pay due() author
title
student staff
(from analysis model) (from analysis model)
year dept
branch designation
Receipt
Generation
Validation LMS_DB
Member
Catalog
BooK
Catalog
Issues Returns Fine
Collection
validation
Library card
Scanner
fine
collection
VIVA QUESTIONS:-
Ans: A use case specifies the behavior of a system or a part of a system, these
are used to capture the behavior that need to be developed. It involves the
interaction of actors and the system.
1. PROBLEM STATEMENT
The user searches for the book online, selects it and approves the
purchase of the book. The approval of the purchase is done as follows. The
online bookshop takes the credit card number provide by the user and also the
address of the user. If the credit card is known to be valid the online bookshop
approves the purchase and that book is marked as purchased in the database.
2. IDENTIFICATION OF ACTORS
ACTOR:
An actor is anything that interacts with a use case: human user, external
hardware, or another system. The term actor represents the role a user plays
with respect to the system. Actors can be the one that get value from the use
case or just participate in the use case.
Fig
<<actor>> 1:
<<Actor>>
Customer NewClass
Customer
Representation of actor
You have to identify the actors and understand how they will use and
interact with the system. Candidates for actors can be found through the
answers to the following questions:
Administrator:
administrator
(from actors)
Customer:
He interacts with the system to purchase the books. Logs in by entering the
user id and password. Chooses the books of interest and pays the required
amount.
CUSTOMER
(from Actors)
It is associated with the ordering use case. It validates the credit card of the
user and then performs the required transaction
(From actors)
Click to dial:
Interacts with the customer for providing the required information in case the
customer requires any details
CLICK TO DIAL
(From actors)
Use case:
Graphical Depiction:
NewUseCase
For each actor, find the tasks and functions that the actor should be able
to perform or that the system needs the actor to perform. The use case
should represent a course of events that leads to a clear goal.
Name the use cases.
Describe the use cases briefly by applying terms with which the user is
familiar. This makes the description less ambiguous.
Use case names should provide a general description of the use case
function. The name should express what happens when an instance of the use
case is performed. The description of the use case should be descriptive and
consistent.
LOGIN
(f rom Usecases)
Description:
The customer enters the user id and password and enters into his account if
they are valid.
registration
(from registration)
Description:
This use case provides the user with a registration form for the customer to get
registered. It then gives the customer a user id and password for further logins.
It also creates a user account for the customer.
search books
(from searching books)
Description:
The customer searches his books of interest through various search options
available.
select books
(from selecting books)
Description:
The customer after searching the books of interest selects the books to be
ordered and places them in a cart.
order
(from ordering)
Description:
The customer confirms the selected books and gives the number of copies
required. He also confirms the mode of payment of the currency.
click to dial
(from click to dial)
Description:
4. FLOW OF EVENTS
View cart
Check out
Search a book
3. Customer can choose the subjects of his interest, and u can get books found
on search.
4. U can select books and add the books to cart then u will get message that
books added to the cart successfully.
5. Perform check out option. Customer is provided with information about title
of the book, author, quantity, price, discount and totals.
Credit card
Online banking
Alternative Flows
In the basic flow, if the system doesnt find the book the customer
requests for, the system displays a message specifying the in availability of
book and requests the customer to give details of book in a special column and
assures the presence of the book in a catalogue if the book is available outside.
The system intimates the customer about the insufficient balance in the
credit card through a message and requests customer to check the balance.
3. Special requirements
None
4. Preconditions
None
5. Post conditions
None
6. Extension points.
None
cases, and generalizations among the use cases. A use case diagram shows the
relationship among the actors and use cases within system. The following 3
relationships are shown in a use case diagram:
registration
(from registration)
administrator
login
(from actors)
(from loging in)
select books
(from selecting books)
credit card
check system
(from actors)
order
(from ordering)
Extends: The extends relationship is used when you have one use case that is
similar to another use case but does a bit more. In essence, it is like a
subclass.
incoming arrows and two or more outgoing arrows, each labeled by a distinct
guard condition. All possible outcomes should appear on one of the outgoing
transitions.
You can attach activity diagrams to most model elements in the use case
or logical views. Activity diagrams cannot reside within the component view.
Naming
The name of an activity must be unique and should declare the activitys
purpose. All activity icons with the same name on an activity diagram
represent the same activity.
Activities
Decisions
End State
Object
Object Flow
Start State
States
Swim lanes
NewActivity
Synchronizations
Transitions
The activity icon appears as a rectangle with rounded ends with a name
(Take Order and Process Order) and a compartment for actions:
Activity:
Object:
An object has state, behavior, and identity. The structure
and behavior of similar objects are defined in their common class. Each object
in a diagram indicates some instance of a class. An object that is not named is
referred to as a class instance.
Object flow:
It is useful to see the relationships between an operation and the objects
that are its argument values or results. The input to and outputs from an
operation may be shown as an object flow state.
State:
Is a condition/situation during the life of an object during which it
satisfies some condition, performs some activity, or waits for some event .
Transition:
End State:
An end state represents a final or terminal state on an
activity diagram or state chart diagram. Place an end state when
you want to explicitly show the end of a workflow on an activity diagram or the
end of a state chart diagram.
The end state icon is a filled circle inside a slightly larger unfilled circle
that may contain a name (End Process):
Start State:
A start state (also called an "initial state") explicitly shows the beginning
of a workflow on an activity diagram or the beginning of the execution of a state
machine on a state chart diagram. You can have only one start state for each
state machine because each workflow/execution of a state machine begins in
the same place. The start state icon is a small, filled circle that may contain a
name (Begin Process):
Swim lanes
Swim lanes are very similar to an object because they provide a way to
tell who is performing a certain role. Swim lanes only appear on activity
diagrams. You should place activities within swim lanes to determine which
unit is responsible for carrying out the specific activity.When a swim lane is
dragged onto an activity diagram, it becomes a swim lane view.
Synchronizations
Registration
Login
[ No ]
entry/ enter user id and pwd
do/ verify user id and pwd
verify pwd
[ Yes ]
Searching books
validate order
do/ validate the customer
exit/ valid user
selecting books
do/ select books
Click to dial
confirm order
entry/ payment complete
do/ confirms order
book delivery
do/ deliver the book
The use case driven approach is the third approach. Use cases are employed to
model the scenarios. The scenarios are described in text or through a sequence
of steps. Modeling with use cases is a recommended aid in finding the objects
of a system and s the technique used b the unified approach. Once the system
has been described in terms of its scenarios, the modeler can examine the
textual description or steps of each scenario to determine what objects are
needed for the scenario to occur.
The initials study of the use cases of the scheduling tool produces the
following phrases: The classes identified in our system are
Books
Credit card
Demand draft
User Id
Password
Cart
Invalid Password
Valid password
Registration
Price
Discount
Total Amount
Customer
Administrator
Order
Help
Customer Care
Publishers
Payment
Payment Mode
Approval Process
Amount
Authors
Book name
Registration
Books
Credit card
Demand draft
User Id
Password
Cart
Invalid Password
Valid password
Customer
Administrator
Order
Help
Customer Care
Publishers
Payment
Payment Mode
Approval Process
Amount
Authors
Book name
Valid Password
Click to Dial
System
Price
Discount
Total Amount
Transaction id
Realization:
Collaboration realizes an operation or a use case. It describes the context
in which the implementation of an operation or a use case executes- that is,
the arrangement of objects and links that exists when the execution begins,
and the instances that are created are destroyed during execution. The
behavior sequences may be specified in interactions, shown as sequence
diagrams or collaboration diagrams.
Collaboration may also realize the implementation of a class.
Collaboration for a class is the union of the collaborations for its operations..
Realization is displayed as dashed arrows with a closed hallow arrow head.
In our system we identify the following realizations.
registration registration
(from registration)
login login
(from loging in)
order order
(from ordering)
The sequence diagram is very simple and has immediate visual appeal---
this is its great strength. A sequence diagram is an alternative way to
understand the overall flow of control of a program.
Object: An object has state, behavior and identity. The structure and
behavior of similar objects are defined in their common class. Each object in a
Sequence diagrams
Sequence diagram for login:
: login
:
:customer administrator
1: enter the id pwd
3: id pwd OK
: : registration : login
: customer
administrator
1: requests for registration
2: requests for registration form
9: Registration acknowledged
: customer
: customer
care
2: enter details
4: asks a query
1. Flat Sequence
2. Decimal Sequence
The disadvantage of interaction diagrams is that they are great only for
representing a single sequential process; they begin to break down when you
want to represent conditional looping behavior. However, conditional behavior
can be represented n sequence or collaboration diagrams for each scenario.
: customer
: login : administrator
2: verifies id and pwd
3: id pwd OK
: login
: administrator
select :
transaction
: customer care
6: confirms selection
: customer select :
transaction
5: requests for the confirmation of selection
2: id and pwd OK
4: selects the book 8: go for ordering the books
: order
search :
transaction
: customer
4: gives no of copies
Difference
between sequence and collaboration:
Attribute:
For our system the attributes for each class are as follows:
14. Analyzing the object behavior by constructing UML state chart diagram
registration login
do/ creates a user profile do/ enter user id and pwd
do/ provides user id and pwd
entry/ open home page
search
entry/ valid user
do/ provide book list
order
select
do/ provides payment options
do/ verifies the credit do/ place selected books in cart
do/ provides transaction id
The UML class diagram, also referred to as object modeling, is the main
static analysis diagram. These diagrams show the static structure of the model.
A class diagram a collection of static modeling elements, such as classes and
their relationships, connected as graph to each other and to their contents.
Class diagram do not show temporal information, which is required in dynamic
modeling.
registration
(from analysis model)
administrator login
1 (from analysis model)
(from analysis model)
user id
name
1 password
adm id 1 1
validates the id and pwd()
1 customer
1
(from analysis model) 1
1 name
user id
password
user account
searches books()
selectis books() n
order 1
(from analysis model) orders books() customer care
contacts the customer care() 1 (from analysis model)
amount 0..n
payment mode 1 phone number
no of copies location
1..n
transaction
(from analysis model)
transaction type
amount
transaction id
transaction date n time
registration
(from analysis model)
administrator login
1 (from analysis model)
(from analysis model)
user id : string
name : string
1 1 password : string
adm id : string 1
validates the id and pwd()
1 customer
1
(from analysis model) 1
1 name : string
user id : string
password : string
user account : integer
searches books()
selectis books() n
order 1
(from analysis model) orders books() customer care
0..n contacts the customer care() 1 (from analysis model)
amount : currency
payment mode : string 1 phone number"integer
no of copies : integer location : string
1..n
transaction
(from analysis model)
transaction type : string
amount : currency
transaction id : string
transaction date n time : date
registration
customer bookshop
staff
After studying the component packages defined for the problem, examining
existing hardware and estimating the load on the system during the online
bookshop, we decided that we will need four processors for the system-one to
handle customer registration, one for the database, and two for bookshop staff.
Regist Datab
ration ...
credit
books c...
hop
controller pattern
VIVA QUESTIONS:-
or transitive. That is, the 'whole' may take direct responsibility for creating
or destroying the 'part', or it may accept an already created part, and later
pass it on to some other whole that assumes responsibility for it.
Encapsulated
object-oriented
reusable
1. Problem statement
E-seva is the online payments. In the e-seva there are many types of
online bill payments (electric bill, phone bill etc).and there is an online ticket
reservation system. The electronic bill presentment & payment application
(EBPP) is a web based application which helps billers and their customers
settle their transitions online.
Briefly speaking billers and issue bills (e-bill) Online and send them to
their customers electronically. The users can select to view and pay their e-bills
in multiple languages. The system will also keep tractions history between
billers and customers. EBPP system should be reasonably accessible to
potential user. And online ticket reservation system. Railways wishes to
develop a ticketing and reservation system .this must support advance booking
of the tickets, cancellation of tickets and change of class of a ticket. The system
will also have a web interface where their user can register themselves and
purchase ticket online... The system will also have a querying facility that
allows user to check train time tables, Fares and availability of tickets.
2. IDENTIFICATION OF ACTORS
Actors represent system users. They help delimit the system and give a clear
picture of what the system should do. It is important to note that an actor
interacts with, but has no control over the use cases.
3. Is external to the system and has no control over the use cases
Actor diagrams
4. Who will supply the system with the information, use this information and
remove this information?
Actors:
Customer: The person who utilizes the services provided by this application.
Operator: The person who interacts with the computer. He receives the payments
from the customers and gives receipts to them.
DBA: The person who maintains the data-base.
In its simplest form a use case can be described as a specific way of using
the system from a users perspective.
A more detailed description might characterize a use case as:
Use cases are the best discovered by examining the actors and defining
what the actor will be able to do with the system. Since all needs of a system
typically cannot be covered in one use case, it is usual to have a collection of
use cases. Together this use case collection specifies all ways of using the
system.
Login
Error: Reference source not found
NewUseCase
2. Will any actor create, store, change, remove, or read information in the
system?
3. What use cases will store, change, remove or read this information?
4. Will any actor need to inform the system abiut sudden external changes?
5. Does any actor need to perform about certain occurances in the system?
Pay bills: This application is used for paying the bills like electricity bill,
house tax etc.
Booking movie tickets: we can purchase the movie tickets by using this
application.
Providing applications: It is used for getting the application forms.
Issuing certificates: One can take the birth and death certificates by using
this application.
APSRTC reservations: one can reserve the bus tickets.
Licenses: issuing trade licenses and vehicle licenses.
Login: allowing the operator to access the data-base.
Maintaining database: the purpose is to maintain the database consistently.
1. Paying bills
This use-case allows a customer to pay the bills viz. Electricity bill,
telephone bill etc .The customer should provide the respective bill to the
operator. He will enter the details needed for this transaction. Finally the
receipt will be issued to the customer by the operator.
2. Flow of events
1. The customer enquiries the receptionist about the counter for paying
bills.
2. He provides the bill or bill number to the operator.
3. The operator checks for the amount that customer has to pay.
The customer pays the amount to the operator and he enters it in respective
column.
4. Flow of Events
Registering Biller
The Unregistered User chooses the appropriate link to bring him to the Biller
Registration page.
The Unregistered User is then given fields in which to fill in the appropriate
Biller information.
When the Unregistered User submits his information, the system verifies the
correctness of the information.
Registering Customer
The Unregistered User chooses the appropriate link to bring him to the
Customer Registration page.
The Unregistered User is then given fields in which to fill in the appropriate
Customer information.
When the Unregistered User submits his information, the system verifies the
correctness of the information.
Alternative Flows
If the information is correct, the system will then interact with the MySQL
database to create the account. If the MySQL database interaction is
successful, the user is then notified of the successful creation of his account. If
the MySQL database interaction is not successful, an error message is sent to
the Administrator and the user is notified of this error and asked to retry again
later.
If the information is incorrect, the system returns the Unregistered User to the
Biller Registration page and notifies him of the error. The user can then re-
enter his information, or exit the system.
Preconditions
Post conditions
Use case (system boundaries identifying what the system should do)
Extends association
Includes association
telephone bill
house tax
water tax
electricity bill
login maintaining
pay bills
(from use ca...
database
(from use ca... (from use ca...
movie tickets
(from use ca...
consume
operator
r dba
(from actors)
...) (from actors)
...)
bus reservations (from actors)
...)
birth
death (from use ca...
certificates
competetive
passport
(from use ca...
exams
applications
(from use ca...
<<include>>
Regester Customer
<<include>>
Issue Bill Enter e-bill
information
Biller
<<include>>
Update Trancation
MySql
<<include>>
Verify Customer
information
cancel Issue
e-bill screen
Payment engine
<<include>>
Enter Payment
Information
UpDate Trancation
Information
6 Activity diagram
The following tools are used on the activity diagram toolbox to model
activity diagrams.
Activity Diagram:
login
password accepted
select type of service
from menu
service selected
perform the
service
no more services
exit from the
service menu
Activity Diagram:-
Out of these, the noun phrase is used to identify the classes to increase
our understanding of the subject.
Bills
Movie tickets
Application forms
Certificates
Log-in id
Password
Operator
Customer
Client
Database
Transaction
Bill number
Receipt
APSRTC Reservations
Licenses
System
Computer
Reservations
Amount
Vehicle number
Dba
Bus number
Seat number
Telephone number
APSRTC
Service charge
Tax
Vehicle
Bus
Movie
Dialog box
Box
Time
Information
Number
Money
Fare
Place
Birth date
Death date
Date
Bills
Movie tickets
Application forms
Certificates
Log-in id
Password
Operator
Customer
Client
Database
Transaction
Bill number
Receipt
APSRTC Reservations
Licenses
Reservations
Amount
Vehicle number
Dba
Bus number
Seat number
Telephone number
APSRTC
Service charge
Tax
Vehicle
Bus
Movie
Dialog box
Box
Time
Information
Number
Money
Fare
Birth date
Death date
Date
Here the several classes appear more than once. Hence we eliminate the
redundant classes
Bills
Movie tickets
Application forms
Certificates
Log-in id
Password
Operator
Customer
Client
Database
Transaction
Bill number
Receipt
APSRTC Reservations
Licenses
Reservations
Amount
Vehicle number
Dba
Bus number
Seat number
Telephone number
APSRTC
Service charge
Tax
Vehicle
Bus
Movie
Dialog box
Box
Time
Information
Number
Money
Fare
Place
Birth date
Death date
Date
Movie tickets
Application forms
Certificates
Log-in id
Password
Operator
Customer
Client
Database
Transaction
Bill number
Receipt
APSRTC Reservations
Licenses
Reservations
Amount
Vehicle number
Dba
Bus number
Seat number
Telephone number
APSRTC
Service charge
Vehicle
Bus
Movie
Dialog box
Box
Time
Information
Number
Money
Fare
Place
Birth date
Death date
Date
Operator
Customer
Application
Bill
Certificate
License
Reservation
Movie tickets
CLASSES RESPONSIBILITIES
Bus
Reservations Reserves the bus tickets by giving the details to the operator
Figures:
application applications
(from Usecases)
certificates certificates
(from Usecases)
licenses licenses
(from Usecases)
login login
(from Usecases)
system
: consumer : operator
1: requests for a ticket
4: not available
6: valid
: consumer
4: not available
6: valid
11: issues the ticket : operator
idle state
login
per form
transaction
update
transaction
log out
#cname: string
#servicetype: string
#id: string
#password: string
#billno: string
#amount: float
#fine: string
#date: Date
#vehicleno: string
#sercharge: string
#cname: string
#name: string
#fname: string
#mname: string
#place: string
#date: Date
#type: string
#sercharge: number
#busno: string
#seatno: string
#source: string
#destination: string
#seatno: string
#sercharge: number
#show: number
#tname: name
+provide data ()
#receive receipt ()
+login ()
#update ()
+paybill ()
#receipt ()
+getdetails ()
+provide licenses ()
+get details ()
# receipt ()
+provide applications ()
+get data ()
+restickets ()
+get ticket ()
+get details ()
customer
(from Use Case View)
cname:string
servicetype:string
certificate
provide data()
(from Use Case View)
receive receipt() licence
name:string (from Use Case View)
fname:string 1,n vehicleno:string
mname:string
sercharge:number
place:string interacts cname:string
date:string
1,n
... get details()
get details() OPERATOR ...
provide licenses()
receipt() (from Use Case View)
1,n id:string 1,n
issues issues
password:string
1 1
reservation
bill login() (from Use Case View)
(from Use Case View) update() busno:string
billno:string 1 seatno:striing
amount:string give out reserve source:string
fine:string destination:string
date:Date 1,n 1,n
get data()
pay bill() resticket()
reciept() get ticket()
movie ticket
(from Use Case View)
application
seatno:string (from Use Case View)
sercharge:string reserve provide type:string
show:string
1,n sercharge:number
tname:string 1,n
provide app()
get details()
bookmovietickets()
Component diagrams are created to show components that are the physical
implementation of the system. The component diagram shows the organization
and dependencies among a set of components of the system. The UML notation
for a component is as shown below:
Component
Customer Maintain
Bills Data base
DATA BASE
ADMINISTRATOR(DBA)
Registration
Customer
BILL_PRINTING_
Login SYSTEM
Administrator
VIVA QUESTIONS:-
SystemStatus
Operator/Teller
ChangePIN Login
BankComputer
Transaction
Customer
<<include>> <<include>>
<<include>>
<<include>>
<<include>>
AccountType
Savings Current
operator : ATMcomputer :
bankcom puter :
ATM-Sys tem ATM-Sys tem
BankComputer
s witch-on
perform s tartup()
operator : ATMcomputer :
bankcomputer :
ATM-System BankClient
BankComputer
changes done
system shutdown
turn off
Withdrawal:
card verified
PIN entered
PIN verified
valid us er
current/s avings
check banace
checking bal
withdrawal
am ount entered
Amount out
Save changes
Card out
Deposit:
Transfer:
insert card
verify the card
card verified
verification successful
current/savings
Transfer
Amount entered
Detailes entered
changes saved
CheckBalance:
PIN entered
verify the PIN
PIN verified
valid user
enter the type of account
current/s avings
check balance
checking balance
card out
MiniStatement:
PIN entered
verify the PIN
PIN verified
valid user
enter the type of account
current/savings
MiniStatem ent
Las t 15 transactions
card out
insert card
enter PIN
get money
take receipt
SystemStartup:
2: perform startup()
1: switch-on
3: install the cash
operator : ATMcomputer :
ATM-System ATM-System
6: cash installed
bankcomputer :
BankComputer
SystemShutDown:
2: saving performed
bankcomputer :
BankComputer
Withdrawal:
3: card verified
8: PIN verified
bankcomputer :
BankComputer
Deposit:
3: card verified
8: PIN verified
bankcomputer :
BankComputer
CheckBal:
3: card verified
8: PIN verified
bankcomputer :
BankComputer
Transfer:
3: card verified
8: PIN verified
bankcomputer :
BankComputer
MiniStstement:
Customer wants to
another transaction transaction Choosen
Performing
transaction
Transaction Finished
Aborted due to
many PINs
Ejecting
CARD
BankSystem
BankClient
first name
last name ATM-System
PIN address
card number state
Address interface
check password()
1
CurrentAccount SavingsAccount
Component Diagram:
BankCo
mputer
Client ATM-Syst
em
Account Transacti
on
CurrentAc Savings
count Account
Deplaoyment Diagram
BankComputer
<<extends>> <<extends>>