14. Output with complex (rule based) frequency

Top  Previous  Next

Lets also set a custom frequency for our outputs.

 

Task 14. In solution 14_ComplexFrequency.sol.xml we have two DefaultManagement SimComponents:

 - <simcomponent id="Management"... : regular management rules for triggering sowing/harvesting

 - <simcomponent id="DoOutput" : Same as above but flag when a harvest event happens

 

Change frequence="DAILY" to frequence="YEARLY" in the output section and output when DoOutput.DoHarvest=true.

 

 Hints

  - Change the frequence of the output with id="Lintul2Daily" to YEARLY

        - Add a rule to the output:

               <output id="Lintul2Daily" interface="lintul2daily" frequence="YEARLY" cachesize="2" rule="DoOutput.DoHarvest">

 

 Solution

    Open 14_ComplexFrequency_Answer.sol.xml to see how it should be done.

 

 

*ModelSolutions are found in simplace_modules\test\training\solution\1_WorkingWithSolutions