C# Class Landis.Extension.BiomassHarvest.PartialThinning

Static class for partial thinning.
Mostrar archivo Open project: LANDIS-II-Foundation/Extensions-Disturbance

Public Methods

Method Description
MakeInputValueException ( string value, string message ) : Edu.Wisc.Forest.Flel.Util.InputValueException
ReadAgeOrRange ( Edu.Wisc.Forest.Flel.Util.StringReader reader, int &index ) : InputValue

Reads a cohort age or a range of ages (format: age-age) followed by an optional percentage for partial thinning.

The optional percentage is bracketed by parenthesis.

ReadPercentage ( Edu.Wisc.Forest.Flel.Util.StringReader reader, int &index ) : InputValue

Reads a percentage for partial thinning of a cohort age or age range.

The percentage is bracketed by parentheses.

ReadWhitespace ( Edu.Wisc.Forest.Flel.Util.StringReader reader ) : string

Reads whitespace from a string reader.

ReadWord ( Edu.Wisc.Forest.Flel.Util.StringReader reader, char delimiter ) : string

Reads a word from a string reader.

The word is terminated by whitespace, the end of input, or a particular delimiter character.

Method Details

MakeInputValueException() public static method

public static MakeInputValueException ( string value, string message ) : Edu.Wisc.Forest.Flel.Util.InputValueException
value string
message string
return Edu.Wisc.Forest.Flel.Util.InputValueException

ReadAgeOrRange() public static method

Reads a cohort age or a range of ages (format: age-age) followed by an optional percentage for partial thinning.
The optional percentage is bracketed by parenthesis.
public static ReadAgeOrRange ( Edu.Wisc.Forest.Flel.Util.StringReader reader, int &index ) : InputValue
reader Edu.Wisc.Forest.Flel.Util.StringReader
index int
return InputValue

ReadPercentage() public static method

Reads a percentage for partial thinning of a cohort age or age range.
The percentage is bracketed by parentheses.
public static ReadPercentage ( Edu.Wisc.Forest.Flel.Util.StringReader reader, int &index ) : InputValue
reader Edu.Wisc.Forest.Flel.Util.StringReader
index int
return InputValue

ReadWhitespace() public static method

Reads whitespace from a string reader.
public static ReadWhitespace ( Edu.Wisc.Forest.Flel.Util.StringReader reader ) : string
reader Edu.Wisc.Forest.Flel.Util.StringReader
return string

ReadWord() public static method

Reads a word from a string reader.
The word is terminated by whitespace, the end of input, or a particular delimiter character.
public static ReadWord ( Edu.Wisc.Forest.Flel.Util.StringReader reader, char delimiter ) : string
reader Edu.Wisc.Forest.Flel.Util.StringReader
delimiter char
return string