<?xml version="1.0" encoding="UTF-8"?>
<!--This is the DTD for dispersal.-->

<!--Root-->
<!ELEMENT disperse (di_minDbhForReproduction, di_weibullCanopySTR?, di_weibullCanopyBeta?,
     di_weibullCanopyDispersal?, di_weibullCanopyTheta?, di_weibullGapSTR?,
     di_weibullGapBeta?, di_weibullGapDispersal?, di_weibullGapTheta?, 
     di_lognormalCanopySTR?, di_lognormalCanopyBeta?, di_lognormalCanopyX0?,
     di_lognormalCanopyXb?, di_lognormalGapSTR?, di_lognormalGapBeta?, 
     di_lognormalGapX0?, di_lognormalGapXb?, di_suckerSTR?, di_suckerBeta?, 
     di_maxGapDensity?, di_gapFunction?, di_canopyFunction?, di_nonSpatialSlopeOfLambda?,
     di_nonSpatialInterceptOfLambda?, di_maxSearchRadius?, di_directionMaxDispersal?,
     di_anisotropicAmplitude?, di_seedDistributionMethod, di_standardDeviation?,
     di_clumpingParameter?)>
 
<!--Minimum dbh for reproduction - species-specific-->
<!ELEMENT di_minDbhForReproduction (di_mdfrVal+)*>
<!ELEMENT di_mdfrVal (#PCDATA)>
<!ATTLIST di_mdfrVal species IDREF #REQUIRED>

<!--Weibull canopy parameters-->
<!--Weibull canopy STR - species-specific-->
<!ELEMENT di_weibullCanopySTR (di_wcsVal+)*>
<!ELEMENT di_wcsVal (#PCDATA)>
<!ATTLIST di_wcsVal species IDREF #REQUIRED>

<!--Weibull canopy beta - species-specific-->
<!ELEMENT di_weibullCanopyBeta (di_wcbVal+)*>
<!ELEMENT di_wcbVal (#PCDATA)>
<!ATTLIST di_wcbVal species IDREF #REQUIRED>

<!--Weibull canopy dispersal - species-specific-->
<!ELEMENT di_weibullCanopyDispersal (di_wcdVal+)*>
<!ELEMENT di_wcdVal (#PCDATA)>
<!ATTLIST di_wcdVal species IDREF #REQUIRED>

<!--Weibull canopy theta - species-specific-->
<!ELEMENT di_weibullCanopyTheta (di_wctVal+)*>
<!ELEMENT di_wctVal (#PCDATA)>
<!ATTLIST di_wctVal species IDREF #REQUIRED>


<!--Weibull gap parameters-->
<!--Weibull gap STR - species-specific-->
<!ELEMENT di_weibullGapSTR (di_wgsVal+)*>
<!ELEMENT di_wgsVal (#PCDATA)>
<!ATTLIST di_wgsVal species IDREF #REQUIRED>

<!--Weibull gap beta - species-specific-->
<!ELEMENT di_weibullGapBeta (di_wgbVal+)*>
<!ELEMENT di_wgbVal (#PCDATA)>
<!ATTLIST di_wgbVal species IDREF #REQUIRED>

<!--Weibull gap dispersal - species-specific-->
<!ELEMENT di_weibullGapDispersal (di_wgdVal+)*>
<!ELEMENT di_wgdVal (#PCDATA)>
<!ATTLIST di_wgdVal species IDREF #REQUIRED>

<!--Weibull gap theta - species-specific-->
<!ELEMENT di_weibullGapTheta (di_wgtVal+)*>
<!ELEMENT di_wgtVal (#PCDATA)>
<!ATTLIST di_wgtVal species IDREF #REQUIRED>


<!--Lognormal canopy parameters-->
<!--Lognormal canopy STR - species-specific-->
<!ELEMENT di_lognormalCanopySTR (di_lcsVal+)*>
<!ELEMENT di_lcsVal (#PCDATA)>
<!ATTLIST di_lcsVal species IDREF #REQUIRED>

<!--Lognormal canopy beta - species-specific-->
<!ELEMENT di_lognormalCanopyBeta (di_lcbVal+)*>
<!ELEMENT di_lcbVal (#PCDATA)>
<!ATTLIST di_lcbVal species IDREF #REQUIRED>

<!--Lognormal canopy X0 - species-specific-->
<!ELEMENT di_lognormalCanopyX0 (di_lcx0Val+)*>
<!ELEMENT di_lcx0Val (#PCDATA)>
<!ATTLIST di_lcx0Val species IDREF #REQUIRED>

<!--Lognormal canopy Xb - species-specific-->
<!ELEMENT di_lognormalCanopyXb (di_lcxbVal+)*>
<!ELEMENT di_lcxbVal (#PCDATA)>
<!ATTLIST di_lcxbVal species IDREF #REQUIRED>


<!--Lognormal gap parameters-->
<!--Lognormal gap STR - species-specific-->
<!ELEMENT di_lognormalGapSTR (di_lgsVal+)*>
<!ELEMENT di_lgsVal (#PCDATA)>
<!ATTLIST di_lgsVal species IDREF #REQUIRED>

<!--Lognormal gap beta - species-specific-->
<!ELEMENT di_lognormalGapBeta (di_lgbVal+)*>
<!ELEMENT di_lgbVal (#PCDATA)>
<!ATTLIST di_lgbVal species IDREF #REQUIRED>

<!--Lognormal gap X0 - species-specific-->
<!ELEMENT di_lognormalGapX0 (di_lgx0Val+)*>
<!ELEMENT di_lgx0Val (#PCDATA)>
<!ATTLIST di_lgx0Val species IDREF #REQUIRED>

<!--Lognormal gap Xb - species-specific-->
<!ELEMENT di_lognormalGapXb (di_lgxbVal+)*>
<!ELEMENT di_lgxbVal (#PCDATA)>
<!ATTLIST di_lgxbVal species IDREF #REQUIRED>

<!--**************************************************
      Suckering parameters
	**************************************************-->

<!--Sucker STR - species-specific.  No disperse
	function specified-->
<!ELEMENT di_suckerSTR (di_ssVal+)*>
<!ELEMENT di_ssVal (#PCDATA)>
<!ATTLIST di_ssVal species IDREF #REQUIRED>

<!--Sucker Beta - species-specific.  No disperse
	function specified-->
<!ELEMENT di_suckerBeta (di_sbVal+)*>
<!ELEMENT di_sbVal (#PCDATA)>
<!ATTLIST di_sbVal species IDREF #REQUIRED>

<!--Gap density - maximum number of trees of reproductive
 	size allowed in an area for it to qualify for gap
 	status-->
<!ELEMENT di_maxGapDensity (#PCDATA)>

<!--The function used by a species when dispersing from gap
 	conditions - expected values are 0 for weibull and 1 for
 	lognormal-->
<!ELEMENT di_gapFunction (di_gfVal+)*>
<!ELEMENT di_gfVal (#PCDATA)>
<!ATTLIST di_gfVal species IDREF #REQUIRED>

<!--Function used by a species when dispersing from canopy
	conditions - expected values are same as above-->
<!ELEMENT di_canopyFunction (di_cfVal+)*>
<!ELEMENT di_cfVal (#PCDATA)>
<!ATTLIST di_cfVal species IDREF #REQUIRED>


<!--**************************************************
      Non-spatial dispersal parameters
	**************************************************-->

<!--Slope of lambda-->
<!ELEMENT di_nonSpatialSlopeOfLambda (di_nssolVal+)*>
<!ELEMENT di_nssolVal (#PCDATA)>
<!ATTLIST di_nssolVal species IDREF #REQUIRED>

<!--Intercept of lambda-->
<!ELEMENT di_nonSpatialInterceptOfLambda (di_nsiolVal+)*>
<!ELEMENT di_nsiolVal (#PCDATA)>
<!ATTLIST di_nsiolVal species IDREF #REQUIRED>

<!--**************************************************
      Anisotropic dispersal parameters
	**************************************************-->
<!--Maximum search radius for reproducing neighbors, in meters-->	
<!ELEMENT di_maxSearchRadius (#PCDATA)*>

<!--Azimuth direction of maximum dispersal distance, in radians-->
<!ELEMENT di_directionMaxDispersal (di_dmdVal+)*>
<!ELEMENT di_dmdVal (#PCDATA)>
<!ATTLIST di_dmdVal species IDREF #REQUIRED>

<!--Amplitude of anisotropic effect-->
<!ELEMENT di_anisotropicAmplitude (di_aaVal+)*>
<!ELEMENT di_aaVal (#PCDATA)>
<!ATTLIST di_aaVal species IDREF #REQUIRED>

<!--**************************************************
      Stochasticity parameters
	**************************************************-->
<!--Seed distribution method.  Should match an enum value of seedAdjustment
in DisperseOrg.h-->	
<!ELEMENT di_seedDistributionMethod (#PCDATA)*>

<!--Standard deviation for normal or lognormal seed distribution method-->
<!ELEMENT di_standardDeviation (di_sdVal+)*>
<!ELEMENT di_sdVal (#PCDATA)>
<!ATTLIST di_sdVal species IDREF #REQUIRED>

<!--Clumping parameter for negative binomial seed distribution method-->
<!ELEMENT di_clumpingParameter (di_cpVal+)*>
<!ELEMENT di_cpVal (#PCDATA)>
<!ATTLIST di_cpVal species IDREF #REQUIRED>