<?xml version="1.0" encoding="UTF-8"?>
<!--This is the UI Socket Description file for the Trace TV.-->
<uiSocket about="http://resources.myurc.org/UrcSimEnv/tv/socket" id="tvPortal" xmlns="http://www.incits.org/incits390-2005" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink">
	<variable id="power" type="xsd:boolean">
		<dependency read="true()" write=" true()"/>
	</variable>
	<variable id="channel" type="xsd:string">
		<selection closed="true">
			<selectionSetStatic id="staticKids" refType="kids"/>
			<selectionSetStatic id="staticEducation" refType="education"/>
			<selectionSetDynamic id="dynamicNews" refVar="news"/>
			<selectionSetDynamic id="dynamicEntertainment" refVar="entertainment"/>
			<!--There may be multiple selectiongroups.  Each of them has an id (so that resources such as labels can be bound to them), and either a refvar attribute holding a variable id or a reftype attribute holding a name of a type derived from string by restriction (enumeration).-->
		</selection>
		<dependency read="true()" write="value('power') = true()"/>
	</variable>
	<variable id="news" type="valueList">
		<dependency read="true()" write="false()"/>
	</variable>
	<variable id="entertainment" type="valueList">
		<dependency read="true()" write="false()"/>
	</variable>
	<variable id="mute" type="xsd:boolean">
		<dependency read="true()" write="value('power') = true()"/>
	</variable>
	<variable id="volume" type="volumenumbertype">
		<dependency read="true()" write="value('power') = true() and value('mute') = false()"/>
	</variable>
	<variable id="contrast" type="tvattributetype">
		<dependency read="true()" write="value('power') = true()"/>
	</variable>
	<variable id="brightness" type="tvattributetype">
		<dependency read="true()" write="value('power') = true()"/>
	</variable>
	<variable id="close" type="xsd:boolean">
		<dependency read="true()"/>
	</variable>
	<notify id="premium" explicitAck="true" category="info">
		<dependency acknowledge="true()"/>
	</notify>
	<xsd:schema>
		<xsd:simpleType name="kids" id="kids">
			<xsd:restriction base="xsd:string">
				<xsd:enumeration value="cartoon"/>
			</xsd:restriction>
		</xsd:simpleType>
		<xsd:simpleType name="education" id="education">
			<xsd:restriction base="xsd:string">
				<xsd:enumeration value="history"/>
			</xsd:restriction>
		</xsd:simpleType>
		<xsd:simpleType name="volumenumbertype" id="idvolumenumbertype">
			<xsd:restriction base="xsd:integer">
				<xsd:minInclusive value="0"/>
				<xsd:maxInclusive value="10"/>
			</xsd:restriction>
		</xsd:simpleType>
		<xsd:simpleType name="tvattributetype" id="idtvattributetype">
			<xsd:restriction base="xsd:integer">
				<xsd:minInclusive value="0"/>
				<xsd:maxInclusive value="100"/>
			</xsd:restriction>
		</xsd:simpleType>
	</xsd:schema>
</uiSocket>
