planting Class
planting\planting.js:2
        The planting library includes management operations related to artificial and natural regeneration.
Commonalities....
Methods
dynamic
                    
                            - 
                                            options
Dynamically schedules planting activities based on provided options.
Parameters:
- 
                                            optionsObjectOptions for configuring the dynamic planting. - 
                                                        idStringA unique identifier for the planting activity (default: 'planting'). 
- 
                                                        scheduleScheduleThe planting schedule. 
- 
                                                        speciesSelectivityObject | FunctionDefines the target species and their relative weights. This can be an object with species as keys and weights as values, or a function that returns such an object. 
- 
                                                        speciesDefaultsObjectDefault settings for species (default: lib.planting.speciesDefaults). 
- 
                                                        patchesStringshould planting should happen only on some selected patches (default: undefined). 
- 
                                                        sendSignalString | Undefinedsignal send out after final femel harvest activity (default: undefined). 
- 
                                                        constraintString | Undefinedconstraint (default: undefined). 
 
- 
                                                        
general
                    
                            - 
                                            options
Schedules a general planting activity.
Parameters:
- 
                                            optionsObjectOptions for configuring the general planting. - 
                                                        idStringA unique identifier for the activity (default: 'planting'). 
- 
                                                        scheduleNumberThe planting schedule (default: 1). 
- 
                                                        speciesStringThe species to plant. Mandatory. 
- 
                                                        spacingNumberThe spacing between plants (default: 10). 
- 
                                                        fractionNumberThe fraction of the area to be planted (default: 1). 
- 
                                                        treeHeightNumberInitial tree height (default: 0.3). 
- 
                                                        patternString | UndefinedPlanting pattern (e.g., "rect2"). (default: undefined). 
- 
                                                        clearBooleanWhether to clear existing vegetation before planting (default: false). 
- 
                                                        sendSignalString | Undefinedsignal send after planting activity (default: undefined). 
- 
                                                        constraintString | Undefinedconstraint (default: undefined). 
 
- 
                                                        
Example:
// NOTE: lib.planting is an object, not a class. No need to use 'new'
                    lib.planting.general({
                        schedule: 2,
                        species: 'Pine',
                        spacing: 12,
                        pattern: 'rect'
                    });Properties
speciesDefaults
                        Object
                    
                    
                    
                    
                    
                        
                    
                        Default planting settings for various species.
Example:
// Accessing default settings for 'piab' (spruce)
                    const spruceDefaults = lib.planting.speciesDefaults.piab;
                    console.log(spruceDefaults);
                    // Output: { species: 'piab', h: 0.3, age: 1, fraction: [Function] } The ABE-library
            The ABE-library