Show:
Defined in: ABE\abe_doc.js:126
Module: ABE

Definition of an Agent. The main part of the agent defintion is a list of assignments of stand treatment programmes (STP) to mixture types. In addition, logic can be added for selecting mixture types from forest attributes.

   var x = { stp: { "fasy": ["beech_default_1", "beech_default_2", "beech_default3"],
                    "piab": "spruce_default" }
             onSelect: function(){ return "fasy"; }
            }

Item Index

Properties

Events

Properties

stp

Object

Defined in ABE\abe_doc.js:141

Events

onSelect

String

Defined in ABE\abe_doc.js:145

onSelect allows to provide custom code to select the mixture type for a given stand.

Example:

 onSelect: function() { if (stand.share('piab') > 50)
                                              return 'piab';
                                          return 'default'; }