Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Herbert Diniz sent a message using the contact form at
http://catalogue.fiware.org/.
Dear,
I'm trying use the Proton CEP, how is showed into Proton user guide,
although, not run fine when my logical rules are related at the function
"distance(x1,y1,x2,y2)"
on a expression AuthoringTool, the documentations aren't clear for me, how
could use this function? The demos projects, don't show how can I use it,
could you show a example? I'm new in the proton API. Thank you!
Best regards,
Herbert Diniz
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help-new
[Created via e-mail received from: herberttb@gmail.com]
Dear Herbert,
You need to provide 4 parameters, 2 for the first point and 3 for the
second.
The function calculate a geometric distance, sqrt((y2-y1)^2 + (x2-x1)^2).
To refer to attribute of an event use the following:
<EventName>.<EventAttributeName> for example attribute x of event a: a.x
So if event a has attributes x,y and event b has attributes x,y , you can
refer to the distance between those two points by writing:
distance(a.x,a.y,b.x,b.y)
Best regards,
Tali
Tali Yatzkar Haham
Smart Decision Solutions
IBM Research - Haifa, Israel
tali@il.ibm.com 972-4-8296320
From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
Date: 25/09/2015 01:04 PM
Subject: [FI-WARE-JIRA] (
HELP-4365) [Fiware-tech-help] [ComplexEvent Processing (CEP) - Proactive Technology Online] Example about proton
cep
[
https://jira.fiware.org/browse/HELP-4365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manuel Escriche reassigned
HELP-4365:-------------------------------------
Assignee: Tali Yatzkar Haham
Technology Online] Example about proton cep
----------------------------------------------------------------------------------------------------------
function
how
it,
–
This message was sent by Atlassian JIRA
(v6.4.1#64016)