-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPaciente.java
More file actions
97 lines (82 loc) · 1.77 KB
/
Paciente.java
File metadata and controls
97 lines (82 loc) · 1.77 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
// TODO: Auto-generated Javadoc
/**
* The Class Paciente.
*
* @param <E> the element type
*/
public class Paciente<E> implements Comparable<E>{
/** The nombre paciente. */
private String nombrePaciente;
/** The enfermedad. */
private String enfermedad;
/** The prioridad. */
private String prioridad;
/**
* Instantiates a new paciente.
*
* @param nombrePaciente the nombre paciente
* @param enfermedad the enfermedad
* @param prioridad the prioridad
*/
public Paciente(String nombrePaciente, String enfermedad, String prioridad) {
super();
this.nombrePaciente = nombrePaciente;
this.enfermedad = enfermedad;
this.prioridad = prioridad;
}
/* (non-Javadoc)
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
public int compareTo(E paciente) {
// TODO Auto-generated method stub
return this.prioridad.compareTo(((Paciente ) paciente).getPrioridad());
}
/**
* Gets the nombre paciente.
*
* @return the nombre paciente
*/
public String getNombrePaciente() {
return nombrePaciente;
}
/**
* Sets the nombre paciente.
*
* @param nombrePaciente the new nombre paciente
*/
public void setNombrePaciente(String nombrePaciente) {
this.nombrePaciente = nombrePaciente;
}
/**
* Gets the enfermedad.
*
* @return the enfermedad
*/
public String getEnfermedad() {
return enfermedad;
}
/**
* Sets the enfermedad.
*
* @param enfermedad the new enfermedad
*/
public void setEnfermedad(String enfermedad) {
this.enfermedad = enfermedad;
}
/**
* Gets the prioridad.
*
* @return the prioridad
*/
public String getPrioridad() {
return prioridad;
}
/**
* Sets the prioridad.
*
* @param prioridad the new prioridad
*/
public void setPrioridad(String prioridad) {
this.prioridad = prioridad;
}
}