<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="ModelSupplierInputs" xmlns="ModelSupplierInputs" xmlns:msi="ModelSupplierInputs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="VhtngClasses" elementFormDefault="qualified" version="4.0.0">
	<xs:import namespace="VhtngClasses" schemaLocation="VhtngClasses.xsd"/>
	<xs:element name="AliasDefinition" type="AliasDefinition"/>
	<xs:complexType name="AliasDefinition">
		<xs:annotation>
			<xs:documentation>The detailed information to build an alias for a specific variable is defined within this class.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="app_name" type="xs:string" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>the detailed information which is needed to build aliases is provided in this class.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="bus_name" type="xs:string" minOccurs="0" maxOccurs="1"/>
			<xs:element name="label_name" type="xs:string" minOccurs="0" maxOccurs="1"/>
			<xs:element name="line_name" type="xs:string" minOccurs="0" maxOccurs="1"/>
			<xs:element name="message_name" type="xs:string" minOccurs="0" maxOccurs="1"/>
			<xs:element name="permanent_id" type="xs:string" minOccurs="0" maxOccurs="1"/>
			<xs:element name="signal_name" type="xs:string" minOccurs="0" maxOccurs="1"/>
			<xs:element name="vl_name" type="xs:string" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
		<xs:attribute name="interface_level" use="optional" type="InterfaceLevel"/>
		<xs:attribute name="com_format" use="optional" type="vc:IoType"/>
		<xs:attribute name="status" use="optional" type="xs:boolean"/>
		<xs:attribute name="variable_name" use="optional" type="xs:string"/>
	</xs:complexType>
	<xs:element name="AliasDefinitions" type="AliasDefinitions"/>
	<xs:complexType name="AliasDefinitions">
		<xs:annotation>
			<xs:documentation>If the interface document of this simulation does not define any equipment related information to build aliases and links, this information can be provided in this class.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AliasDefinition" type="AliasDefinition" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="DatatypeMapping" type="DatatypeMapping"/>
	<xs:complexType name="DatatypeMapping">
		<xs:annotation>
			<xs:documentation>mapping between model data type and TBC data type.
If not defined, the model-standard default mapping is applied.</xs:documentation>
		</xs:annotation>
		<xs:sequence/>
		<xs:attribute name="model_datatype" use="required" type="vc:ModelDatatypes">
			<xs:annotation>
				<xs:documentation>for example the data type in the AP2633-MICD</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="tbc_datatype" use="required" type="vc:DataType">
			<xs:annotation>
				<xs:documentation>resulting data type in TBC</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="DatatypeMappings" type="DatatypeMappings"/>
	<xs:complexType name="DatatypeMappings">
		<xs:sequence>
			<xs:element name="DatatypeMapping" type="DatatypeMapping" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="DisplayDefinition" type="DisplayDefinition"/>
	<xs:complexType name="DisplayDefinition">
		<xs:annotation>
			<xs:documentation>Definition of a generic display which can be used as resource.</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="vc:GeneralInformation">
				<xs:sequence>
					<xs:element name="arguments" type="xs:string" minOccurs="0" maxOccurs="1">
						<xs:annotation>
							<xs:documentation>Additional arguments for the display, which should be provided.</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="height" type="xs:int" minOccurs="0" maxOccurs="1">
						<xs:annotation>
							<xs:documentation>Height of the panel in pixel.
unit: pixel</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="position" type="vc:position" minOccurs="0" maxOccurs="1">
						<xs:annotation>
							<xs:documentation>Position  in pixel from upper left corner of the display area. 
Notation: &lt;pixel to upper border&gt;:&lt;position to left border&gt;
unit: pixel</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="url" type="xs:anyURI" minOccurs="0" maxOccurs="1">
						<xs:annotation>
							<xs:documentation>Path where the file can be downloaded from during/after the configuration load command. 
As there no VHTNG-Panel definition, the content of the file may be proprietary. 
Path can be given absolute or relative to the TestBenchConfiguration file (starting with "." like linux notation).</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="vendor" type="xs:string" minOccurs="0" maxOccurs="1">
						<xs:annotation>
							<xs:documentation>To map the panel to a module where it can be executed (as it is in a proprietary format)</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="width" type="xs:int" minOccurs="0" maxOccurs="1">
						<xs:annotation>
							<xs:documentation>Width of the panel in pixel.
