Class DefaultManagement

java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.DefaultManagement
All Implemented Interfaces:
FWSimManagementComponent, FWSimFieldContainer

public class DefaultManagement extends FWSimComponent implements FWSimManagementComponent
Management component: sets management variables (content type mgm) when the rule of an action is true. Configuration example:
<simcomponent id="DefaultManagement" class="net.simplace.sim.components.DefaultManagement">
  <action rule="${CURRENT.DOY} eq 230">
    <mgm id="DoSow" datatype="BOOLEAN" default="false">true</mgm>
    <mgm id="Crop" datatype="CHAR">${vCropName}</mgm>
  </action>
  <action rule="${CURRENT.DOY} eq 180">
    <mgm id="DoHarvest" datatype="BOOLEAN" default="false">true</mgm>
    <mgm id="Crop" datatype="CHAR"/>
  </action>
</simcomponent>
In each step all action rules are evaluated; for a true rule the values of its mgm variables are set (constant or rule, combined with the current value by the mode SET, SUM, MAX, MIN; RESET sets the default). A variable is set only once per step. Variables with mode ITE are reset to their default when their rule is false.
Author:
Andreas Enders