IntegratedDemonstrator_5.xml 2.97 KB
Newer Older
Raj Shah's avatar
Raj Shah committed
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<policy xmlns="http://www.iese.fhg.de/ind2uce/1.0/enforcementLanguage"
	xmlns:tns="http://www.iese.fhg.de/ind2uce/1.0/enforcementLanguage"
	xmlns:a="http://www.iese.fhg.de/ind2uce/1.0/action" xmlns:e="http://www.iese.fhg.de/ind2uce/1.0/event"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.iese.fhg.de/ind2uce/1.0/enforcementLanguage
 enforcementLanguage-FhG.xsd http://www.iese.fhg.de/ind2uce/1.0/action action-FhG.xsd http://www.iese.fhg.de/ind2uce/1.0/event
 event-FhG.xsd http://www.master-fp7.eu/mcalculus.xsd mcalculus.xsd"
	description="description" name="FireAlarm">
	<preventiveMechanism name="ACPfire_23115018">
		<timestep amount="3" unit="SECONDS" />
		<trigger action="SmartIntegoMessage" isTry="false">
			<paramMatch name="msgType" value="14" />
		</trigger>
		<condition>
			<within amount="7" unit="SECONDS">
				<eventMatch action="EnoceanTelegram" >
					<paramMatch name="RadioTelegram" value="true" />
					<paramMatch name="RPS" value="true" />
					<paramMatch name="RORG" value="f6" />
					<paramMatch name="ID" value="180080e" />
					<paramMatch name="data" value="30" />
				</eventMatch>
			</within>
		</condition>
		<authorizationAction name="default">
			<allow>
				<executeAction name="SmartIntegoAction">
					<parameter name="action" value="ShortTermActivation" />
					<parameter name="duration" value="1" />
				</executeAction>
			</allow>
		</authorizationAction>
	</preventiveMechanism>
	<preventiveMechanism name="Enocean_20395081">
		<timestep amount="30000" unit="SECONDS" />
		<trigger action="EnoceanTelegram" isTry="false">
			<paramMatch name="RadioTelegram" value="true" />
			<paramMatch name="RPS" value="true" />
			<paramMatch name="RORG" value="f6" />
			<paramMatch name="ID" value="180080e" />
			<paramMatch name="data" value="30" />
		</trigger>
		<condition>
			<true />
		</condition>
		<authorizationAction name="default">
			<allow>
				<executeAction name="EnoceanAction">
					<parameter name="action" value="ToggleSwitch" />
					<parameter name="destination" value="0x01038be3" />
					<parameter name="switchOn" value="true" />
				</executeAction>
				<executeAction name="NestAlarmSender">
					<parameter name="type" value="fire" />
				</executeAction>
			</allow>
		</authorizationAction>
	</preventiveMechanism>
	<detectiveMechanism name="EnoceanDeactivate_59495885">
		<timestep amount="3" unit="SECONDS" />
		<condition>
			<before amount="8" unit="MINUTES">
				<eventMatch action="EnoceanTelegram" >
					<paramMatch name="RadioTelegram" value="true" />
					<paramMatch name="RPS" value="true" />
					<paramMatch name="RORG" value="f6" />
					<paramMatch name="ID" value="180080e" />
					<paramMatch name="data" value="30" />
				</eventMatch>
			</before>
		</condition>
		<executeAction name="EnoceanAction">
			<parameter name="action" value="ToggleSwitch" />
			<parameter name="destination" value="0x01038be3" />
			<parameter name="switchOn" value="false" />
		</executeAction>
	</detectiveMechanism>
</policy>