public class SAReducerDecorator extends Object implements LayerReducerDecorator
| Modifier and Type | Field and Description |
|---|---|
static String |
ICBL |
static String |
ICH2O |
static String |
ICNH4 |
static String |
ICNO3 |
| Constructor and Description |
|---|
SAReducerDecorator() |
| Modifier and Type | Method and Description |
|---|---|
Float |
computeInitialConditions(String key,
Map<String,String> fullCurrentSoil,
Map<String,String> previousSoil)
Perform initial condition convertion, for icnh4 and icno3 it's important to take into account the deep of the layer
for computing the aggregated value.
|
HashMap<String,String> |
computeSoil(Map<String,String> fullCurrentSoil,
Map<String,String> previousSoil)
Create a new soil filled with aggregated data coming from soils set as
input parameters.
|
WaterReserveCriteria |
getCriteria() |
boolean |
shouldAggregateSoils(HashMap<String,String> currentSoil,
HashMap<String,String> previousSoil)
Returns true if the both soil layers should be merge into a single one
|
public static String ICBL
public static String ICH2O
public static String ICNO3
public static String ICNH4
public WaterReserveCriteria getCriteria()
public Float computeInitialConditions(String key, Map<String,String> fullCurrentSoil, Map<String,String> previousSoil)
key - fullCurrentSoil - previousSoil - public HashMap<String,String> computeSoil(Map<String,String> fullCurrentSoil, Map<String,String> previousSoil)
computeSoil in interface LayerReducerDecoratorfullCurrentSoil - previousSoil - public boolean shouldAggregateSoils(HashMap<String,String> currentSoil, HashMap<String,String> previousSoil)
LayerReducerDecoratorshouldAggregateSoils in interface LayerReducerDecoratorcurrentSoil - The current soil layer (n)previousSoil - The previous soil layer (n - 1)LayerReducerDecoratorCopyright © 2014. All Rights Reserved.