The Frame Configuration (FrameConfig) is a short snippet of Xml that contains specific instructions to the model for that run.  These instructions (Number of days to simulate, hour of the day to report results, number of initial groups of each life-stage, optional, universal--for that frame--temperature offset...) are external from the other, data-value, properties of a Frame (Date, Latitude, Longitude, Currently Infested Tree Count, Previously Infested Tree Count...)

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="FrameConfig">
  <xs:complexType>
    <xs:all>
      <xs:element name="RunDuration" type="xs:int" default="60"/>
      <xs:element name="TemperatureOffset" type="xs:double" default="0.0" />
      <xs:element name="ReportHour" type="xs:double" default="2" />
      <xs:element name="CohortCount">
        <xs:complexType>
          <xs:all>
            <xs:element name="Attacking" type="xs:int" default="50" />
            <xs:element name="Parent" type="xs:int" default="50" />
            <xs:element name="Egg" type="xs:int" default="200" />
            <xs:element name="Immature" type="xs:int" default="1000" />
            <xs:element name="Brood" type="xs:int" default="250"/>
            <xs:element name="Emerging" type="xs:int" default="1" />
          </xs:all>
        </xs:complexType>
      </xs:element>
    </xs:all>
  </xs:complexType>
  </xs:element>
</xs:schema>

 

The snippet of Xml, adhering to the above schema, is included, as a whole, as just one value in each row of the Frame table of the SharpHog SPBModel schema--see the escaped special characters in the SPBModel Input sample.

Check XHTML « spb.xanderlih.com Copyright © Xander Lih 2000-2012  » Check CSS