GCBM
Namespaces
cbmbuildlandunitmodule.cpp File Reference
#include "moja/modules/cbm/cbmbuildlandunitmodule.h"
#include <moja/flint/ivariable.h>
#include <moja/signals.h>
#include <moja/notificationcenter.h>
Include dependency graph for cbmbuildlandunitmodule.cpp:

Namespaces

 moja
 
 moja::modules
 
 moja::modules::cbm
 

Detailed Description

The CBMBuildLandUnitModule sets up the initial state of each pixel – the age (or -1 if null, indicating non-forest), the starting classifier set, and the value of the landUnitBuildSuccess variable. The module checks the value of the landUnitBuildSuccess variable to determine whether to simulate a pixel or not. A pixel can only be simulated if the CBMBuildLandUnitModule module finds a non-null classifier set for the pixel (individual classifiers may be null, as long as at least one in the set has a value), and none of the variables in the user-defined mask have a null value