<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
	- $Id: SRTActiveSurfaceBoss.xsd,v 1.1 2009-05-21 15:32:47 c.migoni Exp $
	- Author: Carlo Migoni
	-
	- History:
	- 04-03-2009  Created
-->

<xs:schema
	targetNamespace="urn:schemas-cosylab-com:SRTActiveSurfaceBoss:1.0"
	xmlns="urn:schemas-cosylab-com:SRTActiveSurfaceBoss:1.0"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0"
	xmlns:baci="urn:schemas-cosylab-com:BACI:1.0"
	xmlns:mng="urn:schemas-cosylab-com:Managment:1.0"
	xmlns:as="urn:schemas-cosylab-com:ActiveSurface:1.0"
	elementFormDefault="qualified"
	attributeFormDefault="unqualified">
	<xs:import namespace="urn:schemas-cosylab-com:CDB:1.0" schemaLocation="CDB.xsd"/>
	<xs:import namespace="urn:schemas-cosylab-com:BACI:1.0" schemaLocation="BACI.xsd"/>
	<xs:import namespace="urn:schemas-cosylab-com:Managment:1.0" schemaLocation="Managment.xsd"/>
	<xs:import namespace="urn:schemas-cosylab-com:ActiveSurface:1.0" schemaLocation="ActiveSurface.xsd"/>

	<xs:complexType name="SRTActiveSurfaceBossType">
     <xs:complexContent>
      <xs:extension base="baci:CharacteristicComponent">
		<xs:sequence>
			<xs:element name="status" type="mng:SystemStatusType" />	
			<xs:element name="enabled" type="mng:BooleanType" />
			<xs:element name="pprofile" type="as:ActiveSurfaceProfileType" />	
			<xs:element name="tracking" type="mng:BooleanType" />
		</xs:sequence>
		<!-- sleep time of the watching thread (microseconds), this is the thread that keeps data up to date -->
		<xs:attribute name="WatchingThreadTime" type="xs:unsignedLong" use="required" />
		<!-- the cache time (microseconds) for logging repetition filter -->
		<xs:attribute name="RepetitionCacheTime" type="xs:unsignedLong" use="required" />
		<!-- the expire time (microseconds) for logging repetition filter -->
		<xs:attribute name="RepetitionExpireTime" type="xs:unsignedLong" use="required" />
        <xs:attribute name="profile" 			type="xs:unsignedByte" 	use="required" />
      </xs:extension>
     </xs:complexContent>
	</xs:complexType>

	<xs:element name="SRTActiveSurfaceBoss" type="SRTActiveSurfaceBossType"/>
	
</xs:schema>
