//-------------------------------------------------------------------- public static int GetBiomassRemoved(this Stand stand, ISpecies species) { return stand.BiomassRemovedBySpecies()[species.Index]; }
//-------------------------------------------------------------------- public static void ResetBiomassRemoved(this Stand stand) { int[] biomassRemovedPerSpecies = stand.BiomassRemovedBySpecies(); for (int i = 0; i < biomassRemovedPerSpecies.Length; i++) biomassRemovedPerSpecies[i] = 0; }
//-------------------------------------------------------------------- public static void RecordBiomassRemoved(this Stand stand, ISpecies species, int reduction) { stand.BiomassRemovedBySpecies()[species.Index] += reduction; }