0% found this document useful (0 votes)
35 views7 pages

HW 3 Report

The document describes a computer simulation of a company that sells solar products. The simulation includes components like Main, Company, Person, and different solar products. Main combines all the components and tracks the total number of customers. Company represents the business and has parameters for initial capital and monthly expenses. Person models customers who come to the company with randomized demand and product preferences. Each solar product has parameters for requirements, price, cost, and production time. The simulation uses random variables to model customer demand and product choice.

Uploaded by

mogfis40
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views7 pages

HW 3 Report

The document describes a computer simulation of a company that sells solar products. The simulation includes components like Main, Company, Person, and different solar products. Main combines all the components and tracks the total number of customers. Company represents the business and has parameters for initial capital and monthly expenses. Person models customers who come to the company with randomized demand and product preferences. Each solar product has parameters for requirements, price, cost, and production time. The simulation uses random variables to model customer demand and product choice.

Uploaded by

mogfis40
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

HOMEWORK – 3 REPORT

Introduction :
In this homework we are expected to build the computerized model of
the system that we built the conceptual model previously. Our project is about
a company that sells its own products . In this company simulation , customer
interested in products of our company comes to the company and negotiate
with the customer representative about the product . There is a queue for that
purpose and if the length of the queue is too long , customer can give up going
into that queue . If negotiation is successfull and a probability calculated
according to the system variables is satisfied , customer will go into the queue
which he/she wants to buy product.

System Definition :
Our system consists of 8 different components. These are : Main ,
Company , Person , SolarArbor , SolarBank , SolarBoat , SolarIrrigation and
Worker.
 The purpose of Main component is to combine all of these components
and establish relationships among them.
o Variables :
 TotalCustomer holds a total number of customer coming our
company .
o Events :
 The purpose of CorruptionEvent is to go bankrupt our
company if necessary amount of money cannot be gained.
 The purpose of MonthlyCostEvent is to calculate the
monthly expense of company.
 The purpose of FinishSystem is to shut down the system
when the all customers finishs their jobs.
o Parameters:
 CustomerSize defines the people who are customer.

 The purpose of Company component is to create company object.


Customers will come this company to buy product.
o Parameters :
 Capital parameter defines the initial capital of our company.
 Expense defines the monthly expense of our company.

 The purpose of Person component is to create our customers. They will


come to our company and buy products. Their product choice is
determined randomly. Also their choice will be affected by the
advertisement of that product.
o Parameters :
 Demand parameter defines the willingness of customer on
the product.
 ProductId parameter defines the product id that customer
wants to buy randomly.
 Rate parameter defines the advertisement effect on buying
the product.

 The purpose of SolarArbor component is to create solar arbor product in


the system. This is one of the products that our company produces.
o Parameters :
 RequirementRate defines the importance of that product for
the customer.
 Sale_price defines the sale price for that product.
o Variables :
 Cost holds the cost of that product.
 ProducingTime holds the time to produce that product.

 The purpose of SolarBank component is to create solar bank product in


the system. This is one of the products that our company produces.
o Parameters :
 RequirementRate defines the importance of that product for
the customer.
 Sale_price defines the sale price for that product.
o Variables :
 Cost holds the cost of that product.
 ProducingTime holds the time to produce that product.
 The purpose of SolarBoat component is to create solar boat product in
the system. This is one of the products that our company produces.
o Parameters :
 RequirementRate defines the importance of that product for
the customer.
 Sale_price defines the sale price for that product.
o Variables :
 Cost holds the cost of that product.
 ProducingTime holds the time to produce that product.

 The purpose of SolarIrrigation component is to create solar irrigation


product in the system. This is one of the products that our company
produces.
o Parameters :
 RequirementRate defines the importance of that product for
the customer.
 Sale_price defines the sale price for that product.
o Variables :
 Cost holds the cost of that product.
 ProducingTime holds the time to produce that product.

 The purpose of Worker component is to create workers in the company.

Relations :
All the products defined in our system and workers belongs to the
company. Company consists of these components. Person component
defines the customers which will come to our company to buy products.
Main component is responsible to combine all of these components in itself.

Random Variates Generation :


In our system demand variable which implies the customer willingness
on buying that product , is defined as random variable. This variable is
calculated by using Math.random() method belonging to java library. Also
productId variable is defined as random variable by using Math.random().
Both of these variable are defined in the Person component.

2D :

3D :
Note : When 3D mode is enabled , the program shows the model on the left
top corner . You need to slide the screen to there.

Model :

Input Variables :
Uncontrollable input variables are :
1. demand , type : int , component : Person
2. productId ,type : int , component : Person
Decision input variables are :
1. capital , type : int , component : Company
2. expense , type : int , component : Company
3. rate , type : type : double , component : Person
4. cost , type : int , component : SolarArbor
5. producingTime , type : int , component : SolarArbor
6. requirementRate , type : double , component : SolarArbor
7. sale_price , type : int , component : SolarArbor
8. cost , type : int , component : SolarBank
9. producingTime , type : int , component : SolarBank
10. requirementRate , type : double , component : SolarBank
11. sale_price , type : int , component : SolarBank
12.cost , type : int , component : SolarBoat
13.producingTime , type : int , component : SolarBoat
14.requirementRate , type : double , component : SolarBoat
15.sale_price , type : int , component : SolarBoat
16.cost , type : int , component : SolarIrrigation
17.producingTime , type : int , component : SolarIrrigation
18.requirementRate , type : double , component : SolarIrrigation
19.sale_price , type : int , component : SolarIrrigation
20.TotalCustomer , type : int , component : Main

Input :
Output :

Yunus Emre Ertunç - 150117064


Muhammed Enes Aktürk - 150117036

You might also like