/Users/johnr/Desktop/IA Submissions/IA Final Submission 000307-0023 - Jimmy/Product/ProductDataBase/src/ProductDataBase/Product.java |
1
2
3
4
5
6 package ProductDataBase;
7
8
9
10 @author
11
12 public class Product
13 {
14
15 private double ModelNumber = -999;
16 private double Volume = -999;
17 private double ProductionCost = -999;
18 private double ProductionTime = 999;
19
20
21 public Product()
22 {
23
24 }
25 public Product(double ModelNumber, double Volume, double ProductionCost, double ProductionTime)
26 {
27 this.ModelNumber = ModelNumber;
28 this.Volume = Volume;
29 this.ProductionCost = ProductionCost;
30 this.ProductionTime = ProductionTime;
31 }
32
33 public double getModelNumber()
34 {
35 return ModelNumber;
36 }
37
38 public double getVolume()
39 {
40 return Volume;
41 }
42
43 public double getProductionCost()
44 {
45 return ProductionCost;
46 }
47
48 public double getProductionTime()
49 {
50 return ProductionTime;
51 }
52
53 public void setModelNumber(double newModelNumber)
54 {
55 ModelNumber = newModelNumber;
56 }
57
58 public void setVolume(double newVolume)
59 {
60 Volume = newVolume;
61 }
62
63 public void setProductionCost(double newProductionCost)
64 {
65 ProductionCost = newProductionCost;
66 }
67
68 public void setProductionTime(double newProductionTime)
69 {
70 ProductionTime = newProductionTime;
71 }
72 }
73