Class SimpleFertilizer
java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.management.SimpleFertilizer
- All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer
Deprecated.
Applies fertilizer by using tabular values - designed to use Lintul5-style fertilizer tables
Fertilizer has to be provided as an array, where the entries containing DOY of fertilization alternate with entries containing corresponding fertilizer amount: .
E. g.:
DOY | 50 | 180 | 320 |
Amount | 130.5 | 120 | 127.3 |
has to be provided as array
50 | 130.5 | 180 | 120 | 320 | 127.3 |
This is the way interpolation tables are handled in FST (see also FSTFunctions). Lintul5 uses this mechanism for fertilization.
There are three tables the user can provide: cNitrateTAB, cAmmoniaTAB, cPotassiumTAB, cPhosphorusTAB and cNitrateAndAmmoniaTAB .
Each of the table populates the corresponding output Nitrate, Ammonia, Potassium, Phosphorus or NitrateAndAmmonia.
Notice: Nitrate and Ammonia do not add to NitrateAndAmmonia. This output is related only to cNitrateAndAmmoniaTAB!
- Author:
- gk
- See Also:
Component Variables
Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
---|---|---|---|---|---|---|---|
constant | cAmmoniaTAB | table with effective applications of ammonia as function of day number (DOY) | DOUBLEARRAY | g/(m2 d) | - | - | - |
constant | cNitrateAndAmmoniaTAB | table with effective applications of nitrate and ammonia as function of day number (DOY) | DOUBLEARRAY | g/(m2 d) | - | - | - |
constant | cNitrateTAB | table with effective applications of nitrate as function of day number (DOY) | DOUBLEARRAY | g/(m2 d) | - | - | - |
constant | cPhosphorusTAB | table with effective applications of Phosphorus as function of day number (DOY) | DOUBLEARRAY | g/(m2 d) | - | - | - |
constant | cPotassiumTAB | table with effective applications of ammonia as function of day number (DOY) | DOUBLEARRAY | g/(m2 d) | - | - | - |
out | Ammonia | daily applied ammonia | DOUBLE | g/(m2 d) | - | - | 0.0 |
out | Nitrate | daily applied nitrate | DOUBLE | g/(m2 d) | - | - | 0.0 |
out | NitrateAndAmmonia | daily applied nitrate and ammonia | DOUBLE | g/(m2 d) | - | - | 0.0 |
out | Phosphorus | daily applied Phosphorus | DOUBLE | g/(m2 d) | - | - | 0.0 |
out | Potassium | daily applied Potassium | DOUBLE | g/(m2 d) | - | - | 0.0 |
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.model.FWSimComponent
net.simplace.sim.model.FWSimComponent.TEST_STATE
-
Field Summary
Fields inherited from class net.simplace.sim.model.FWSimComponent
iFieldMap, iFrequence, iInputMap, iJexlRule, iMasterComponentGroup, iName, iOrderNumber, isComponentGroup, iSimComponentElement, iSimModel, iVarMap
-
Constructor Summary
ConstructorDescriptionDeprecated.Empty constructor used by class.forName()SimpleFertilizer
(String aName, HashMap<String, net.simplace.sim.util.FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, net.simplace.sim.util.FWSimVarMap aVarMap, int aOrderNumber) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected net.simplace.sim.model.FWSimComponent
clone
(net.simplace.sim.util.FWSimVarMap aVarMap) Deprecated.creates a clone from this SimComponent for use in other threadsDeprecated.fillTestVariables
(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) Deprecated.called for single component test to check the components algorithm.protected void
init()
Deprecated.protected void
process()
Deprecated.Methods inherited from class net.simplace.sim.model.FWSimComponent
addVariable, bind, checkCondition, createSimComponent, createSimComponent, createSimComponent, createSimComponent, doProcess, getConstantVariables, getContentType, getCreateFormXML, getDescription, getEditFormXML, getFieldMap, getFrequence, getFrequenceRuleScript, getInputs, getInputVariables, getMasterComponentGroup, getName, getOrderNumber, getOutputVariables, getVariable, getVariableField, getVarMap, initialize, isConditionCheck, isVariableAvailable, performLinks, performLinks, readInputs, removeVariable, reset, runComponentTest, setVariablesDefault, toComponentLinkingXML, toDocXML, toGroupXML, toOutputDefinitionXML, toResourcesDataXML, toResourcesDefinitionXML, toString, toXML, writeVarInfos
-
Constructor Details
-
SimpleFertilizer
public SimpleFertilizer(String aName, HashMap<String, net.simplace.sim.util.FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, net.simplace.sim.util.FWSimVarMap aVarMap, int aOrderNumber) Deprecated.- Parameters:
aName
-aFieldMap
-aInputMap
-aSimComponentElement
-aVarMap
-aOrderNumber
-
-
SimpleFertilizer
public SimpleFertilizer()Deprecated.Empty constructor used by class.forName()
-
-
Method Details
-
createVariables
Deprecated.- Specified by:
createVariables
in interfacenet.simplace.sim.util.FWSimFieldContainer
- Specified by:
createVariables
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
FWSimComponent.createVariables()
-
init
protected void init()Deprecated.- Specified by:
init
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
FWSimComponent.init()
-
process
protected void process()Deprecated.- Specified by:
process
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
FWSimComponent.process()
-
fillTestVariables
public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> fillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) Deprecated.called for single component test to check the components algorithm.- Specified by:
fillTestVariables
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
net.simplace.sim.util.FWSimFieldContainer#fillTestVariables(int aParamIndex, TEST_STATE aDefineOrCheck)
-
clone
protected net.simplace.sim.model.FWSimComponent clone(net.simplace.sim.util.FWSimVarMap aVarMap) Deprecated.creates a clone from this SimComponent for use in other threads- Specified by:
clone
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
FWSimComponent.clone(net.simplace.sim.util.FWSimVarMap)
-