-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCounselor.java
102 lines (96 loc) · 4.35 KB
/
Counselor.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
import java.util.ArrayList;
import java.util.UUID;
/**
* @author Andrew Chisolm, Bryan Munoz, Matt Olson, Daniel Ruiz, Jaden Arnold
* A counselor at the camp
*/
public class Counselor extends Attendee {
private String bio;
/**
* The counsleors information before the ID
* @param firstName The first name of the counsleor
* @param lastName The last name of the counsleor
* @param phone The phone number for the counsleor
* @param email The email of the counsleor
* @param birthdate The birthday of the counsleor
* @param address The address of the counsleor
* @param guardianName The parent of the counsleor
* @param pediatricCare The name of the counsleors pediatric clinic
* @param pediatritianName The name of the counsleors pediatritian
* @param pediatritianPhone The phone number of the counsleors pediatritian
* @param contact The emergency contact information for the counselor
* @param allergies The allergies that the counselor has
* @param diets The diet that the counselor has
* @param bio The bio that the counselor made
*/
public Counselor(String firstName, String lastName, String phone, String email,
String birthdate, String address, String guardianName, String pediatricCare,
String pediatritianName, String pediatritianPhone,
EmergencyContact contact, EmergencyContact contact2, ArrayList<String> allergies,
ArrayList<String> diets, String bio) {
super(firstName, lastName, phone, email, birthdate, address, guardianName, pediatricCare,
pediatritianName, pediatritianPhone, contact, contact2, allergies, diets);
this.bio = bio;
}
/**
* Counselor information after the id is made
* @param id The randomly generated id for the counseleor
* @param firstName The first name of the counsleor
* @param lastName The last name of the counsleor
* @param phone The phone number for the counsleor
* @param email The email of the counsleor
* @param birthdate The birthday of the counsleor
* @param address The address of the counsleor
* @param guardianName The parent of the counsleor
* @param pediatricCare The name of the counsleors pediatric clinic
* @param pediatritianName The name of the counsleors pediatritian
* @param pediatritianPhone The phone number of the counsleors pediatritian
* @param contact The emergency contact information for the counselor
* @param allergies The allergies that the counselor has
* @param diets The diet that the counselor has
* @param bio The bio that the counselor made
*/
public Counselor(UUID id, String firstName, String lastName, String phone, String email,
String birthdate, String address, String guardianName, String pediatricCare,
String pediatritianName, String pediatritianPhone,
EmergencyContact contact, EmergencyContact contact2, ArrayList<String> allergies,
ArrayList<String> diets, String bio) {
super(id, firstName, lastName, phone, email, birthdate, address, guardianName, pediatricCare,
pediatritianName, pediatritianPhone, contact, contact2, allergies, diets);
this.bio = bio;
}
/**
* Accesor for bio
* @return bio
*/
public String getBio() {
return bio;
}
/**
* Adds a strike to a camper
* @param camper the camper
*/
public void addStrike(Camper camper) {
camper.addStrike();
}
/**
* Returns counselor information in a readable format
*/
public String toString() {
String ret = "First Name: " + this.firstName;
ret += "\nLast Name: " + this.lastName;
ret += "\nPhone Number: " + this.phone;
ret += "\nEmail: " + this.email;
ret += "\nGuardan: " + this.guardianName;
ret += "\nPediatric Clinic: " + this.pediatricCare;
ret += "\nPediatrition: " + this.pediatritionName;
ret += "\nPediatrition Phone Number: " + this.pediatritionPhone;
ret += "\n" + this.contact;
ret += "\nAllergies: ";
for(String allergy : this.allergies) ret+=allergy + " ";
ret += "\nDiets: ";
for(String diet : this.diets) ret+=diet + " ";
ret += "\nBio: " + bio;
return ret;
}
}