<?xml version="1.0" encoding="UTF-8"?>
<!--Delft FEWS (Copyright 2003 WL | Delft Hydraulics) -->
<schema targetNamespace="http://www.wldelft.nl/fews" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:fews="http://www.wldelft.nl/fews" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<include schemaLocation="midlandsSharedTypes.xsd"/>
	<complexType name="McrmComplexType">
		<annotation>
			<documentation>LEGACY, NO LONGER USED</documentation>
		</annotation>
		<sequence>
			<element name="directories" type="fews:MidlandsFolderNamesComplexType">
				<annotation>
					<documentation>Contains all directory information required by the module</documentation>
				</annotation>
			</element>
			<element name="adapterfiles" type="fews:MidlandsAdapterFileNamesComplextype">
				<annotation>
					<documentation>Contains naems of all MCRM module adapter files</documentation>
				</annotation>
			</element>
			<element name="modulefiles" type="fews:MidlandsModuleFileNamesComplexType">
				<annotation>
					<documentation>Contains names of all MCRM module files</documentation>
				</annotation>
			</element>
			<element name="variables" type="fews:MidlandsVariablesComplexType">
				<annotation>
					<documentation>General variables</documentation>
				</annotation>
			</element>
			<element name="parameters" type="fews:McrmParametersComplexType"/>
			<element name="stateParameters" type="fews:McrmStateParametersComplexType" minOccurs="0">
				<annotation>
					<documentation>Contains list of state variables that need to be updated in the state input file.</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="McrmParametersComplexType">
		<annotation>
			<documentation>All MCRM parameters</documentation>
		</annotation>
		<sequence>
			<element name="inputParameters" type="fews:McrmInputParametersComplexType"/>
			<element name="outputParameters" type="fews:McrmOutputParametersComplexType"/>
		</sequence>
	</complexType>
	<complexType name="McrmInputParametersComplexType">
		<annotation>
			<documentation>Input parameters</documentation>
		</annotation>
		<sequence>
			<element name="hindcastParameters" type="fews:McrmInputHindcastParametersComplexType"/>
			<element name="forecastParameters" type="fews:McrmInputForecastParametersComplexType"/>
		</sequence>
	</complexType>
	<complexType name="McrmInputHindcastParametersComplexType">
		<annotation>
			<documentation>Input hindcast parameters</documentation>
		</annotation>
		<sequence>
			<element name="discharge" type="fews:idStringType"/>
			<element name="precipitation" type="fews:idStringType"/>
			<element name="temperature" type="fews:idStringType"/>
			<element name="evaporation" type="fews:idStringType"/>
			<element name="reservoirLevel" type="fews:idStringType" minOccurs="0"/>
		</sequence>
	</complexType>
	<complexType name="McrmInputForecastParametersComplexType">
		<annotation>
			<documentation>Input forecast parameters</documentation>
		</annotation>
		<sequence>
			<element name="precipitation" type="fews:idStringType"/>
			<element name="temperature" type="fews:idStringType"/>
			<element name="evaporation" type="fews:idStringType"/>
		</sequence>
	</complexType>
	<complexType name="McrmOutputParametersComplexType">
		<annotation>
			<documentation>Output parameters</documentation>
		</annotation>
		<sequence>
			<element name="hindcastParameters" type="fews:McrmOutputHindcastParametersComplexType"/>
			<element name="forecastParameters" type="fews:McrmOutputForecastParametersComplexType"/>
		</sequence>
	</complexType>
	<complexType name="McrmOutputHindcastParametersComplexType">
		<annotation>
			<documentation>Output hindcast parameters</documentation>
		</annotation>
		<sequence>
			<element name="simulatedDischarge" type="fews:idStringType"/>
			<element name="updatedDischarge" type="fews:idStringType"/>
			<element name="soilMoistureDeficit" type="fews:idStringType"/>
			<element name="groundWater" type="fews:idStringType"/>
			<element name="snowWaterEquivalent" type="fews:idStringType"/>
			<element name="snowDensity" type="fews:idStringType"/>
			<element name="reservoirStorage" type="fews:idStringType" minOccurs="0"/>
			<element name="reservoirRelease" type="fews:idStringType" minOccurs="0"/>
		</sequence>
	</complexType>
	<complexType name="McrmOutputForecastParametersComplexType">
		<annotation>
			<documentation>Output forecast parameters</documentation>
		</annotation>
		<sequence>
			<element name="simulatedDischarge" type="fews:idStringType"/>
			<element name="updatedDischarge" type="fews:idStringType"/>
			<element name="soilMoistureDeficit" type="fews:idStringType"/>
			<element name="groundWater" type="fews:idStringType"/>
			<element name="snowWaterEquivalent" type="fews:idStringType"/>
			<element name="snowDensity" type="fews:idStringType"/>
			<element name="reservoirStorage" type="fews:idStringType" minOccurs="0"/>
			<element name="reservoirRelease" type="fews:idStringType" minOccurs="0"/>
		</sequence>
	</complexType>
	<complexType name="McrmStateParametersComplexType">
		<annotation>
			<documentation>State parameters</documentation>
		</annotation>
		<sequence>
			<element name="snowpackWaterEquivalent" type="fews:idStringType" minOccurs="0"/>
			<element name="snowpackDensity" type="fews:idStringType" minOccurs="0"/>
			<element name="snowpackDepth" type="fews:idStringType" minOccurs="0"/>
			<element name="interceptionStorage" type="fews:idStringType" minOccurs="0"/>
			<element name="soilMoistureDeficit" type="fews:idStringType" minOccurs="0"/>
			<element name="groundWaterStorage" type="fews:idStringType" minOccurs="0"/>
			<element name="reservoirStorage" type="fews:idStringType" minOccurs="0"/>
			<element name="reservoirRelease" type="fews:idStringType" minOccurs="0"/>
			<element name="channelStorage" type="fews:idStringType" minOccurs="0"/>
			<element name="floodplainStorage" type="fews:idStringType" minOccurs="0"/>
		</sequence>
	</complexType>
</schema>
