-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTestDimensionAnalysis.h
143 lines (125 loc) · 5.08 KB
/
TestDimensionAnalysis.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
//---------------------------------------------------------------------------
// TestDimensionAnalysis
//---------------------------------------------------------------------------
#if !defined(TestDimensionAnalysis_H)
#define TestDimensionAnalysis_H
#include <fstream>
class clTreePopulation;
class clTree;
/**
* Writes the parameter file for run 1. There are 19 species (Species 13 is
* not used). The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. All 18 used species use equation
* 1. The first 9 use a correction factor; the second 9 don't.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile1();
/**
* Writes the parameter file for run 2. There are 19 species (Species 13 is
* not used). The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. All 18 used species use equation
* 2. The first 9 use a correction factor; the second 9 don't.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile2();
/**
* Writes the parameter file for run 3. There are 19 species (Species 13 is
* not used). The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. All 18 used species use equation
* 3. The first 9 use a correction factor; the second 9 don't.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile3();
/**
* Writes the parameter file for run 4. There are 19 species (Species 13 is
* not used). The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. The first 9 species use equation
* 4; the second 9 use equation 5.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile4();
/**
* Writes the parameter file for run 5. There are 19 species (Species 13 is
* not used). The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. The first 9 species use equation
* 6; the second 9 use equation 7.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile5();
/**
* Writes the parameter file for run 6. There are 19 species (Species 13 is
* not used). The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. All 18 used species use equation
* 8. The first 9 use a correction factor; the second 9 don't.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile6();
/**
* Writes the parameter file for run 7. There are 19 species (Species 13 is
* not used). The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. All 18 used species use equation
* 9. The first 9 use a correction factor; the second 9 don't.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile7();
/**
* Writes the parameter file for run 8. There are 19 species but only the first
* 9 are used. The biomass calculator is the only behavior and is applied to
* saplings and adults of all used species. All used species use dia=DBH^2.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLFile8();
/**
* Writes an error file where an equation ID is unrecognized.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLErrorFile1();
/**
* Writes an error file where a DBH units value is unrecognized.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLErrorFile2();
/**
* Writes an error file where the biomass calculator is applied to a seedling.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLErrorFile3();
/**
* Writes an error file where a biomass units value is unrecognized.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLErrorFile4();
/**
* Writes an error file where a correction factor flag value is unrecognized.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLErrorFile5();
/**
* Writes an error file where a dia meaning value is unrecognized.
* @return Filename written.
*/
const char* WriteDimensionAnalysisXMLErrorFile6();
/**
* Writes common portions of the test parameter files (tree pop, plot, etc).
* This ends with </behaviorList>.
* @param oOut File stream to write to.
*/
void WriteDimensionAnalysisCommonStuff(std::fstream &oOut);
/**
* Writes common portions of the test parameter files (tree pop, plot, etc).
* This ends with </behaviorList>. There are only two species for this
* file.
* @param oOut File stream to write to.
*/
void WriteDimensionAnalysisCommonErrorStuff(std::fstream &oOut);
/**
* Creates the trees. 3 of each species are created (Species 1 to Species 19,
* Species 13 excepted). There is one of DBH 5 cm, one of DBH 50 cm, and
* one of DBH 100 cm. Pointers to the new trees are placed in the passed
* array.
* @param p_oPop Tree population object.
* @return Array of created trees, 54 trees long.
*/
clTree** CreateDimensionAnalysisTrees(clTreePopulation *p_oPop);
//---------------------------------------------------------------------------
#endif // TestBiomassCalculator_H