unit: pixel</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="UsedVariable" type="vc:UsedVariable" minOccurs="0" maxOccurs="unbounded"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<xs:element name="Ed247Interface" type="Ed247Interface"/>
	<xs:complexType name="Ed247Interface">
		<xs:annotation>
			<xs:documentation>The ED247 interface the model, used if model_standard is set to the appropriate value.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ecd" type="xs:anyURI" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Defines where the ECD is located.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ethernet_card" type="xs:string" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Network card of the modules vistas interface</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ip_address" type="vc:IpAddress" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>IP address of the modules ED247 interface</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="NetworkRules" type="NetworkRules" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="InterfaceLevel">
		<xs:restriction base="xs:string">
			<xs:enumeration value="formatted"/>
			<xs:enumeration value="preformatted"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="ModelSupplierInputs" type="ModelSupplierInputs"/>
	<xs:complexType name="ModelSupplierInputs">
		<xs:annotation>
			<xs:documentation>This class holds all information about simulations or panels which can be used an resources in a test_bench_configuration</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="vc:GeneralInformation">
				<xs:sequence>
					<xs:element name="SimulationDefinition" type="SimulationDefinition" minOccurs="0" maxOccurs="unbounded"/>
					<xs:element name="DisplayDefinition" type="DisplayDefinition" minOccurs="0" maxOccurs="unbounded"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<xs:simpleType name="NetworkRuleEnum">
		<xs:restriction base="xs:string">
			<xs:enumeration value="Include">
				<xs:annotation>
					<xs:documentation>To include the given range in the allowed IPs and Ports</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Exclude">
				<xs:annotation>
					<xs:documentation>To exclude the given range from the allowed IPs and Ports</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="NetworkRules" type="NetworkRules"/>
	<xs:complexType name="NetworkRules">
		<xs:sequence>
			<xs:element name="NetworkRule" type="NetworkRule" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="SimulationDefinition" type="SimulationDefinition"/>
	<xs:complexType name="SimulationDefinition">
		<xs:annotation>
			<xs:documentation>All the information for a simulation are defined within this class. Especially it hold some path information.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>The description of an element</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="version" type="xs:string" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>The version of an element</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vendor_specific" type="vendor_specific" minOccurs="0" maxOccurs="1"/>
			<xs:element name="binary_url" type="xs:anyURI" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Defines where the binary(.zip/fmu) is located and named. 
Path can be given absolute or relative to the containing MSI file. 
The MICD file can be given inside this zip/fmu package. 
Ensure to name the file like defined in the Simulation-Integration-Framework.
(MICDs in this context may not only be AMO-MICD but also MICD for FMIs, so called modeDescription)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="micd_url" type="xs:anyURI" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Defines where the MICD (Model Interface Document) is located.
If this tag is empty or not available, the MICD from the package defined in the tag "binary_url" is used, see definition of binary_url for details.
Path can be given absolute or relative to the containing MSI file (MICDs in this context may not only be AMO-MICD but also MICD for FMIs, so called modeDescription)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="model_standard" type="vc:SimulationStandard" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>The type of the model. 
See enumeration for detailed information.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="source_url" type="xs:anyURI" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Defines where the source code is located. This is an optional information.
Path can be given absolute or relative to the containing MSI file (starting with "." like linux notation).</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="AliasDefinitions" type="AliasDefinitions" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="DatatypeMappings" type="DatatypeMappings" minOccurs="0" maxOccurs="1"/>
			<xs:element name="Ed247Interface" type="Ed247Interface" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="name" use="required" type="xs:string" form="unqualified">
			<xs:annotation>
				<xs:documentation>The name of the element</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="VedorSpecificInformation" type="VedorSpecificInformation"/>
	<xs:complexType name="VedorSpecificInformation">
		<xs:sequence>
			<xs:element name="vendor_specific" type="vendor_specific" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="vendor_specific" type="vendor_specific"/>
	<xs:complexType name="vendor_specific">
		<xs:sequence>
			<xs:any processContents="skip" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="NetworkRule" type="NetworkRule"/>
	<xs:complexType name="NetworkRule">
		<xs:sequence/>
		<xs:attribute name="rule" use="required" type="NetworkRuleEnum"/>
		<xs:attribute name="from_ip" use="required" type="vc:IpAddress"/>
		<xs:attribute name="to_ip" use="required" type="vc:IpAddress"/>
		<xs:attribute name="from_port" use="required" type="xs:positiveInteger"/>
		<xs:attribute name="to_port" use="required" type="xs:positiveInteger"/>
	</xs:complexType>
</xs:schema>
