View Javadoc

1   /**
2    * Copyright 2012 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   *
15   * Created by David Yin on 8/1/12
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   * This class //TODO ...
26   *
27   * @author Kuali Student Team
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  }