net.simplace.sim.components.phenology.CustomPhenologyStage

Outputs the Date/DOY when an user defined DVS is reached

Stage calculation

The module takes an arbitrary value for development stage as paramer cStageDVS and the actual development as an input iDVS.

When the actual DVS is bigger than the threshold (iDVS > cStageDVS) then the current simulation date / day of year is stored in the outputs StageDate and StageDOY. Additionally the actual DVS value is stored in the output StageDVS and StageReached and IsStage are set to true. Notice that IsStage is set to false again on the following day, whereas all other outputs keep their values.

In order to reset the output values when a new vegetation period starts, you have to set iDoHarvest to true.

Example

|  <simcomponent id="CustomPhenologyStage" class="net.simplace.sim.components.phenology.CustomPhenologyStage">
|     <input id="cStageDVS">0.55</input>
|     <input id="iDVS" source="Phenology.sDVS" />
|     <input id="iDoHarvest" source="DefaultManagement.DoHarvest" />
|  </simcomponent>

...

|  <out id="IsStage" datatype="BOOLEAN" rule="CustomPhenologyStage.IsStage" />
|  <out id="StageReached" datatype="BOOLEAN" rule="CustomPhenologyStage.StageReached" />
|  <out id="StageDVS" datatype="DOUBLE" rule="CustomPhenologyStage.StageDVS" />
|  <out id="StageDOY" datatype="INT" rule="CustomPhenologyStage.StageDOY" />
|  <out id="StageDate" datatype="DATE" rule="CustomPhenologyStage.StageDate" />

Component Variables

Content TypeNameDescriptionData TypeUnitMin ValueMax ValueDefault Value
constantcStageDVSDVS required to reach the specific development stageDOUBLE0.03.0-
inputiDVSactual DVSDOUBLE0.03.00.0
inputiDoHarvestIf true, then the stages are reset.BOOLEAN--false
outIsStagetrue on the day when stage has been reachedBOOLEAN1--false
outStageDOYDOY at which the stage has been reachedINT0366-
outStageDVSDVS at which the stage has been reached (can be slightly higher than the treshold)DOUBLE0.03.0-
outStageDateDate at which the stage has been reachedDATE---
outStageReachedtrue on the days after stage has been reachedBOOLEAN1--false



public class CustomPhenologyStage extends net.simplace.sim.model.FWSimComponent {
// Public Constructors
public CustomPhenologyStage();


// Public Instance Methods
public HashMap createVariables(); // Defines
net.simplace.sim.model.FWSimComponent


Create the FWSimVariables as interface for this SimComponent

// Protected Instance Methods
protected void init(); // Defines net.simplace.sim.model.FWSimComponent

Initializes the fields by getting input and output FWSimVariables from VarMap
protected void process(); // Defines net.simplace.sim.model.FWSimComponent

Process the algorithm and write the results back to VarMap
protected FWSimComponent clone(FWSimVarMap aVarMap);
// Defines net.simplace.sim.model.FWSimComponent


creates a clone from this SimComponent for use in other threads


}



Hierarchy: java.lang.Object - net.simplace.sim.model.FWSimComponent (net.simplace.sim.util.FWSimFieldContainer) - CustomPhenologyStage