public abstract class Indicator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
MONTHS
Utilisé pour les indicateurs définissant des résultats sur plusieurs mois.
|
protected static Double[] |
NOT_APPLICABLE
Pour retourner une instance de resultat marquant l'indicateur comme "non applicable".
|
protected static Pattern |
PRACTICED_DATE_PATTERN
Pattern des dates de périodes des interventions ITK.
|
| Constructor and Description |
|---|
Indicator() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
computeEffective(IndicatorWriter writer,
Domain domain)
Système de culture >> Domaine.
|
abstract void |
computeEffective(IndicatorWriter writer,
Domain domain,
GrowingSystem growingSystem) |
abstract void |
computeEffective(IndicatorWriter writer,
Domain domain,
GrowingSystem growingSystem,
Plot plot)
Zone >> Parcelle.
|
abstract void |
computeEffective(IndicatorWriter writer,
Domain domain,
GrowingSystem growingSystem,
Plot plot,
Zone zone) |
abstract void |
computePracticed(IndicatorWriter writer,
Domain domain) |
abstract void |
computePracticed(IndicatorWriter writer,
GrowingSystem growingSystem) |
protected Double[] |
divs(Double[] arr1,
double s)
Division du vecteur par un scalaire.
|
abstract String |
getIndicatorCategory()
Retourne la categories de l'indicateur.
|
abstract String |
getIndicatorLabel(int i)
Retourne le nom de l'indicateur.
|
protected double |
getInputPSCi(EffectiveIntervention intervention,
PhytoProductInput input)
Pour le réalisé PSCi est égal à :
|
protected double |
getInputPSCi(PracticedIntervention intervention,
PhytoProductInput input)
Pour le synthétisé PSCi est égal à :
|
protected double |
getToolPSCi(EffectiveIntervention intervention)
Pour le réalisé PSCi est égal à
|
protected double |
getToolPSCi(PracticedIntervention intervention)
Pour le synthétisé PSCi est égal à :
|
protected Double[] |
mults(Double[] arr1,
double s)
Multiplication du vecteur par un scalaire.
|
protected Double[] |
newArray(int length,
double defaultValue)
Initialize new array with size and default value.
|
protected Double[] |
newResult(Double... val)
Convert result into always array of double (even if there is nly one value).
|
abstract void |
resetEffective(Domain domain) |
abstract void |
resetEffective(Domain domain,
GrowingSystem growingSystem) |
abstract void |
resetEffective(Domain domain,
GrowingSystem growingSystem,
Plot plot)
Reset effective plot.
|
abstract void |
resetPracticed(Domain domain)
Reset state for domain.
|
protected Double[] |
sum(Double[] arr1,
Double[] arr2)
Sum two double arrays.
|
protected static final Double[] NOT_APPLICABLE
protected static final String[] MONTHS
protected static final Pattern PRACTICED_DATE_PATTERN
public abstract String getIndicatorCategory()
public abstract String getIndicatorLabel(int i)
i - indice dans le cas de résultat multiple (peut être ingoré suivant l'indicateur)public abstract void computePracticed(IndicatorWriter writer, GrowingSystem growingSystem)
public abstract void computePracticed(IndicatorWriter writer, Domain domain)
public abstract void resetPracticed(Domain domain)
domain - domain to reset statepublic abstract void computeEffective(IndicatorWriter writer, Domain domain, GrowingSystem growingSystem, Plot plot, Zone zone)
public abstract void computeEffective(IndicatorWriter writer, Domain domain, GrowingSystem growingSystem, Plot plot)
public abstract void resetEffective(Domain domain, GrowingSystem growingSystem, Plot plot)
domain - growingSystem - plot - public abstract void computeEffective(IndicatorWriter writer, Domain domain, GrowingSystem growingSystem)
public abstract void resetEffective(Domain domain, GrowingSystem growingSystem)
public abstract void computeEffective(IndicatorWriter writer, Domain domain)
writer - writerdomain - domainpublic abstract void resetEffective(Domain domain)
protected double getToolPSCi(PracticedIntervention intervention)
PSCi = fréquence temporelle d'intervention * fréquence spatial d'intervention
intervention - interventionprotected double getInputPSCi(PracticedIntervention intervention, PhytoProductInput input)
PSCi = fréquence temporelle d'intervention * fréquence spatial d'intervention * de la surface traité de l'actionpour les intrants de type "Lutte Biologique" et "Application de produit phyto sanitaire. Sinon, les autres intrant ne sont pas pris en compte et la formule pour les autres intrants est celle du PSCi Outils:
PSCi = fréquence temporelle d'intervention * fréquence spatial d'intervention
intervention - interventioninput - intrant pouvant influencer (ou pas) le calcul du PSCiprotected double getToolPSCi(EffectiveIntervention intervention)
PSCi = nombre de passage * fréquence spatial d'intervention
intervention - interventionprotected double getInputPSCi(EffectiveIntervention intervention, PhytoProductInput input)
PSCi = nombre de passage * fréquence spatial d'intervention * de la surface traité de l'actionpour les intrants de type "Lutte Biologique" et "Application de produit phyto sanitaire. Sinon, les autres intrant ne sont pas pris en compte et la formule pour les autres intrants est celle du PSCi Outils:
PSCi = nombre de passage * fréquence spatial d'intervention
intervention - interventioninput - intrant pouvant influencer (ou pas) le calcul du PSCiprotected Double[] newArray(int length, double defaultValue)
length - sizedefaultValue - defalt valueprotected Double[] sum(Double[] arr1, Double[] arr2)
arr1 - arr2 - protected Double[] mults(Double[] arr1, double s)
arr1 - arrays - scalarprotected Double[] divs(Double[] arr1, double s)
arr1 - arrays - scalarCopyright © 2013–2015 Inra. All rights reserved.