Beruflich Dokumente
Kultur Dokumente
SIMULATED COMPANY
1. Introduction
2. Problem Specification
In the existing system, that is the daily life application the industry or
company, where the company invests amount by taking loan, purchase machinery
and raw material, and recruit employees. The employees manufacture the
products, the produced products will be marketed and the profits and losses will
be calculated. Here some of the activities are performed manually; the limitation
is more time will be spent on some of the activities.
3.1 Requirements
RAM : 256 MB
Hard Disk : 20 GB
3. The system should generate reports for sales (Profits & Losses)
3.2 Analysis
1. Company owner
2
Simulated Company
2. Bank manager
3. Employee
4. Inventory manager
5. Sales manager
Use cases are:
1. Company owner request for loan
2. Bank manager check details, issue loan
3
Simulated Company
check details
request for loan
bank manager
sanction loan
give details
<<include>>
company owner
invest amount
manufacture products
purchase mechinery inventory manager
market products
givesalarytoemployees
sales manager
generate sales reports
<<include>>
The company owner requests for a loan to invest amount and give his details to the
bank manager. The bank manager checks out the details given by the company owner and
issue the loan. The company owner invest money and purchase machinery, and recruit
employees. Employees manufacture products. Inventory manager manage the products for
the market on demand. The sales manager markets that products and generate sales reports
and submit them to the company owner.
4
Simulated Company
3: fill application
4: check out application
5: sanction loan
7: invest amount
8: purchase machinery
9: recurit employees
The company owner requests for the loan. Bank manager give loan application form
to the company owner. Company owner fills the application and submit to the bank manager.
Bank manager checks out the loan application form and issue the loan. Company owner
invest amount, purchase machinery and recruit employees. Bank manager saves loan details
into the bank database.
5
Simulated Company
1: manufacture products
2: store products
3: manage products
4: market products
5: generate reports
6: send reports
Employees manufacture the products and store the products into the warehouse. The
inventory manager maintains the products in the warehouse. Sales manager markets products
and generate sales reports, submit those reports to company owner.
A collaboration diagram shows elements as they interact over time and how they are
related. Collaboration diagrams are especially useful for visualizing the impact of an
interaction on the various elements, because you can place an element on a diagram and
immediately see all the other elements with which it interacts. Collaboration diagrams are
made up of a number of elements, including class roles, specific objects, association roles,
and specific links.
6
Simulated Company
7: invest amount
8: purchase machinery
9: recurit employees
loan application
3: fill application form
: company owner
The company owner made a request for loan then the message flow is in between the
company owner and the bank manager. Bank manager checks the application and issue the
loan and save the loan details into the database. The company owner invests amount and
purchase machinery and recruit employees.
1: manufacture products
2: store products
:warehouse
: employee
3: manage products
4: market products
5: generate reports
:inventory
manager 6: send reports
:sales :company
manager owner
Employees manufacture products and store in the warehouse. The inventory manager
maintains products to market. The sales manager market those products and generate sales
reports submit reports to the company owner.
7
Simulated Company
Activity diagrams are very similar to a flowchart because you can model a workflow
from activity to activity. An activity diagram is basically a special case of a state machine in
which most of the states are activities and most of the transitions are implicitly triggered by
completion of the actions in the source activities.
c h e c k d e ta ils m a rk e t
a p p ly fo r lo a n
p ro d uc ts
[ no t o k ]
g ive d e ta ils g e ne ra te
s a le s re p o rts
[ ok ] a p p lic a tio n
is s u e lo a n re je c te d
s ub m it s a le s
re p o rts
inve s t
a m o un t m a na g e
p ro d u c ts
p urc ha s e
m a c hine ry
m a nufa c ture
re c ru it p ro d uc ts
e m p lo ye e s
The process is started by the company owner that is the initial state, company owner
apply for a loan and give his details. Bank manager checks the details, if the conditions
satisfied then issue loan. The company owner invest that amount and purchase machinery,
recruit employees. Employees manufacture products, inventory manager manage the
products and sales manager market those products, generate sales reports and submit those
reports to the company owner.
4. System Design
object models. Class diagrams contain classes and object diagrams contain objects,
but it is possible to mix classes and objects when dealing with various kinds of
metadata, so the separation is not rigid.
1. Company owner
2. Bank Manager
3. Loan Application Form
4. Employees
5. Warehouse
6. Inventory manager
7. Sales manager
8. Bank database
Identifying attributes:
1. Company owner: name, address
2. Bank manager: name, designation
5. Warehouse: location
6. Inventory manager: id, name
7. Sales manager: id, name
Identifying Operations
Company owner
apply for loan
fill application
purchase machinery
9
Simulated Company
recruit employees
receive sales reports
Bank manager
check out application
issue loan
Employees
manufacture products
store products
Warehouse
store products
Inventory manager
manage products
Sales manager
market products
generate sales reports
send sales reports
Bank database
save load details
Identifying relationships
Association
10
Simulated Company
salesManager LoanApplicationForm
id : String loanno : String
name : String loanname : String
loanamout : number
marketproducts() loandate : date
generatesalesreports()
sendsalesreports() LoanApplicationForm()
salesManager()
1 1..*
CompanyOwner 1
name : String 1
BankManager
address : String name : String
inventorymanager designation : String
applyforloan()
id : String fillapplication()
name : String checkoutloanapplication()
purchasemachinery()
sanctionloan()
recruitemployee()
manageproducts() BankManager()
receivesalesreports()
inventorymanager() CompanyOwner()
1..*
BankDatabase
Employees
name : String
eid : String
warehouse ename : String saveloandetails()
location : String designation : String BankDatabase()
address : String
storeproducts()
warehouse() manufactureProducts()
storeproducts()
Employees()
State chart diagrams model the dynamic behavior of individual classes or any other
kind of object. They show the sequences of states that an object goes through, the events that
cause a transition from one state to another and the actions that result from a state change.
Each state represents a named condition during the life of an object during which it satisfies
some condition or waits for some event. A state chart diagram typically contains one start
state and multiple end states. Transitions connect the various states on the diagram. As with
activity diagrams, decisions, synchronizations, and activities may also appear on state chart
diagrams.
11
Simulated Company
applying
for loan
processing
loan request
invest
money
purchasing
machines
recruiting
employees
manufacturing
products
inventory
control
marketing
The initial state is applying for a loan, and next state is processing loan application,
and the next states entered are investing amount, purchasing machinery, and recruiting
employees. The next state is manufacturing products and storing products in the warehouse.
The inventory manager maintains products so the next state is inventory control. The final
state is marketing the product that is done by the sales manager.
12
Simulated Company
employees sales
manager
inventory warehouse
manager
Company owner depends upon the bank manager and employees. Bank manager
depends on the bank database. Warehouse depends on the employees. The inventory
manager depends on the warehouse. Sales manager depends on the warehouse to market the
products.
company bank
bank
database
5. Coding
13
Simulated Company
/**
* @roseuid 4B0CFD75002F
*/
public CompanyOwner()
/**
* @roseuid 4AF006000144
*/
14
Simulated Company
/**
* @roseuid 4AF0071A008F
*/
/**
* @roseuid 4AF0060701CD
*/
/**
* @roseuid 4AF0060F0061
*/
/**
* @roseuid 4AF0061403AA
*/
/**
* @roseuid 4AFA7F2701F7
*/
public LoanApplicationForm()
/**
* @roseuid 4B0CFD7500DA
*/
public BankManager()
/**
* @return boolean
* @roseuid 4AF006F10132
*/
return true;
/**
* @roseuid 4AF006FC03B1
*/
}
17
Simulated Company
/**
* @roseuid 4B0CFD75008C
*/
public BankDatabase()
/**
* @roseuid 4AF008C20216
*/
18
Simulated Company
class Employees
/**
* @roseuid 4B0CFD74036B
*/
public Employees()
/**
* @roseuid 4AF006A203C2
*/
/**
* @roseuid 4AF0076D0371
19
Simulated Company
*/
/**
* @roseuid 4B0CFD7403B9
*/
public salesManager()
/**
* @roseuid 4AF007C10376
*/
20
Simulated Company
/**
* @roseuid 4AF007C700E5
*/
/**
* @roseuid 4AF007D000D4
*/
/**
21
Simulated Company
* @roseuid 4B0CFD7402CF
*/
public warehouse()
/**
* @roseuid 4AF0075F022B
*/
6. Conclusion
The simulated company is that provides all the features as in the real time application
and all the requirements are fulfilled. The simulated company calculates the performance of
the company based upon the productivity and sales and it generates the reports. Based on the
reports further development will be continued. Simulated company is easily understandable
to the users.
22
Simulated Company
7. Bibliography
Web Reference
1. www.omg.org
2. www.ibm.com/rational
3. www.google.com
4. http://sourceforge.net/projects/
23
Simulated Company
5. http://www.onesmartclick.com/programming/case-studies.html
24