/Users/18604/NetBeansProjects/IA_NetBeans_Project/src/computer/science/ia/ComputerBuild.java |
1
2
3
4
5
6 package computer.science.ia;
7
8
9
10 @author
11
12 public class ComputerBuild {
13
14
15 private String cpu = "not set yet";
16 private String cpuCooler = "not set yet";
17 private String gpu = "not set yet";
18 private String motherboard = "not set yet";
19 private String storage = "not set yet";
20 private String computercase = "not set yet";
21 private String powersupply = "not set yet";
22 private double budget = 0.0;
23
24 public ComputerBuild(){
25
26 }
27
28 public ComputerBuild(String cpu, String cpuCooler, String gpu, String motherboard, String storage, String computercase, String powersupply, double budget){
29 this.cpu = cpu;
30 this.cpuCooler = cpuCooler;
31 this.gpu = gpu;
32 this.motherboard = motherboard;
33 this.storage = storage;
34 this.computercase = computercase;
35 this.powersupply = powersupply;
36 this.budget = budget;
37 }
38
39 public void setCpu(String house){
40 this.cpu = cpu;
41 }
42
43 public void setCpuCooler(String cpuCooler){
44 this.cpuCooler = cpuCooler;
45 }
46
47 public void setGpu(String gpu){
48 this.gpu = gpu;
49 }
50
51 public void setMotherboard(String motherboard){
52 this.motherboard = motherboard;
53 }
54
55 public void setStorage(String storage){
56 this.storage = storage;
57 }
58
59 public void setComputercase(String computercase){
60 this.computercase = computercase;
61 }
62
63 public void setPowersupply(String powersupply){
64 this.powersupply = powersupply;
65 }
66
67 public void setBudget(double budget){
68 this.budget = budget;
69 }
70
71
72 public String getCpu(){
73 return cpu;
74 }
75
76 public String getCpuCooler(){
77 return cpuCooler;
78 }
79
80 public String getGpu(){
81 return gpu;
82 }
83
84 public String getMotherboard(){
85 return motherboard;
86 }
87
88 public String getStorage(){
89 return storage;
90 }
91
92 public String getComputerCase(){
93 return computercase;
94 }
95
96 public String getPowersupply(){
97 return powersupply;
98 }
99
100 public double getBudget(){
101 return budget;
102 }
103
104 }
105