-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInventory.java
More file actions
59 lines (39 loc) · 1021 Bytes
/
Inventory.java
File metadata and controls
59 lines (39 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package eWAGI_Firms;
import java.util.ArrayList;
public class Inventory {
boolean domestic = true;
int firmID,sectorID, bankID;
double soldQuantities;
double totalMarketSales;
double revenues;
double price;
double quality;
double expectedDemand;
double plannedDelivery;
double sumOrders;
boolean stockOut;
double inventoryStock;
double salesToFirms;
double salesToHouseholds;
double avPrice;
double totalExcessDemand;
double marketShare;
double primaryDemand,totalDemand;
Inventory(int firmID, int sectorID, int bankID, double price){
this.firmID = firmID;
this.sectorID = sectorID;
this.bankID= bankID;
this.quality = 1.0;
this.soldQuantities = 1.0;
this.revenues = 0;
this.price = price;
this.expectedDemand =0;
this.sumOrders= 0;
this.stockOut = false;
this.avPrice = 0;
this.primaryDemand = 0.0;
this.totalDemand = 0.0;
salesToFirms = 0;
salesToHouseholds = 0;
}
}