dal-eg.xml 2.08 KB
Newer Older
1
<?xml version="1.0" encoding="iso-8859-1"?>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
<Domain id="com.telekom" xmlns="http://homegatewayinitiative.org/xml/dal/4.0" xmlns:xi="http://www.w3.org/2001/XInclude">
	<Imports>
		<xi:include href="./dal-core.xml" parse="xml"/>
	</Imports>
	<DeviceClasses>
		<DeviceClass id="switch.power">
			<Doc>This device is intended as a demonstration of how to use the abstract modules defined in the <em>HGI Core</em>	domain. The vendor has provided a proprietry module with two operations	<tt>on</tt>	and <tt>off</tt>. This is clearly a candidate for the module class <tt>BooleanState</tt>.</Doc>
			<Properties>
				<Property name="Name">
					<Doc>Original value: PowerSwitch</Doc>
					<SimpleType type="string"/>
				</Property>
				<!-- The Vendor field should probably be part of the domain -->
				<Property name="Vendor">
					<Doc>Original value: Telekom Innovation Laboratories</Doc>
					<SimpleType type="string"/>
				</Property>
			</Properties>
			<ModuleClasses>
				<ModuleClass name="proprietaryPower">
					<Doc>The proprietry interface for turning the switch on and off.  Actions for setting the state to <tt>on</tt> or <tt>off</tt>and for querying the state.</Doc>
					<Actions>
						<Action name="on">
							<Doc>Turn the switch on.</Doc>
						</Action>
						<Action name="off">
							<Doc>Turn the switch off.</Doc>
						</Action>
						<Action name="state">
							<Doc>Query the state of the switch. Returns the string &quot;<tt>on</tt>&quot; or &quot;<tt>off</tt>&quot;.</Doc>
							<DataType>
								<SimpleType type="string"/>
							</DataType>
						</Action>
					</Actions>
					<Events>
						<Event name="switchEvent">
							<Doc>An event that indicates the new state of the switch.</Doc>
							<Data>
								<DataPoint name="state" writable="false">
									<DataType>
										<SimpleType type="boolean"/>
									</DataType>
								</DataPoint>
							</Data>
						</Event>
					</Events>
				</ModuleClass>
				<ModuleClass name="power">
51
					<Extend entity="BooleanState" domain="hgi.dal.core"/>
52 53 54 55 56
				</ModuleClass>
			</ModuleClasses>
		</DeviceClass>
	</DeviceClasses>
</Domain>