View Javadoc
1   package fr.ifremer.tutti.service.export.sumatra;
2   
3   /*
4    * #%L
5    * Tutti :: Service
6    * %%
7    * Copyright (C) 2012 - 2014 Ifremer
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the 
12   * License, or (at your option) any later version.
13   * 
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU General Public 
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  import fr.ifremer.tutti.persistence.entities.data.FishingOperation;
26  import fr.ifremer.tutti.persistence.entities.referential.Species;
27  
28  import java.io.Serializable;
29  import java.util.Date;
30  
31  /**
32   * @author Kevin Morin - kmorin@codelutin.com
33   * @since 2.0
34   */
35  public class CatchRow implements Serializable {
36  
37      private static final long serialVersionUID = 1L;
38  
39      public static final String PROPERTY_STATION_NUMBER = FishingOperation.PROPERTY_STATION_NUMBER;
40  
41      public static final String PROPERTY_GEAR_SHOOTING_START_DATE = FishingOperation.PROPERTY_GEAR_SHOOTING_START_DATE;
42  
43      public static final String PROPERTY_GEAR_SHOOTING_END_DATE = FishingOperation.PROPERTY_GEAR_SHOOTING_END_DATE;
44  
45      public static final String PROPERTY_MULTIRIG_AGGREGATION = FishingOperation.PROPERTY_MULTIRIG_AGGREGATION;
46  
47      public static final String PROPERTY_GEAR_SHOOTING_START_LATITUDE = FishingOperation.PROPERTY_GEAR_SHOOTING_START_LATITUDE;
48  
49      public static final String PROPERTY_GEAR_SHOOTING_END_LATITUDE = FishingOperation.PROPERTY_GEAR_SHOOTING_END_LATITUDE;
50  
51      public static final String PROPERTY_GEAR_SHOOTING_START_LONGITUDE = FishingOperation.PROPERTY_GEAR_SHOOTING_START_LONGITUDE;
52  
53      public static final String PROPERTY_GEAR_SHOOTING_END_LONGITUDE = FishingOperation.PROPERTY_GEAR_SHOOTING_END_LONGITUDE;
54  
55      public static final String PROPERTY_SPECIES = "species";
56  
57      public static final String PROPERTY_SIGN = "sign";
58  
59      public static final String PROPERTY_TOTAL_WEIGHT = "totalWeight";
60  
61      public static final String PROPERTY_SORTED_WEIGHT = "sortedWeight";
62  
63      public static final String PROPERTY_AVERAGE_WEIGHT = "averageWeight";
64  
65      public static final String PROPERTY_AVERAGE_SIZE = "averageSize";
66  
67      public static final String PROPERTY_NUMBER = "number";
68  
69      public static final String PROPERTY_MOULE = "moule";
70  
71      protected FishingOperation fishingOperation;
72  
73      protected Species species;
74  
75      protected String sign;
76  
77      protected Float totalWeight;
78  
79      protected Float sortedWeight;
80  
81      protected Float averageWeight;
82  
83      protected Float averageSize;
84  
85      protected Integer number;
86  
87      protected Float moule;
88  
89      public String getStationNumber() {
90          return fishingOperation.getStationNumber();
91      }
92  
93      public Date getGearShootingStartDate() {
94          return fishingOperation.getGearShootingStartDate();
95      }
96  
97      public Date getGearShootingEndDate() {
98          return fishingOperation.getGearShootingEndDate();
99      }
100 
101     public String getMultirigAggregation() {
102         return fishingOperation.getMultirigAggregation();
103     }
104 
105     public Float getGearShootingStartLatitude() {
106         return fishingOperation.getGearShootingStartLatitude();
107     }
108 
109     public Float getGearShootingStartLongitude() {
110         return fishingOperation.getGearShootingStartLongitude();
111     }
112 
113     public Float getGearShootingEndLatitude() {
114         return fishingOperation.getGearShootingEndLatitude();
115     }
116 
117     public Float getGearShootingEndLongitude() {
118         return fishingOperation.getGearShootingEndLongitude();
119     }
120 
121     public void setFishingOperation(FishingOperation fishingOperation) {
122         this.fishingOperation = fishingOperation;
123     }
124 
125     public Species getSpecies() {
126         return species;
127     }
128 
129     public void setSpecies(Species species) {
130         this.species = species;
131     }
132 
133     public String getSign() {
134         return sign;
135     }
136 
137     public void setSign(String sign) {
138         this.sign = sign;
139     }
140 
141     public Float getTotalWeight() {
142         return totalWeight;
143     }
144 
145     public void setTotalWeight(Float totalWeight) {
146         this.totalWeight = totalWeight;
147     }
148 
149     public Float getSortedWeight() {
150         return sortedWeight;
151     }
152 
153     public void setSortedWeight(Float sortedWeight) {
154         this.sortedWeight = sortedWeight;
155     }
156 
157     public Float getAverageWeight() {
158         return averageWeight;
159     }
160 
161     public void setAverageWeight(Float averageWeight) {
162         this.averageWeight = averageWeight;
163     }
164 
165     public Float getAverageSize() {
166         return averageSize;
167     }
168 
169     public void setAverageSize(Float averageSize) {
170         this.averageSize = averageSize;
171     }
172 
173     public Integer getNumber() {
174         return number;
175     }
176 
177     public void setNumber(Integer number) {
178         this.number = number;
179     }
180 
181     public Float getMoule() {
182         return moule;
183     }
184 
185     public void setMoule(Float moule) {
186         this.moule = moule;
187     }
188 }