1 /*
2 * This file is part of Indicators.
3 *
4 * Indicators is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Indicators is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Indicators. If not, see <https://www.gnu.org/licenses/>.
16 */
17 package fr.inrae.agroclim.indicators.model;
18
19 import java.util.Date;
20
21 import lombok.Getter;
22 import lombok.Setter;
23 import lombok.ToString;
24
25 /**
26 * Phenological phase for a year.
27 *
28 * Last changed : $Date$
29 *
30 * @author Olivier Maury
31 * @author $Author$
32 * @version $Revision$
33 */
34 @ToString
35 public class AnnualPhase {
36
37 /**
38 * String ID (eg.: s0s1).
39 */
40 @Getter
41 @Setter
42 private String uid;
43
44 /**
45 * First day of phase.
46 */
47 @Getter
48 @Setter
49 private Date start;
50
51 /**
52 * Name of start stage (eg.: s0).
53 */
54 @Getter
55 @Setter
56 private String startStage;
57
58 /**
59 * Last day of phase.
60 */
61 @Getter
62 @Setter
63 private Date end;
64
65 /**
66 * Name of end stage (eg.: s1).
67 */
68 @Getter
69 @Setter
70 private String endStage;
71
72 /**
73 * Year of harvest.
74 */
75 @Getter
76 @Setter
77 private int harvestYear;
78 }