<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="xs3p.xsl"?>
<xs:schema targetNamespace="TestBenchRecorder" xmlns="TestBenchRecorder" xmlns:tbr="TestBenchRecorder" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="VhtngClasses" elementFormDefault="qualified" version="3.0.0">
	<xs:import namespace="VhtngClasses" schemaLocation="VhtngClasses.xsd"/>
	<xs:simpleType name="TriggerType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="rising_edge">
				<xs:annotation>
					<xs:documentation>if the value of the trigger variable is somehow rising</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="falling_edge">
				<xs:annotation>
					<xs:documentation>if the value of the trigger variable is somehow falling</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="rising_threshold">
				<xs:annotation>
					<xs:documentation>if the value of the trigger variable is rising higher than a defined threshold</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="falling_threshold">
				<xs:annotation>
					<xs:documentation>if the value of the trigger variable is falling lower than a defined threshold</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="value_change">
				<xs:annotation>
					<xs:documentation>is the value changed in any way</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="RecorderDefinition" type="RecorderDefinition"/>
	<xs:complexType name="RecorderDefinition">
		<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="out_path" type="xs:anyURI" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>where output of recorder file should be placed</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="sample_rate" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>how often each value should be written to file
if nothing is given, sample rate = each_frame
unit: frames</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="prefetch_time" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Amount of recorded data written to the recorder-file
before start recorder event occurred.
unit: seconds</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="postfetch_time" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Amount of recorded data written to the recorder-file after stop recorder event occurred
unit: seconds</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="trigger_variable" type="xs:string" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>unit: none
range: n/a
description:
variable to start/stop the recorder</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="trigger_theshold" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>threshold if the trigger is set to rising_threshold, or falling_threshold</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="trigger_type" type="TriggerType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="trigger_count" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>amount oof trigger events that haven to be count before the trigger really starts. default is 1</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="auto_rearm" type="xs:boolean" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>if set, the Recorder automatically re-arms
the trigger and waits for the next trigger event
after rearming the previous file should not be overwritten, but incremented</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="size_limit" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Recorder stopps if the filesize is reached
unit: KByte</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="time_limit" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Recorder stopps after defined time
unit: seconds</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="computing_entity" type="xs:string" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>computing_entity where the recording should be done</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="EquipmentInformation" type="vc:EquipmentInformation" 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="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="VendorSpecificInformation" type="VendorSpecificInformation"/>
	<xs:complexType name="VendorSpecificInformation">
		<xs:sequence>
			<xs:element name="vendor_specific" type="vendor_specific" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
