<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by ICT (Stichting Deltares) -->
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by tacoma (WL | Delft Hydraulics) -->
<!--Delft FEWS (Copyright 2003 WL | Delft Hydraulics) -->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:fews="http://www.wldelft.nl/fews" targetNamespace="http://www.wldelft.nl/fews" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<include schemaLocation="sharedTypes.xsd"/>
	<element name="objectiveAnalyzerDisplay" type="fews:ObjectiveAnalyzerDisplayComplexType"/>
	<complexType name="ObjectiveAnalyzerDisplayComplexType">
		<sequence>
			<element name="description" type="string" minOccurs="0"/>
			<element name="general" type="fews:ObjectiveAnalyzerDisplayGeneralComplexType"/>
			<element name="site" type="fews:SiteComplexType" maxOccurs="unbounded">
				<annotation>
					<documentation>Sites to analyse . The sites appear in the Kflows listbox</documentation>
				</annotation>
			</element>
			<element name="meansTable" type="fews:MeansTableComplexType">
				<annotation>
					<documentation>Table with observed daily mean flows.</documentation>
				</annotation>
			</element>
			<group ref="fews:TargetElements"/>
			<element name="variable" type="fews:VariableComplexType" maxOccurs="unbounded">
				<annotation>
					<documentation>Definitions of all variables used in the Kflows</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="ObjectiveAnalyzerDisplayGeneralComplexType">
		<annotation>
			<documentation> </documentation>
		</annotation>
		<sequence>
			<element name="description" type="string" minOccurs="0"/>
			<element name="displayName" type="string">
				<annotation>
					<documentation>Title of the dialog</documentation>
				</annotation>
			</element>
			<element name="periodBegin">
				<annotation>
					<documentation>begin period as (whole)hour of the day </documentation>
				</annotation>
				<simpleType>
					<restriction base="int">
						<minInclusive value="0"/>
						<maxInclusive value="24"/>
					</restriction>
				</simpleType>
			</element>
			<element name="periodLength" type="fews:RelativeTimeComplexType">
				<annotation>
					<documentation>length of the period</documentation>
				</annotation>
			</element>
			<element name="observedMeansParameterId" type="fews:idStringType">
				<annotation>
					<documentation>Parameter that will be used in time series that holds computed observed daily means. This time series is shown in Means table and is not stored in database.</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="SiteComplexType">
		<sequence>
			<element name="name" type="string">
				<annotation>
					<documentation>name that wil be visible in the drop-down box</documentation>
				</annotation>
			</element>
			<element name="observedVariable" type="fews:ObservedVariableComplexType">
				<annotation>
					<documentation>observed time series</documentation>
				</annotation>
			</element>
			<element name="peakVariable" type="fews:PeakVariableComplexType" minOccurs="0">
				<annotation>
					<documentation>time series with time(s) of the peaks</documentation>
				</annotation>
			</element>
			<element name="runningMeans" type="fews:RunningMeansComplexType">
				<annotation>
					<documentation>Time series to store the running means</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="TargetVariableComplexType">
		<annotation>
			<documentation>Time series with target discharge</documentation>
		</annotation>
		<sequence>
			<element name="variableId" type="fews:idStringType"/>
			<element name="defaultValue" type="fews:positiveDouble"/>
		</sequence>
	</complexType>
	<complexType name="ObservedVariableComplexType">
		<annotation>
			<documentation>Time series with observed discharge</documentation>
		</annotation>
		<sequence>
			<element name="variableId" type="fews:idStringType"/>
		</sequence>
	</complexType>
	<complexType name="PeakVariableComplexType">
		<annotation>
			<documentation>Time series with time(s) of the peak and  the influence period of the peaks  in relation to the peak time(s)  </documentation>
		</annotation>
		<sequence>
			<element name="variableId" type="fews:idStringType"/>
			<element name="influencePeriodBefore" type="fews:RelativeTimeComplexType" minOccurs="0"/>
			<element name="influencePeriodAfter" type="fews:RelativeTimeComplexType" minOccurs="0"/>
		</sequence>
	</complexType>
	<complexType name="RunningMeansComplexType">
		<sequence>
			<element name="allDataVariableId" type="fews:idStringType">
				<annotation>
					<documentation>Defines the time series that should be used to compute and store running mean</documentation>
				</annotation>
			</element>
			<element name="exTidalVariableId" type="fews:idStringType">
				<annotation>
					<documentation>Defines the time series that should be used to compute and store running mean excluding tidal influence</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="MeansTableComplexType">
		<sequence>
			<element name="variableId" type="fews:idStringType">
				<annotation>
					<documentation>Defines the time series that should be used to compute daily mean flows</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<group name="TargetElements">
		<sequence>
			<element name="targetVariable" type="fews:TargetVariableComplexType">
				<annotation>
					<documentation>Time series to store the target for each water day. The time step must be 1 day</documentation>
				</annotation>
			</element>
			<element name="lowerTargetLimitVariable" type="fews:TargetVariableComplexType">
				<annotation>
					<documentation>Time series to store the lower limit  for each water day. The time step must be 1 day</documentation>
				</annotation>
			</element>
			<element name="upperTargetLimitVariable" type="fews:TargetVariableComplexType">
				<annotation>
					<documentation>Time series to store the upper limit  for each water day. The time step must be 1 day</documentation>
				</annotation>
			</element>
		</sequence>
	</group>
</schema>
