<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.heurekaslu.se/w/index.php?action=history&amp;feed=atom&amp;title=Handle_different_time_periods</id>
	<title>Handle different time periods - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.heurekaslu.se/w/index.php?action=history&amp;feed=atom&amp;title=Handle_different_time_periods"/>
	<link rel="alternate" type="text/html" href="https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;action=history"/>
	<updated>2026-10-31T01:56:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4624&amp;oldid=prev</id>
		<title>Peder at 07:29, 26 May 2010</title>
		<link rel="alternate" type="text/html" href="https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4624&amp;oldid=prev"/>
		<updated>2010-05-26T07:29:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:29, 26 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:System design]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:System design&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Time periods&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Developer&amp;#039;s guide]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Developer&amp;#039;s guide]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A &amp;lt;tt&amp;gt;Tree&amp;lt;/tt&amp;gt; object contains values for all time periods treatments and growth prognosis has been made for. Those values that may change over time can be accessed both by an Array property and a regular property, such as &amp;lt;tt&amp;gt;DiameterArray&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Diameter&amp;lt;/tt&amp;gt;. With the regular property, the value in the current time period is retrieved; and via the array property the value in any time period can be retreived (the caller is responsible for bounds checking).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A &amp;lt;tt&amp;gt;Tree&amp;lt;/tt&amp;gt; object contains values for all time periods treatments and growth prognosis has been made for. Those values that may change over time can be accessed both by an Array property and a regular property, such as &amp;lt;tt&amp;gt;DiameterArray&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Diameter&amp;lt;/tt&amp;gt;. With the regular property, the value in the current time period is retrieved; and via the array property the value in any time period can be retreived (the caller is responsible for bounds checking).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Peder</name></author>
	</entry>
	<entry>
		<id>https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4612&amp;oldid=prev</id>
		<title>Peder at 07:02, 26 May 2010</title>
		<link rel="alternate" type="text/html" href="https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4612&amp;oldid=prev"/>
		<updated>2010-05-26T07:02:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:02, 26 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:System design]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Developer&#039;s guide]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A &amp;lt;tt&amp;gt;Tree&amp;lt;/tt&amp;gt; object contains values for all time periods treatments and growth prognosis has been made for. Those values that may change over time can be accessed both by an Array property and a regular property, such as &amp;lt;tt&amp;gt;DiameterArray&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Diameter&amp;lt;/tt&amp;gt;. With the regular property, the value in the current time period is retrieved; and via the array property the value in any time period can be retreived (the caller is responsible for bounds checking).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A &amp;lt;tt&amp;gt;Tree&amp;lt;/tt&amp;gt; object contains values for all time periods treatments and growth prognosis has been made for. Those values that may change over time can be accessed both by an Array property and a regular property, such as &amp;lt;tt&amp;gt;DiameterArray&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Diameter&amp;lt;/tt&amp;gt;. With the regular property, the value in the current time period is retrieved; and via the array property the value in any time period can be retreived (the caller is responsible for bounds checking).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Peder</name></author>
	</entry>
	<entry>
		<id>https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4535&amp;oldid=prev</id>
		<title>Fkl at 13:25, 19 May 2010</title>
		<link rel="alternate" type="text/html" href="https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4535&amp;oldid=prev"/>
		<updated>2010-05-19T13:25:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:25, 19 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Increasing to the complexity is that some properties may change values due to a treatment. Diameter won&amp;#039;t change by a treatment, but number of stems will. A property that may have different values before and after treatments also has a residual property (and a residual array property), e.g. &amp;lt;tt&amp;gt;Stems&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;StemsResidual&amp;lt;/tt&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Increasing to the complexity is that some properties may change values due to a treatment. Diameter won&amp;#039;t change by a treatment, but number of stems will. A property that may have different values before and after treatments also has a residual property (and a residual array property), e.g. &amp;lt;tt&amp;gt;Stems&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;StemsResidual&amp;lt;/tt&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Objects of type &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;PredictionUnit&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt; also contains values that change over time and due to treatments, but the values are stored in separate classes. Methods named such as &amp;lt;tt&amp;gt;GetBefore(int period)&amp;lt;/tt&amp;gt; will get the value in a given period, while a property named &amp;lt;tt&amp;gt;Before&amp;lt;/tt&amp;gt; will get the value in the current time period.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Objects of type &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;PredictionUnit&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt; also contains values that change over time and due to treatments, but the values are stored in separate classes. Methods named such as &amp;lt;tt&amp;gt;GetBefore(int period)&amp;lt;/tt&amp;gt; will get the value in a given period, while a property named &amp;lt;tt&amp;gt;Before&amp;lt;/tt&amp;gt; will get the value in the current time period.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A special note should be made about the &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt;. The trees in the collection are sorted, but the sorting is only valid for the current time period. The &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt; provides &amp;lt;tt&amp;gt;InnerTreeCollection&amp;lt;/tt&amp;gt;s, which allows quick and easy access to all trees of a certain type (such as all saplings); but those collections can only be used in the current time period.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A special note should be made about the &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt;. The trees in the collection are sorted, but the sorting is only valid for the current time period. The &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt; provides &amp;lt;tt&amp;gt;InnerTreeCollection&amp;lt;/tt&amp;gt;s, which allows quick and easy access to all trees of a certain type (such as all saplings); but those collections can only be used in the current time period. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For more information, see [[Handling of tree states]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Through the &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt;, relevant information about time periods can be retrieved:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Through the &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt;, relevant information about time periods can be retrieved:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fkl</name></author>
	</entry>
	<entry>
		<id>https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4521&amp;oldid=prev</id>
		<title>Fkl at 09:13, 19 May 2010</title>
		<link rel="alternate" type="text/html" href="https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4521&amp;oldid=prev"/>
		<updated>2010-05-19T09:13:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:13, 19 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Through the &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt;, relevant information about time periods can be retrieved:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Through the &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt;, relevant information about time periods can be retrieved:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;innehåller också värden som förändras över tiden, men dessa lagras i separata klasser. På samma sätt här finns både metoder och properties för att hämta värdet i aktuell period eller i en specifik period, samt före och efter åtgärd.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;tt&amp;gt;&lt;/ins&gt;CurrentPeriod&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/tt&amp;gt;&lt;/ins&gt;: Current time period (of course, each prediction unit and tree has the same current time period as the treatment unit)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Periodlängden är vanligtvis fem år men kan faktiskt variera så det går inte att förutsätta femårsperioder. Relevant information om perioder kan hämtas via TreatmentUnit:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;tt&amp;gt;&lt;/ins&gt;PeriodLength&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/tt&amp;gt;&lt;/ins&gt;: Period length, in years, from previous time period to current time period (5 if current period is 0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;CurrentPeriod: Current time period (of course, each prediction unit and tree has the same current time period as the treatment unit)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;tt&amp;gt;&lt;/ins&gt;GetPeriodLength(int period)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/tt&amp;gt;&lt;/ins&gt;: Period length in a given period (from the period before &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the given &lt;/ins&gt;period &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to the given &lt;/ins&gt;period)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;PeriodLength: Period length, in years, from previous time period to current time period (5 if current period is 0)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;&amp;lt;tt&amp;gt;&lt;/ins&gt;Year&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/tt&amp;gt;: Relative year &lt;/ins&gt;(period 0 =&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; year &lt;/ins&gt;0) &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in current &lt;/ins&gt;period&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;GetPeriodLength(int period): Period length in a given period (from the period before &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	periodlängd i en specifik &lt;/del&gt;period &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(från &lt;/del&gt;period &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;innan till den givna perioden&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;&amp;lt;tt&amp;gt;&lt;/ins&gt;GetYear(int period)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/tt&amp;gt;: Relative year in a given &lt;/ins&gt;period&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Year	&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Relativt år &lt;/del&gt;(period 0 = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;år &lt;/del&gt;0)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, i aktuell &lt;/del&gt;period&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;&amp;lt;tt&amp;gt;&lt;/ins&gt;FindYear(int year)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/tt&amp;gt;: Gets the &lt;/ins&gt;period &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that corrensponds to the given relative year&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GetYear(int period)	&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Relativt år i en specifik &lt;/del&gt;period&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;FindYear(int year)	&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Returnerar den &lt;/del&gt;period &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;som motsvarar givet relativt år.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fkl</name></author>
	</entry>
	<entry>
		<id>https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4520&amp;oldid=prev</id>
		<title>Fkl: Created page with &#039;A &lt;tt&gt;Tree&lt;/tt&gt; object contains values for all time periods treatments and growth prognosis has been made for. Those values that may change over time can be accessed both by an A�?�&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.heurekaslu.se/w/index.php?title=Handle_different_time_periods&amp;diff=4520&amp;oldid=prev"/>
		<updated>2010-05-19T08:47:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;A &amp;lt;tt&amp;gt;Tree&amp;lt;/tt&amp;gt; object contains values for all time periods treatments and growth prognosis has been made for. Those values that may change over time can be accessed both by an A�?�&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;lt;tt&amp;gt;Tree&amp;lt;/tt&amp;gt; object contains values for all time periods treatments and growth prognosis has been made for. Those values that may change over time can be accessed both by an Array property and a regular property, such as &amp;lt;tt&amp;gt;DiameterArray&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Diameter&amp;lt;/tt&amp;gt;. With the regular property, the value in the current time period is retrieved; and via the array property the value in any time period can be retreived (the caller is responsible for bounds checking).&lt;br /&gt;
&lt;br /&gt;
Increasing to the complexity is that some properties may change values due to a treatment. Diameter won&amp;#039;t change by a treatment, but number of stems will. A property that may have different values before and after treatments also has a residual property (and a residual array property), e.g. &amp;lt;tt&amp;gt;Stems&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;StemsResidual&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Objects of type &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;PredictionUnit&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt; also contains values that change over time and due to treatments, but the values are stored in separate classes. Methods named such as &amp;lt;tt&amp;gt;GetBefore(int period)&amp;lt;/tt&amp;gt; will get the value in a given period, while a property named &amp;lt;tt&amp;gt;Before&amp;lt;/tt&amp;gt; will get the value in the current time period.&lt;br /&gt;
&lt;br /&gt;
A special note should be made about the &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt;. The trees in the collection are sorted, but the sorting is only valid for the current time period. The &amp;lt;tt&amp;gt;TreeCollection&amp;lt;/tt&amp;gt; provides &amp;lt;tt&amp;gt;InnerTreeCollection&amp;lt;/tt&amp;gt;s, which allows quick and easy access to all trees of a certain type (such as all saplings); but those collections can only be used in the current time period.&lt;br /&gt;
&lt;br /&gt;
Through the &amp;lt;tt&amp;gt;TreatmentUnit&amp;lt;/tt&amp;gt;, relevant information about time periods can be retrieved:&lt;br /&gt;
&lt;br /&gt;
innehåller också värden som förändras över tiden, men dessa lagras i separata klasser. På samma sätt här finns både metoder och properties för att hämta värdet i aktuell period eller i en specifik period, samt före och efter åtgärd.&lt;br /&gt;
Periodlängden är vanligtvis fem år men kan faktiskt variera så det går inte att förutsätta femårsperioder. Relevant information om perioder kan hämtas via TreatmentUnit:&lt;br /&gt;
;CurrentPeriod: Current time period (of course, each prediction unit and tree has the same current time period as the treatment unit)&lt;br /&gt;
;PeriodLength: Period length, in years, from previous time period to current time period (5 if current period is 0)&lt;br /&gt;
;GetPeriodLength(int period): Period length in a given period (from the period before 	periodlängd i en specifik period (från period innan till den givna perioden)&lt;br /&gt;
Year	Relativt år (period 0 = år 0), i aktuell period&lt;br /&gt;
GetYear(int period)	Relativt år i en specifik period&lt;br /&gt;
FindYear(int year)	Returnerar den period som motsvarar givet relativt år.&lt;/div&gt;</summary>
		<author><name>Fkl</name></author>
	</entry>
</feed>