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 public class SimpleFertilizer extends net.simplace.sim.model.FWSimComponent
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.:

DOY50180320
Amount130.5120127.3

has to be provided as array

50130.5180120320127.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 TypeNameDescriptionData TypeUnitMin ValueMax ValueDefault Value
constantcAmmoniaTABtable with effective applications of ammonia as function of day number (DOY)DOUBLEARRAYg/(m2 d)---
constantcNitrateAndAmmoniaTABtable with effective applications of nitrate and ammonia as function of day number (DOY)DOUBLEARRAYg/(m2 d)---
constantcNitrateTABtable with effective applications of nitrate as function of day number (DOY)DOUBLEARRAYg/(m2 d)---
constantcPhosphorusTABtable with effective applications of Phosphorus as function of day number (DOY)DOUBLEARRAYg/(m2 d)---
constantcPotassiumTABtable with effective applications of ammonia as function of day number (DOY)DOUBLEARRAYg/(m2 d)---
outAmmoniadaily applied ammoniaDOUBLEg/(m2 d)--0.0
outNitratedaily applied nitrateDOUBLEg/(m2 d)--0.0
outNitrateAndAmmoniadaily applied nitrate and ammoniaDOUBLEg/(m2 d)--0.0
outPhosphorusdaily applied PhosphorusDOUBLEg/(m2 d)--0.0
outPotassiumdaily applied PotassiumDOUBLEg/(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

    Constructors
    Constructor
    Description
    Deprecated.
    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 Type
    Method
    Description
    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
    HashMap<String,net.simplace.sim.util.FWSimVariable<?>>
    Deprecated.
     
    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.
    protected void
    Deprecated.
     
    protected void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> createVariables()
      Deprecated.
      Specified by:
      createVariables in interface net.simplace.sim.util.FWSimFieldContainer
      Specified by:
      createVariables in class net.simplace.sim.model.FWSimComponent
      See Also:
      • FWSimComponent.createVariables()
    • init

      protected void init()
      Deprecated.
      Specified by:
      init in class net.simplace.sim.model.FWSimComponent
      See Also:
      • FWSimComponent.init()
    • process

      protected void process()
      Deprecated.
      Specified by:
      process in class net.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 class net.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 class net.simplace.sim.model.FWSimComponent
      See Also:
      • FWSimComponent.clone(net.simplace.sim.util.FWSimVarMap)