<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) Stichting Deltares 2018. All rights reserved.

This file is part of the DAM - UI.

The DAM - UI is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

All names, logos, and references to "Deltares" are registered trademarks of
Stichting Deltares and remain full property of Stichting Deltares at all times.
All rights reserved.
-->

<!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) -->
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:simpleType name="MStabCalculationModel">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Bishop" />
      <xs:enumeration value="Spencer" />
      <xs:enumeration value="Fellenius" />
      <xs:enumeration value="UpliftVan" />
      <xs:enumeration value="UpliftSpencer" />
      <xs:enumeration value="BishopRandomField" />
      <xs:enumeration value="HorizontalBalance" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MStabShearStrengthModel">
    <xs:restriction base="xs:string">
      <xs:enumeration value="CPhi" />
      <xs:enumeration value="StressTables" />
      <xs:enumeration value="CuCalculated" />
      <xs:enumeration value="CuMeasured" />
      <xs:enumeration value="CUGradient" />
      <xs:enumeration value="PseudoValues" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MStabSearchMethod">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Grid" />
      <xs:enumeration value="GeneticAlgorithm" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PLLineCreationMethod">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ExpertKnowledgeRRD" />
      <xs:enumeration value="ExpertKnowledgeLinearInDike" />
      <xs:enumeration value="GaugesWithFallbackToExpertKnowledgeRRD" />
      <xs:enumeration value="DupuitStatic" />
      <xs:enumeration value="DupuitDynamic" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="CalculationParameters">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CalculationModules">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" name="Stability" type="xs:boolean" />
              <xs:element minOccurs="0" name="PipingWti" type="xs:boolean" />
              <xs:element minOccurs="0" name="PipingBligh" type="xs:boolean" />
              <xs:element minOccurs="0" name="PipingSellmeijer" type="xs:boolean" />
              <xs:element minOccurs="0" name="PipingIJkdijk" type="xs:boolean" />
              <xs:element minOccurs="0" name="Overtopping" type="xs:boolean" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="0" name="MStabParameters">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" name="CalculationModel" type="MStabCalculationModel" />
              <xs:element name="ShearStrength" type="MStabShearStrengthModel" />
              <xs:element name="Probabilistic" type="xs:boolean" />
              <xs:element name="SearchMethod" type="MStabSearchMethod" />
              <xs:element name="UseZones">
                <xs:simpleType>
                  <xs:restriction base="xs:integer">
                    <xs:minInclusive value="0" />
                    <xs:maxInclusive value="2" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsCalculateAllStabilityProjectsAtOnce" type="xs:boolean" />
              <xs:element name="IsOverrulePLLineCreationMethod" type="xs:boolean" />
              <xs:element name="PLLineCreationMethod" type="PLLineCreationMethod" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>