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.data.climate;
18
19 import java.io.Serializable;
20
21 import fr.inrae.agroclim.indicators.model.data.UseVariables;
22
23 /**
24 * Calculator for ETP (aka ET0, ETR).
25 *
26 * Last changed : $Date$
27 *
28 * @author $Author$
29 * @version $Revision$
30 */
31 public interface EtpCalculator extends Cloneable, Serializable, UseVariables {
32 /**
33 * @return cloned instance
34 */
35 EtpCalculator clone();
36
37 /**
38 * @param data
39 * climatic daily data.
40 * @return ET0 (mm)
41 */
42 Double compute(ClimaticDailyData data) throws IllegalArgumentException;
43 }