Repository navigation
Expand file tree
/
Copy pathPerformanceNode.java
More file actions
98 lines (76 loc) · 2.54 KB
/
Copy pathPerformanceNode.java
File metadata and controls
98 lines (76 loc) · 2.54 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
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
/*
PerformanceNode
First class of a three-part program. Simple class to act as an array index.
*/
public class PerformanceNode {
private String performanceName;
private String leadPerformer;
private int totalParticipants;
private int durationPerformance;
private int startTime;
private PerformanceNode prev;
private PerformanceNode next;
public PerformanceNode getPrev() {
return prev;
}
public void setPrev(PerformanceNode prev) {
this.prev = prev;
}
public PerformanceNode getNext() {
return next;
}
public void setNext(PerformanceNode next) {
this.next = next;
}
// Constructors + get/set
public PerformanceNode() {
next = null;
prev = null;
}
public PerformanceNode(String performanceName, String leadPerformer, int totalParticipants, int durationPerformance, int startTime) {
this.performanceName = performanceName;
this.leadPerformer = leadPerformer;
this.totalParticipants = totalParticipants;
this.durationPerformance = durationPerformance;
this.startTime = startTime;
}
public String getPerformanceName() {
return performanceName;
}
public void setPerformanceName(String performanceName) {
this.performanceName = performanceName;
}
public String getLeadPerformer() {
return leadPerformer;
}
public void setLeadPerformer(String leadPerformer) {
this.leadPerformer = leadPerformer;
}
public int getTotalParticipants() {
return totalParticipants;
}
public void setTotalParticipants(int totalParticipants) {
this.totalParticipants = totalParticipants;
}
public int getDurationPerformance() {
return durationPerformance;
}
public void setDurationPerformance(int durationPerformance) {
this.durationPerformance = durationPerformance;
}
public int getStartTime() {
return startTime;
}
public void setStartTime(int startTime) {
this.startTime = startTime;
}
public String toString() {
return "PerformanceNode{" +
"performanceName='" + performanceName + '\'' +
", leadPerformer='" + leadPerformer + '\'' +
", totalParticipants=" + totalParticipants +
", durationPerformance=" + durationPerformance +
", startTime=" + startTime +
'}';
}
}