Back to SISO Website
SISO Discussion Forums

Help for SAC-PDG-WEBLVC Discussion Forum List


SAC-PDG-WEBLVC Discussion Forum List

SAC-PDG-WEBLVC Discussion Forum List


SAC-PDG-WEBLVC@DISCUSSIONS.SISOSTDS.ORG


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

SISO Discussions Home

SISO Discussions Home

SAC-PDG-WEBLVC Home

SAC-PDG-WEBLVC Home

SAC-PDG-WEBLVC  March 2017

SAC-PDG-WEBLVC March 2017

Subject:

filtering system

From:

Ringo Wathelet <[log in to unmask]>

Reply-To:

SAC-PDG-WebLVC <[log in to unmask]>

Date:

Thu, 23 Mar 2017 04:47:14 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (30 lines)

I have been experimenting with replacing the filtering system
as described in draft-0.5 with a bit of JavaScript code.
For example, as part of the subscription message:

{
"MessageKind" : "SubscribeObject",
"ObjectType" : “WebLVC:PhysicalEntity”,
"Filter": codeString
}

where the codeString is a string, for example:

"function filter(msg) {
var obj = JSON.parse(msg);
if (obj.Coordinates.WorldLocation[2] > 500.0 &&amp;
     obj.Coordinates.WorldLocation[2] < 1000.0) return true;
return false; }"

The client does not need to be a JavaScript application, it is just sending a string.
The code is run by the server for that particular client.
Since it is JavaScript any filtering is possible.
This scheme works very well in my tests. It would simplify the filtering and make it more robust.
All the server needs to know is the “standard” name of the function (filter),
that it takes one parameter and return true or false.

########################################################################

To unsubscribe from the SAC-PDG-WEBLVC list, click the following link:
https://discussions.sisostds.org/index.htm?SUBED1=SAC-PDG-WEBLVC&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search SISO Discussions

Search SISO Discussions


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Discussion Forum List

February 2019
September 2018
May 2018
April 2018
March 2018
January 2018
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
March 2017
October 2016
September 2016
August 2016
July 2016
November 2015
September 2015
June 2015
March 2015
February 2015
January 2015
December 2014

ATOM RSS1 RSS2