Commit 2d7cf40c authored by Sergio Poppi's avatar Sergio Poppi
Browse files

Patched holography be schema

parent 3873fa55
Loading
Loading
Loading
Loading
+56 −19
Original line number Diff line number Diff line
@@ -7,8 +7,13 @@
    <xs:import namespace="urn:schemas-cosylab-com:BACI:1.0" schemaLocation="BACI.xsd"/>
    <xs:import namespace="urn:schemas-cosylab-com:GenericBackend:1.0" schemaLocation="GenericBackend.xsd"/>
    <xs:import namespace="urn:schemas-cosylab-com:Managment:1.0" schemaLocation="Managment.xsd"/>


 <!--
    <xs:simpleType name="TBkndConfiguration">
    <xs:annotation>
      
      
        <xs:documentation>
		                                    	Enlist all possible configuration for the backend. many parameters can change for example the number of inputs,
			                                    the input type (BWG,Gregorian....) the used devices and so on. All the configuration are hard coded in the component,
@@ -32,6 +37,8 @@
                  </xs:enumeration>
      </xs:restriction>
   </xs:simpleType>
   
   -->
   <xs:complexType name="BackendStatusType">
				<xs:complexContent>
				      <xs:restriction base="baci:ROpattern">
@@ -39,7 +46,10 @@
				          <xs:attribute name="bitDescription" type="xs:string" use="optional" default="Time_Sync,Busy,Suspended,Sampling,CmdLine,DataLine"/>
				          <xs:attribute name="whenSet" type="xs:string" use="optional" default="0, 1, 1, 1, 0, 0"/>
				          <xs:attribute name="whenCleared" type="xs:string" use="optional" default="2, 3, 3, 3, 2, 2"/>
				          </xs:restriction></xs:complexContent></xs:complexType><xs:complexType name="HolographyType">
				          </xs:restriction>
                                        </xs:complexContent>
                                      </xs:complexType>
              <xs:complexType name="HolographyType">
				          <xs:complexContent>
				          <xs:extension base="bcknd:GenericBackendType">
                                            <xs:sequence>
@@ -51,14 +61,16 @@
                                              <xs:element name="attenuation" type="baci:ROdoubleSeq" />
                                              <xs:element name="polarization" type="baci:ROlongSeq" />
                                              <xs:element name="bins" type="baci:ROlongSeq" />
                                              <xs:element name="feed" type="baci:ROlongSeq" />
                                              <xs:element name="systemTemperature" type="baci:ROdoubleSeq" />
                                              <xs:element name="inputSection" type="baci:ROlongSeq" />
                                              <xs:element name="inputsNumber" type="baci:ROlong" />
                                              <xs:element name="sectionsNumber" type="baci:ROlong" />
                                              <xs:element name="integration" type="baci:ROlong" />
                                              <xs:element name="status" type="BackendStatusType" />
                                              <xs:element name="busy" type="mng:BooleanType" />
				          <xs:element name="feed" type="baci:ROlongSeq"/>
				          <xs:element name="systemTemperature" type="baci:ROdoubleSeq"/>
				          <xs:element name="sectionsNumber" type="baci:ROlong"/>
                                            </xs:sequence>
                                          
				          <xs:attribute name="IPAddress" type="xs:string" use="optional"/>
					  <xs:attribute name="SamplingRate" type="xs:unsignedLong" use="optional"/>
				        
@@ -67,4 +79,29 @@
				         <xs:attribute name="PropertyRefreshTime" type="xs:unsignedLong" use="optional"/>
					 <xs:attribute name="SamplingTime" type="xs:unsignedLong" use="optional"/>
					 <!-- indicates the default configuration of the backend -->
					 <xs:attribute name="LogObservedPositions" type="xs:unsignedLong" use="optional"/><!-- 1: connect to antennaBoss: 0    --><xs:attribute name="Configuration" type="TBkndConfiguration" use="optional"/><!-- Tollerance used when dealing with time synchronization and checks, in particular to deal with jitter beween backend and host computer and with network latencies --><xs:attribute name="TimeTollerance" type="xs:unsignedLong" use="optional"/><!-- the cache time (microseconds) for logging repetition filter --><xs:attribute name="RepetitionCacheTime" type="xs:unsignedLong" use="optional"/><!-- the expire time (microseconds) for logging repetition filter --><xs:attribute name="RepetitionExpireTime" type="xs:unsignedLong" use="optional"/><!-- data line tcp port --><xs:attribute name="DataPort" type="xs:unsignedShort" use="optional"/><!-- data line tcp address --><xs:attribute name="DataIPAddress" type="xs:string" use="optional"/><!-- data line latency (microseconds) --><xs:attribute name="DataLatency" type="xs:unsignedLong" use="optional"/><!-- Sender thread sleep time (microseconds), sender duty cycle--><xs:attribute name="SenderSleepTime" type="xs:unsignedLong" use="optional"/><!-- Sender thread response time (microseconds), hart beat time --><xs:attribute name="SenderResponseTime" type="xs:unsignedLong" use="optional"/><!-- Control thread sleep time (microseconds), that's its duty cycle--><xs:attribute name="ControlSleepTime" type="xs:unsignedLong" use="optional"/><!-- Control thread response time (microseconds), hart beat time --><xs:attribute name="ControlResponseTime" type="xs:unsignedLong" use="optional"/></xs:extension></xs:complexContent></xs:complexType><xs:element name="Holography" type="HolographyType"/></xs:schema>
                                         <xs:attribute name="LogObservedPositions" type="xs:unsignedLong" use="optional"/><!-- 1: connect to antennaBoss: 0    --><xs:attribute name="Configuration" type="xs:string" use="optional"/><!-- Tollerance used when dealing with time synchronization and checks, in particular to deal with jitter beween backend and host computer and with network latencies --><xs:attribute name="TimeTollerance" type="xs:unsignedLong" use="optional"/>
                                         <!-- the cache time (microseconds) for logging repetition filter -->
                                         <xs:attribute name="RepetitionCacheTime" type="xs:unsignedLong" use="optional"/>
                                         <!-- the expire time (microseconds) for logging repetition filter -->
                                         <xs:attribute name="RepetitionExpireTime" type="xs:unsignedLong" use="optional"/>
                                         <!-- data line tcp port -->
                                         <xs:attribute name="DataPort" type="xs:unsignedShort" use="optional"/>
                                         <!-- data line tcp address -->
                                         <xs:attribute name="DataIPAddress" type="xs:string" use="optional"/>
                                         <!-- data line latency (microseconds) -->
                                         <xs:attribute name="DataLatency" type="xs:unsignedLong" use="optional"/>
                                         <!-- Sender thread sleep time (microseconds), sender duty cycle-->
                                         <xs:attribute name="SenderSleepTime" type="xs:unsignedLong" use="optional"/>
                                         <!-- Sender thread response time (microseconds), hart beat time -->
                                         <xs:attribute name="SenderResponseTime" type="xs:unsignedLong" use="optional"/>
                                         <!-- Control thread sleep time (microseconds), that's its duty cycle-->
                                         <xs:attribute name="ControlSleepTime" type="xs:unsignedLong" use="optional"/>
                                         <!-- Control thread response time (microseconds), hart beat time -->
                                         <xs:attribute name="ControlResponseTime" type="xs:unsignedLong" use="optional"/>
                                  </xs:extension>
                                </xs:complexContent>
                          </xs:complexType>
                                   
                                   
       <xs:element name="Holography" type="HolographyType"/>
</xs:schema>