The Capsis training online

Back to the table of contents

Solution: Solution: 15. Script

Try to work with the helping elements before looking at the solution…

Helping elements

import capsis.kernel.extensiontype.*;
import capsis.extension.intervener.*; 
 
(...)
 
// Intervention: cut tree between 5 and 15m height
Intervener thinner = new DHAThinner (DHAThinner.HEIGHT, 5, 15);
step = s.runIntervener (thinner, step);

A possible solution

Pieces of solution, to help adapt the script Reopen the save project in capsis graphical user interface to check the number of trees over time graph

Back to the table of contents