-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomPart.java
More file actions
56 lines (44 loc) · 1.4 KB
/
CustomPart.java
File metadata and controls
56 lines (44 loc) · 1.4 KB
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
public class CustomPart implements GetName
{
private String partName;
private boolean CAM;
private boolean partMachining;
public CustomPart()//#9 zero arg (3/6)
{
partName = "elevatorTubing";
//Aluminum 2x1 tubing is used to make lots of our structures in robotics
CAM = true;
//CAM Stands for Computer aided machining, it is the coding of the machine in order to make the part
partMachining = true;
//Machining is the actual manufactering of the part
}
public CustomPart(String partName, boolean CAM, boolean partMachining)
{
this.partName = partName;
this.CAM = CAM;
this.partMachining = partMachining;
}
public void MachinePart()// This method machines the part
{
CAM = true;
partMachining = true;
}
public void CAMPart()// This method CAM's the part but doesnt machine it
{
CAM = true;
}
public boolean getMachiningStatus()// Returns machining status
{
return partMachining;
}
public String getName()//#20 Called from Interface
{
return partName;
}
public String toString()
{
String output = new String();
output = "\nCustom Part Name: " +partName+"\nCAM Done: "+ CAM + "\nMachining done: "+getMachiningStatus();
return output;
}
}