Here is a sample Value Request, a bit of Xml used internally by SharpHog, and defined by the ValueRequest.xsd schema. Each hour the model sends a Request for all the Values that come from the Xslt equations, then stores them for use during the iteration. This sample only requests the the EggDensity, the EggActivity, the EggMortality, and the EggDevelopment Rates for this moment. Provided with the Request are the Spot conditions used to calculate the rates, and the Initial Tree Counts (which are used currently only in Initial Population equations).
<?xml version="1.0" encoding="utf-8" ?>
<Request>
<Value>
<Density>Egg</Density>
</Value>
<Value>
<Activity>Egg</Activity>
</Value>
<Value>
<Mortality>Egg</Mortality>
</Value>
<Value>
<Development>Egg</Development>
</Value>
<SpotStatus>
<ZeroHour>4321</ZeroHour>
<OrdinalHour>4321</OrdinalHour>
<OrdinalDay>180</OrdinalDay>
<OrdinalDaySquared>32400</OrdinalDaySquared>
<HourOfDay>1</HourOfDay>
<Latitude>33.3</Latitude>
<Longitude>-88.8</Longitude>
<Temperature>77.7</Temperature>
<LoblollyRatio>0.8</LoblollyRatio>
<ShortleafRatio>0.2</ShortleafRatio>
<PineBasalArea>22.9681</PineBasalArea>
<HardwoodBasalArea>0.0</HardwoodBasalArea>
<MeanDiameterBreastHeight>40.64</MeanDiameterBreastHeight>
<AverageInfestedBarkArea>1559</AverageInfestedBarkArea>
<PinesPerHectare>183</PinesPerHectare>
</SpotStatus>
<TreeCount>
<Attacking>15</Attacking>
<Parent>4</Parent>
<Egg>12</Egg>
<Immature>20</Immature>
<Brood>15</Brood>
<Emerging>0</Emerging>
</TreeCount>
</Request>
