-
Notifications
You must be signed in to change notification settings - Fork 4
Allow list for refers_to rule #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8784f16 to
12df8d4
Compare
|
Just after finalizing this and testing around with it a bit, I noticed that it's not so clear which id we actually want to refer to. The definition of the
Sensor-internal ids do not need to be globally unique, so it probably is not intended to store these in the |
It seems like we need to, right? Also there could be multiple sensordata/featuredata so they would needed to be stored per sensor (or replaced). |
|
Yes, you would even have to consider the sensor ids then. Also, it would add some overhead on the rule checking. E.g. we might need to check for certain hard-coded object type names because otherwise we don't know where to look for the id (from the rule's perspective). |
Which could be broken/missing as well.
I just thought about this a bit more. For me it seems like |
|
That threw me off too. Aren't both existing ids just references instead of actual identifiers? I mean for me it generally seems fine per se to reference a sensor that contributed to the object data and provide the corresponding sensor-internal ids then. But in |
|
Ah, I see. I also misunderstood this at first - I think your interpretation is mostly correct!
From my updated understanding,
In OSI, a "sensor" doesn’t necessarily mean just one physical measurement device, right?. It could also represent a component that fuses data from multiple sensors. From the OSI documentation:
This implies the following: Scenario A: Single-sensor output
Scenario B: Multi-sensor fusion output
|
|
You're right. I confused "sensor" (used in In summary, the tracking ids are simply expected to be unique across all objects that contain the I'll have a look at the implementation again and see how we can store the tracking ids separately. |
Yes.
I also just saw the following in the documentation:
Is that not a particular issue for the current architecture of qc-osi-trace? Would that not require to store IDs generally context-wise (what ever that means)? |
|
That probably mainly means that there should not be a refers_to rule at all on that field, as we more or less state that the semantics are up to the sensor spec, which we do not know anything about in any case. I don't think we should be checking anything here by default, and if we people want to have custom rules, it should be context-specifying rule with a different name. |
12df8d4 to
01f0d29
Compare
01f0d29 to
88e560f
Compare
Signed-off-by: Thomas Sedlmayer <tsedlmayer@pmsfit.de>
88e560f to
015ff7d
Compare
So far it was only possible to refer to a single explicit type like this:
This change allows to check against a rule syntax using a square bracket list as defined in OpenSimulationInterface/open-simulation-interface#879:
Rule semantics: To satisfy the rule, one of list's entry has to match the actual type of the object that the
Identifier's id refers to.Related:
OpenSimulationInterface/open-simulation-interface#876