View Javadoc
1   package fr.ifremer.tutti.persistence.entities.protocol.v3;
2   
3   /*
4    * #%L
5    * Tutti :: Persistence
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2012 - 2016 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU General Public License as
13   * published by the Free Software Foundation, either version 3 of the
14   * License, or (at your option) any later version.
15   * 
16   * This program is distributed in the hope that it will be useful,
17   * but WITHOUT ANY WARRANTY; without even the implied warranty of
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   * GNU General Public License for more details.
20   * 
21   * You should have received a copy of the GNU General Public
22   * License along with this program.  If not, see
23   * <http://www.gnu.org/licenses/gpl-3.0.html>.
24   * #L%
25   */
26  
27  import fr.ifremer.tutti.persistence.entities.TuttiEntity;
28  import fr.ifremer.tutti.persistence.entities.protocol.CalcifiedPiecesSamplingDefinition;
29  import fr.ifremer.tutti.persistence.entities.protocol.Rtp;
30  
31  import java.util.Collection;
32  import java.util.List;
33  
34  public interface SpeciesProtocol3 extends TuttiEntity {
35  
36      String PROPERTY_SPECIES_REFERENCE_TAXON_ID = "speciesReferenceTaxonId";
37  
38      String PROPERTY_SPECIES_SURVEY_CODE = "speciesSurveyCode";
39  
40      String PROPERTY_LENGTH_STEP_PMFM_ID = "lengthStepPmfmId";
41  
42      String PROPERTY_WEIGHT_ENABLED = "weightEnabled";
43  
44      String PROPERTY_COUNT_IF_NO_FREQUENCY_ENABLED = "countIfNoFrequencyEnabled";
45  
46      String PROPERTY_CALCIFY_SAMPLE_ENABLED = "calcifySampleEnabled";
47  
48      String PROPERTY_LENGTH_STEP = "lengthStep";
49  
50      String PROPERTY_MADE_FROM_AREFERENT_TAXON = "madeFromAReferentTaxon";
51  
52      String PROPERTY_MANDATORY_SAMPLE_CATEGORY_ID = "mandatorySampleCategoryId";
53  
54      String PROPERTY_RTP_MALE = "rtpMale";
55  
56      String PROPERTY_RTP_FEMALE = "rtpFemale";
57  
58      String PROPERTY_RTP_UNDEFINED = "rtpUndefined";
59  
60      String PROPERTY_INDIVIDUAL_OBSERVATION_ENABLED = "individualObservationEnabled";
61  
62      String PROPERTY_MATURITY_PMFM_ID = "maturityPmfmId";
63  
64      String PROPERTY_CALCIFIED_PIECES_SAMPLING_DEFINITION = "calcifiedPiecesSamplingDefinition";
65  
66      Integer getSpeciesReferenceTaxonId();
67  
68      void setSpeciesReferenceTaxonId(Integer speciesReferenceTaxonId);
69  
70      String getSpeciesSurveyCode();
71  
72      void setSpeciesSurveyCode(String speciesSurveyCode);
73  
74      String getLengthStepPmfmId();
75  
76      void setLengthStepPmfmId(String lengthStepPmfmId);
77  
78      boolean isWeightEnabled();
79  
80      void setWeightEnabled(boolean weightEnabled);
81  
82      boolean isCountIfNoFrequencyEnabled();
83  
84      void setCountIfNoFrequencyEnabled(boolean countIfNoFrequencyEnabled);
85  
86      boolean isCalcifySampleEnabled();
87  
88      void setCalcifySampleEnabled(boolean calcifySampleEnabled);
89  
90      Float getLengthStep();
91  
92      void setLengthStep(Float lengthStep);
93  
94      boolean isMadeFromAReferentTaxon();
95  
96      void setMadeFromAReferentTaxon(boolean madeFromAReferentTaxon);
97  
98      Integer getMandatorySampleCategoryId(int index);
99  
100     boolean isMandatorySampleCategoryIdEmpty();
101 
102     int sizeMandatorySampleCategoryId();
103 
104     void addMandatorySampleCategoryId(Integer mandatorySampleCategoryId);
105 
106     void addAllMandatorySampleCategoryId(Collection<Integer> mandatorySampleCategoryId);
107 
108     boolean removeMandatorySampleCategoryId(Integer mandatorySampleCategoryId);
109 
110     boolean removeAllMandatorySampleCategoryId(Collection<Integer> mandatorySampleCategoryId);
111 
112     boolean containsMandatorySampleCategoryId(Integer mandatorySampleCategoryId);
113 
114     boolean containsAllMandatorySampleCategoryId(Collection<Integer> mandatorySampleCategoryId);
115 
116     List<Integer> getMandatorySampleCategoryId();
117 
118     void setMandatorySampleCategoryId(List<Integer> mandatorySampleCategoryId);
119 
120     Rtp getRtpMale();
121 
122     void setRtpMale(Rtp rtpMale);
123 
124     Rtp getRtpFemale();
125 
126     void setRtpFemale(Rtp rtpFemale);
127 
128     Rtp getRtpUndefined();
129 
130     void setRtpUndefined(Rtp rtpUndefined);
131 
132     boolean isIndividualObservationEnabled();
133 
134     void setIndividualObservationEnabled(boolean individualObservationEnabled);
135 
136     String getMaturityPmfmId();
137 
138     void setMaturityPmfmId(String maturityPmfmId);
139 
140     String getCalcifiedPiecesSamplingTypePmfmId();
141 
142     void setCalcifiedPiecesSamplingTypePmfmId(String calcifiedPiecesSamplingTypePmfmId);
143 
144     CalcifiedPiecesSamplingDefinition getCalcifiedPiecesSamplingDefinition(int index);
145 
146     boolean isCalcifiedPiecesSamplingDefinitionEmpty();
147 
148     int sizeCalcifiedPiecesSamplingDefinition();
149 
150     void addCalcifiedPiecesSamplingDefinition(CalcifiedPiecesSamplingDefinition calcifiedPiecesSamplingDefinition);
151 
152     void addAllCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition);
153 
154     boolean removeCalcifiedPiecesSamplingDefinition(CalcifiedPiecesSamplingDefinition calcifiedPiecesSamplingDefinition);
155 
156     boolean removeAllCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition);
157 
158     boolean containsCalcifiedPiecesSamplingDefinition(CalcifiedPiecesSamplingDefinition calcifiedPiecesSamplingDefinition);
159 
160     boolean containsAllCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition);
161 
162     Collection<CalcifiedPiecesSamplingDefinition> getCalcifiedPiecesSamplingDefinition();
163 
164     void setCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition);
165 
166     boolean withRtpMale();
167 
168     boolean withRtpFemale();
169 
170     boolean withRtpUndefined();
171 
172 }