-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmodel.xml
More file actions
652 lines (602 loc) · 26.3 KB
/
model.xml
File metadata and controls
652 lines (602 loc) · 26.3 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
<project heartbeat-interval="1" index="pi_EMPTY" luaroot="@ESP_PROJECT_OUTPUT@/luaroot" name="sailing_with_mcp" pubsub="auto" threads="4">
<description><![CDATA[This example shows an event stream of data obtained from a set of boats. The model identifies two geographical areas of interest. One area is an exclusion zone that the boats identified are not permitted to enter. The other is an area where a speed restriction has been applied. A variety of MCP tools have been pre-configured, allowing an MCP client to interact with the model. This example uses the following six files:
The XML file (sailing.xml) is the project used in the example.
geoArea.csv is an input file. This file contains events relating to the defined areas of interest.
boat1.csv, boat2.csv, boat3.csv, and boat4.csv are input files. These files contains event streams for four boats. The event streams contain geographical coordinates of the boats' movements.]]></description>
<metadata>
<meta id="layout">{"cq1":{"Areas_Of_Interest":{"x":-330,"y":-440},"Boat1":{"x":-445,"y":-725},"Boat2":{"x":-225,"y":-725},"Boat3":{"x":-5,"y":-725},"Boat4":{"x":220,"y":-725},"Compute_ID0":{"x":445,"y":-590},"Compute_ID1":{"x":-445,"y":-590},"Compute_ID2":{"x":-225,"y":-590},"Compute_ID3":{"x":-5,"y":-590},"Compute_ID4":{"x":210,"y":-590},"Filter_Inside_Exclusion_Zone":{"x":-230,"y":-55},"Filter_Speeding_In_Marina":{"x":-5,"y":-55},"Geofence_Area_Check":{"x":-115,"y":-315},"Last_Exclusion_Violation":{"x":-230,"y":70},"Last_Speeding_Event":{"x":-5,"y":70},"Retention_30Min":{"x":-115,"y":-185},"Score_Boat":{"x":445,"y":-725},"Union_All_Boats":{"x":-115,"y":-440}}}</meta>
<meta id="studioTags">Example</meta>
<meta id="studioUploadedBy">anonymousUser</meta>
<meta id="studioUploaded">1772537451290</meta>
<meta id="studioModifiedBy">anonymousUser</meta>
<meta id="studioModified">1772537496796</meta>
</metadata>
<properties>
<property name="EventsPerSecond"><![CDATA[5]]></property>
</properties>
<mcp>
<tools>
<tool name="PublishAreaOfInterest" type="publish">
<title><![CDATA[Publish new area of interest]]></title>
<description><![CDATA[Publishes a new area of interest]]></description>
<config>
<input window="Areas_Of_Interest"/>
</config>
</tool>
<tool name="ObtainSpeedingEvents" type="custom">
<title><![CDATA[Obtain speeding events in area]]></title>
<description><![CDATA[Obtains all speeding events in a given area]]></description>
<config>
<input>
<fields>
<field name="areaName" type="string"/>
<field name="speedLimit" type="number"/>
</fields>
</input>
<output array="boats">
<fields>
<field name="boatName" type="string"/>
<field name="occurrences" type="number"/>
</fields>
</output>
<functions>
<function name="call" code="obtainSpeedingEvents"/>
</functions>
</config>
</tool>
<tool name="CheckBoatInExclusionZone" type="score">
<title><![CDATA[Check boat is within exclusion zone]]></title>
<description><![CDATA[Checks whether a given boat is in the exclusion zone]]></description>
<config>
<input window="Score_Boat">
<fields>
<field name="dateTime" type="string"/>
<field name="heading" type="number"/>
<field name="speed" type="number"/>
<field name="lat" type="number"/>
<field name="long" type="number"/>
</fields>
</input>
<output window="Filter_Inside_Exclusion_Zone"/>
<functions>
<function name="events" code="processExclusionViolationCheck"/>
</functions>
</config>
</tool>
<tool name="QueryExclusionZoneViolations" type="query">
<title><![CDATA[Query exclusion zone violations]]></title>
<description><![CDATA[Query exclusion zone violations]]></description>
<config>
<output window="Filter_Inside_Exclusion_Zone"/>
</config>
</tool>
</tools>
<code snippet="MCP_snippets"/>
</mcp>
<python-snippets>
<python-snippet name="MCP_snippets">
<code><![CDATA[import esp
from collections import Counter
def init():
pass
def obtainSpeedingEvents(args):
#Get all boats
boatsInAllAoI = esp.query(window='Retention_30Min').get('events')
#Filter boats by AoI name and count occurrences of boats
boatsInAoi = [boat for boat in boatsInAllAoI if boat.get('GeoDesc') == args.get('areaName') and boat.get('speed') >= args.get('speedLimit')]
speedingEvents = Counter(boat.get('BoatNumber') for boat in boatsInAoi)
return [{"boatName": name, "occurrences": count} for name, count in speedingEvents.items()]
def processExclusionViolationCheck(event):
if event:
return f"Boat entered {event['GeoDesc']}."
else:
return "Boat did not enter exclusion zone."]]></code>
</python-snippet>
</python-snippets>
<contqueries>
<contquery index="pi_EMPTY" name="cq1">
<windows>
<window-source index="pi_EMPTY" insert-only="true" name="Boat1" pubsub="true">
<description><![CDATA[There are four Source windows that receive event streams from the four boats identified: Boat1, Boat2, Boat3, and Boat4]]></description>
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
</fields>
</schema>
<connectors>
<connector class="lua" name="Boat1">
<properties>
<property name="type"><![CDATA[pub]]></property>
<property name="interval"><![CDATA[5000]]></property>
<property name="init"><![CDATA[onStart]]></property>
<property name="publish"><![CDATA[onInterval]]></property>
<property name="destroy"><![CDATA[onStop]]></property>
<property name="code"><![CDATA[
-- boatReader.lua
-- Publishes 2 boat records every 5 seconds
local f = io.open("@ESP_PROJECT_HOME@/test_files/boat1.csv", "r")
if not f then
print("Could not open boatdata.csv")
end
-- read header if present
local header = f:read("*l")
-- called when connector starts
function onStart()
print("Lua connector started, publishing 2 records every 5s...")
end
-- called periodically based on 'interval' property
function onInterval()
local events = {}
-- read up to 2 records from the file
for i = 1, 2 do
local line = f:read("*l")
if not line then
print("End of file reached, stopping.")
f:close()
return true -- stops connector
end
-- split CSV line
local fields = {}
for value in string.gmatch(line, "([^,]+)") do
table.insert(fields, value)
end
-- build event (adapt schema fields to your project!)
local event = {
dateTime = fields[1], -- timestamp string
heading = tonumber(fields[2]), -- numeric
speed = tonumber(fields[3]), -- numeric
lat = tonumber(fields[4]),
long = tonumber(fields[5])
}
table.insert(events, event)
end
-- publish events to ESP
if(esp_inject(event) == false) then -- false means call me again.
return true -- true means I am finished
end
esp_inject(events)
end
-- cleanup if connector is stopped
function onStop()
if f then f:close() end
print("Lua connector stopped.")
end
]]></property>
</properties>
</connector>
</connectors>
</window-source>
<window-source index="pi_EMPTY" insert-only="true" name="Boat2" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
</fields>
</schema>
<connectors>
<connector class="lua" name="Boat2">
<properties>
<property name="type"><![CDATA[pub]]></property>
<property name="interval"><![CDATA[5000]]></property>
<property name="init"><![CDATA[onStart]]></property>
<property name="publish"><![CDATA[onInterval]]></property>
<property name="destroy"><![CDATA[onStop]]></property>
<property name="code"><![CDATA[-- boatReader.lua
-- Publishes 2 boat records every 5 seconds
local f = io.open("@ESP_PROJECT_HOME@/test_files/boat2.csv", "r")
if not f then
print("Could not open boatdata.csv")
end
-- read header if present
local header = f:read("*l")
-- called when connector starts
function onStart()
print("Lua connector started, publishing 2 records every 5s...")
end
-- called periodically based on 'interval' property
function onInterval()
local events = {}
-- read up to 2 records from the file
for i = 1, 2 do
local line = f:read("*l")
if not line then
print("End of file reached, stopping.")
f:close()
return true -- stops connector
end
-- split CSV line
local fields = {}
for value in string.gmatch(line, "([^,]+)") do
table.insert(fields, value)
end
-- build event (adapt schema fields to your project!)
local event = {
dateTime = fields[1], -- timestamp string
heading = tonumber(fields[2]), -- numeric
speed = tonumber(fields[3]), -- numeric
lat = tonumber(fields[4]),
long = tonumber(fields[5])
}
table.insert(events, event)
end
-- publish events to ESP
if(esp_inject(event) == false) then -- false means call me again.
return true -- true means I am finished
end
esp_inject(events)
end
-- cleanup if connector is stopped
function onStop()
if f then f:close() end
print("Lua connector stopped.")
end
]]></property>
</properties>
</connector>
</connectors>
</window-source>
<window-compute index="pi_EMPTY" name="Compute_ID2" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
<field name="BoatNumber" type="int32"/>
</fields>
</schema>
<output>
<field-expr><![CDATA[heading]]></field-expr>
<field-expr><![CDATA[speed]]></field-expr>
<field-expr><![CDATA[lat]]></field-expr>
<field-expr><![CDATA[long]]></field-expr>
<field-expr><![CDATA[2]]></field-expr>
</output>
</window-compute>
<window-compute index="pi_EMPTY" name="Compute_ID1" pubsub="true">
<description><![CDATA[There are four Compute windows that assign a boat number to each of the four boats identified: Compute_ID1, Compute_ID2, Compute_ID3, and Compute_ID4. This allows SAS Event Stream Processing to differentiate the boats before joining the streams together for processing.]]></description>
<expr-initialize>
<initializer type="string"/>
</expr-initialize>
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
<field name="BoatNumber" type="int32"/>
</fields>
</schema>
<output>
<field-expr><![CDATA[heading]]></field-expr>
<field-expr><![CDATA[speed]]></field-expr>
<field-expr><![CDATA[lat]]></field-expr>
<field-expr><![CDATA[long]]></field-expr>
<field-expr><![CDATA[1]]></field-expr>
</output>
</window-compute>
<window-union index="pi_EMPTY" name="Union_All_Boats" pubsub="true" strict="false">
<description><![CDATA[This is a Union window that unifies the boats’ event streams.]]></description>
</window-union>
<window-source index="pi_EMPTY" insert-only="true" name="Boat3" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
</fields>
</schema>
<connectors>
<connector class="lua" name="Boat3">
<properties>
<property name="type"><![CDATA[pub]]></property>
<property name="interval"><![CDATA[3000]]></property>
<property name="init"><![CDATA[onStart]]></property>
<property name="publish"><![CDATA[onInterval]]></property>
<property name="destroy"><![CDATA[onStop]]></property>
<property name="code"><![CDATA[-- boatReader.lua
-- Publishes 2 boat records every 5 seconds
local f = io.open("@ESP_PROJECT_HOME@/test_files/boat3.csv", "r")
if not f then
print("Could not open boatdata.csv")
end
-- read header if present
local header = f:read("*l")
-- called when connector starts
function onStart()
print("Lua connector started, publishing 2 records every 5s...")
end
-- called periodically based on 'interval' property
function onInterval()
local events = {}
-- read up to 5 records from the file
for i = 1, 5 do
local line = f:read("*l")
if not line then
print("End of file reached, stopping.")
f:close()
return true -- stops connector
end
-- split CSV line
local fields = {}
for value in string.gmatch(line, "([^,]+)") do
table.insert(fields, value)
end
-- build event (adapt schema fields to your project!)
local event = {
dateTime = fields[1], -- timestamp string
heading = tonumber(fields[2]), -- numeric
speed = tonumber(fields[3]), -- numeric
lat = tonumber(fields[4]),
long = tonumber(fields[5])
}
table.insert(events, event)
end
-- publish events to ESP
if(esp_inject(event) == false) then -- false means call me again.
return true -- true means I am finished
end
esp_inject(events)
end
-- cleanup if connector is stopped
function onStop()
if f then f:close() end
print("Lua connector stopped.")
end
]]></property>
</properties>
</connector>
</connectors>
</window-source>
<window-compute index="pi_EMPTY" name="Compute_ID3" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
<field name="BoatNumber" type="int32"/>
</fields>
</schema>
<output>
<field-expr><![CDATA[heading]]></field-expr>
<field-expr><![CDATA[speed]]></field-expr>
<field-expr><![CDATA[lat]]></field-expr>
<field-expr><![CDATA[long]]></field-expr>
<field-expr><![CDATA[3]]></field-expr>
</output>
</window-compute>
<window-source index="pi_EMPTY" insert-only="true" name="Boat4" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
</fields>
</schema>
<connectors>
<connector class="lua" name="Boat4">
<properties>
<property name="type"><![CDATA[pub]]></property>
<property name="interval"><![CDATA[5000]]></property>
<property name="init"><![CDATA[onStart]]></property>
<property name="publish"><![CDATA[onInterval]]></property>
<property name="destroy"><![CDATA[onStop]]></property>
<property name="code"><![CDATA[-- boatReader.lua
-- Publishes 2 boat records every 5 seconds
local f = io.open("@ESP_PROJECT_HOME@/test_files/boat4.csv", "r")
if not f then
print("Could not open boatdata.csv")
end
-- read header if present
local header = f:read("*l")
-- called when connector starts
function onStart()
print("Lua connector started, publishing 2 records every 5s...")
end
-- called periodically based on 'interval' property
function onInterval()
local events = {}
-- read up to 2 records from the file
for i = 1, 2 do
local line = f:read("*l")
if not line then
print("End of file reached, stopping.")
f:close()
return true -- stops connector
end
-- split CSV line
local fields = {}
for value in string.gmatch(line, "([^,]+)") do
table.insert(fields, value)
end
-- build event (adapt schema fields to your project!)
local event = {
dateTime = fields[1], -- timestamp string
heading = tonumber(fields[2]), -- numeric
speed = tonumber(fields[3]), -- numeric
lat = tonumber(fields[4]),
long = tonumber(fields[5])
}
table.insert(events, event)
end
-- publish events to ESP
if(esp_inject(event) == false) then -- false means call me again.
return true -- true means I am finished
end
esp_inject(events)
end
-- cleanup if connector is stopped
function onStop()
if f then f:close() end
print("Lua connector stopped.")
end
]]></property>
</properties>
</connector>
</connectors>
</window-source>
<window-compute index="pi_EMPTY" name="Compute_ID4" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
<field name="BoatNumber" type="int32"/>
</fields>
</schema>
<output>
<field-expr><![CDATA[heading]]></field-expr>
<field-expr><![CDATA[speed]]></field-expr>
<field-expr><![CDATA[lat]]></field-expr>
<field-expr><![CDATA[long]]></field-expr>
<field-expr><![CDATA[4]]></field-expr>
</output>
</window-compute>
<window-geofence name="Geofence_Area_Check" pubsub="true" pubsub-index="pi_HASH">
<description><![CDATA[This is a Geofence window that defines the areas of interest.]]></description>
<geofence autosize-mesh="true" coordinate-type="geographic" max-meshcells-per-geometry="50"/>
<geometry data-fieldname="Poly_Data" data-separator=" " desc-fieldname="poly_desc" radius="1000" radius-fieldname="Poly_Radius"/>
<position lookupdistance="0" x-fieldname="long" y-fieldname="lat"/>
<output geodesc-fieldname="GeoDesc" geodistance-fieldname="GeoDist" geoid-fieldname="GeoID" geotype-fieldname="GeoType" include-geo-fields="Poly_Data,Poly_Radius"/>
</window-geofence>
<window-source index="pi_EMPTY" name="Areas_Of_Interest" pubsub="true">
<description><![CDATA[This is a Source window that receives an event stream defining the areas of interest that the boats are not permitted to enter.]]></description>
<schema>
<fields>
<field key="true" name="poly_id" type="int64"/>
<field name="poly_desc" type="string"/>
<field name="Poly_Data" type="string"/>
<field name="Poly_Radius" type="double"/>
</fields>
</schema>
<connectors>
<connector class="fs" name="Areas_Of_Interest">
<properties>
<property name="type"><![CDATA[pub]]></property>
<property name="fsname"><![CDATA[@ESP_PROJECT_HOME@/test_files/geoArea.csv]]></property>
<property name="fstype"><![CDATA[csv]]></property>
</properties>
</connector>
</connectors>
</window-source>
<window-filter index="pi_HASH" name="Filter_Speeding_In_Marina" pubsub="true">
<use><![CDATA[GeoID,speed]]></use>
<code><![CDATA[function filter(data)
return data.GeoID == 1 and data.speed > 4
end]]></code>
</window-filter>
<window-filter func="filter" index="pi_HASH" name="Filter_Inside_Exclusion_Zone" pubsub="true">
<description><![CDATA[There are two Filter windows that identify if any of the boats have entered the exclusion zone and speed restriction zone and if any of the boats were speeding: Filter_Inside_Exclusion_Zone and Last_Speeding_Event.]]></description>
<use><![CDATA[GeoID]]></use>
<code><![CDATA[function filter(data)
return data.GeoID == 2
end
]]></code>
</window-filter>
<window-aggregate index="pi_HASH" name="Last_Exclusion_Violation" pubsub="true">
<description><![CDATA[There are two Aggregate windows that aggregate the last exclusion violation and the last speeding event : Last_Exclusion_Violation and Last_Speeding_Event]]></description>
<schema>
<fields>
<field key="true" name="BoatNumber" type="int32"/>
<field name="Minimum_Distance" type="double"/>
<field name="Location_Name" type="string"/>
<field name="First_dateTime" type="string"/>
<field name="Last_dateTime" type="string"/>
</fields>
</schema>
<output>
<field-expr><![CDATA[ESP_aMin(GeoDist)]]></field-expr>
<field-expr><![CDATA[ESP_aLast(GeoDesc)]]></field-expr>
<field-expr><![CDATA[ESP_aFirst(dateTime)]]></field-expr>
<field-expr><![CDATA[ESP_aLast(dateTime)]]></field-expr>
</output>
</window-aggregate>
<window-aggregate index="pi_HASH" name="Last_Speeding_Event" pubsub="true">
<schema>
<fields>
<field key="true" name="BoatNumber" type="int32"/>
<field name="Max_speed" type="double"/>
<field name="Location_Name" type="string"/>
<field name="dateTime" type="string"/>
</fields>
</schema>
<output>
<field-expr><![CDATA[ESP_aMax(speed)]]></field-expr>
<field-expr><![CDATA[ESP_aLast(GeoDesc)]]></field-expr>
<field-expr><![CDATA[ESP_aLast(dateTime)]]></field-expr>
</output>
</window-aggregate>
<window-copy index="pi_HASH" name="Retention_30Min" pubsub="true">
<description><![CDATA[This is a Copy window that is used to transition the model from stateless to stateful.]]></description>
<retention type="bytime_sliding"><![CDATA[30 minutes]]></retention>
</window-copy>
<window-source index="pi_EMPTY" insert-only="true" name="Score_Boat" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
</fields>
</schema>
</window-source>
<window-compute index="pi_EMPTY" name="Compute_ID0" pubsub="true">
<schema>
<fields>
<field key="true" name="dateTime" type="string"/>
<field name="heading" type="double"/>
<field name="speed" type="double"/>
<field name="lat" type="double"/>
<field name="long" type="double"/>
<field name="BoatNumber" type="int32"/>
</fields>
</schema>
<output>
<field-expr><![CDATA[heading]]></field-expr>
<field-expr><![CDATA[speed]]></field-expr>
<field-expr><![CDATA[lat]]></field-expr>
<field-expr><![CDATA[long]]></field-expr>
<field-expr><![CDATA[0]]></field-expr>
</output>
</window-compute>
</windows>
<edges>
<edge source="Boat2" target="Compute_ID2"/>
<edge source="Boat1" target="Compute_ID1"/>
<edge source="Compute_ID2" target="Union_All_Boats"/>
<edge source="Compute_ID1" target="Union_All_Boats"/>
<edge source="Boat3" target="Compute_ID3"/>
<edge source="Compute_ID3" target="Union_All_Boats"/>
<edge source="Boat4" target="Compute_ID4"/>
<edge source="Compute_ID4" target="Union_All_Boats"/>
<edge role="position" source="Union_All_Boats" target="Geofence_Area_Check"/>
<edge role="geometry" source="Areas_Of_Interest" target="Geofence_Area_Check"/>
<edge source="Geofence_Area_Check" target="Retention_30Min"/>
<edge source="Retention_30Min" target="Filter_Inside_Exclusion_Zone"/>
<edge source="Retention_30Min" target="Filter_Speeding_In_Marina"/>
<edge source="Filter_Speeding_In_Marina" target="Last_Speeding_Event"/>
<edge source="Filter_Inside_Exclusion_Zone" target="Last_Exclusion_Violation"/>
<edge source="Score_Boat" target="Compute_ID0"/>
<edge source="Compute_ID0" target="Union_All_Boats"/>
</edges>
</contquery>
</contqueries>
</project>