1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.class2.courseoffering.dto;
18
19 import org.kuali.student.enrollment.courseoffering.dto.SeatPoolDefinitionInfo;
20 import org.kuali.student.r2.core.population.dto.PopulationInfo;
21
22 import java.io.Serializable;
23
24
25
26
27
28
29 public class SeatPoolWrapper implements Serializable, Comparable<SeatPoolWrapper> {
30 private String id;
31 private SeatPoolDefinitionInfo seatPool;
32 private PopulationInfo seatPoolPopulation;
33
34 public SeatPoolDefinitionInfo getSeatPool() {
35 return seatPool;
36 }
37
38 public void setSeatPool(SeatPoolDefinitionInfo seatPool) {
39 this.seatPool = seatPool;
40 }
41
42 public PopulationInfo getSeatPoolPopulation() {
43 return seatPoolPopulation;
44 }
45
46 public void setSeatPoolPopulation(PopulationInfo seatPoolPopulation) {
47 this.seatPoolPopulation = seatPoolPopulation;
48 }
49
50 public String getId() {
51
52 return id;
53 }
54
55 public void setId(String id) {
56 this.id = id;
57 }
58
59
60 @Override
61 public int compareTo(SeatPoolWrapper seatPoolToCompare) {
62 return this.getSeatPool().getProcessingPriority()-seatPoolToCompare.getSeatPool().getProcessingPriority();
63 }
64 }