C# Class Landis.Harvest.InclusionRequirement

Inheritance: IRequirement
Show file Open project: LANDIS-II-Foundation/Extensions-Disturbance Class Usage Examples

Public Methods

Method Description
InclusionRequirement ( List rule_list ) : Landis.Species

constructor, assigns the list of inclusion rules

Private Methods

Method Description
CheckRule ( Stand stand, InclusionRule rule ) : bool
IRequirement ( Stand stand ) : bool

use combination of all rules in rule_list to determine if this stand meets this inclusion requirement

check_rule ( Stand stand, int>.Dictionary stand_cohorts, InclusionRule rule, string key, int site_count, double percent ) : bool

calculate the boolean expression for the given rule and stand parameters.

check_rule ( Stand stand, InclusionRule rule ) : bool
get_key ( string key_start, AgeRange age_range ) : string

make a string key for the dictionary. format is

init_dictionary ( Stand stand, int>.Dictionary stand_cohorts ) : void

initialize the cohort dictionary for this stand's evaluation

Method Details

InclusionRequirement() public method

constructor, assigns the list of inclusion rules
public InclusionRequirement ( List rule_list ) : Landis.Species
rule_list List
return Landis.Species