forked from anagam5/Object-Lab-Interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LaserCutEvent.java
103 lines (60 loc) · 1.85 KB
/
LaserCutEvent.java
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ObjectLabEnterpriseSoftware;
/**
* object for managing and logging a OLI ULS print event
* @author Sam Scheiner
* @version 0.1
* @since 2/11/17
*
*/
public final class LaserCutEvent extends AbstractEvent{
//laser cutter extends AbstractEvent with the following data
private double materialThickness;
private String material;
private int hours, minutes, seconds;
public LaserCutEvent(int IDnumber, String studentName, String monitorName, String date, String course, double materialThickness, String material, int hours, int minutes, int seconds){
//laser cutter specific
//call supercontructor for abstract object fields
super(studentName, monitorName, date, course, IDnumber);
//lasercut specific fields
this.materialThickness = materialThickness;
this.material = material;
this.hours = hours;
this.minutes = minutes;
this.seconds = seconds;
}
public double getMaterialThickness() {
return materialThickness;
}
public void setMaterialThickness(double materialThickness) {
this.materialThickness = materialThickness;
}
public String getMaterial() {
return material;
}
public void setMaterial(String material) {
this.material = material;
}
public int getHours() {
return hours;
}
public void setHours(int hours) {
this.hours = hours;
}
public int getMinutes() {
return minutes;
}
public void setMinutes(int minutes) {
this.minutes = minutes;
}
public int getSeconds() {
return seconds;
}
public void setSeconds(int seconds) {
this.seconds = seconds;
}
}