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.result;
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22 import fr.inrae.agroclim.indicators.model.indicator.IndicatorCategory;
23 import lombok.Getter;
24 import lombok.Setter;
25 import lombok.ToString;
26
27 /**
28 * Indicator value after
29 * {@code Indicator.compute(Resource<? extends DailyData>)}.
30 *
31 * Last changed : $Date$
32 *
33 * @author Olivier Maury
34 * @author $Author$
35 * @version $Revision$
36 */
37 @ToString
38 public class IndicatorResult extends Result {
39
40 /**
41 * Category of indicator (phase, process, effect, indicator).
42 */
43 @Getter
44 @Setter
45 private IndicatorCategory indicatorCategory;
46
47 /**
48 * Indicator ID.
49 */
50 @Getter
51 @Setter
52 private String indicatorId;
53
54 /**
55 * Value of composed indicators.
56 */
57 @Getter
58 private final List<IndicatorResult> indicatorResults = new ArrayList<>();
59
60 /**
61 * Raw value of indicator.
62 */
63 @Getter
64 @Setter
65 private Double rawValue;
66 }