Skip to content
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

Question: Property and Operation Delegation #166

Closed
wiresio opened this issue Dec 20, 2023 · 6 comments
Closed

Question: Property and Operation Delegation #166

wiresio opened this issue Dec 20, 2023 · 6 comments

Comments

@wiresio
Copy link

wiresio commented Dec 20, 2023

I found a nice feature using Property and Operation Delegations and implemented in a setup for v1.

Question: Is this already working in v2?

@wiresio
Copy link
Author

wiresio commented Dec 21, 2023

Having set the respective property to:

  {
      "idShort": "live",
      "qualifiers": [
          {
              "type": "delegatedTo",
              "valueType": "xs:string",
              "value": "http://IPADDRESS:8080/aidrunner/properties/count"
          }
      ],
      "valueType": "xs:string",
      "value": "",
      "modelType": "Property"
  }

I get back an empty value.

@wiresio
Copy link
Author

wiresio commented Dec 21, 2023

Connectivity tested via docker exec -it CONTAINERID timeout 3 /bin/bash -c "echo > /dev/tcp/IPADDRESS/8080 >& /dev/null" && echo "ok" || echo "nok" seems to be working - however, still no value.

Any ideas or just not (yet) implemented in v2?

@FrankSchnicke
Copy link
Contributor

This is not implemented for V2 as of now. However, we will implement it in the coming weeks.
I will keep this ticket open and update it whenever the feature is implemented.

@FrankSchnicke
Copy link
Contributor

Operation Delegation is now implemented and will be included in the next release (i.e., next week).
Property Delegation, however, we're not planning to implement as of now. The reason is that it does not integrate well with the other architecture concepts of BaSyx (e.g., eventing). Since the value is only retrieved on-demand, features like eventing will not work as expected. I would advise for these scenarios to use the BaSyx DataBridge.

Do you have any scenario in mind where the DataBridge would not work but Property Delegation does?

@wiresio
Copy link
Author

wiresio commented Feb 9, 2024

Thanks for the efforts and the update!

I think it is fine to use a gateway (e.g., DataBridge or node-wot) to take care of the data collection and update of the respective Submodels or Submodel Elements. Eventing is anyhow preferred over cyclic polling.

Once the feature is pushed to main, it would be great if you could also provide a sample AAS to see both Operation Delegation as well as Eventing in action.

Another approach towards data collection in the AAS was recently prototyped in a AASX Package Explorer branch via AID / AIMC Submodels. Maybe both approaches can be streamlined.

@FrankSchnicke
Copy link
Contributor

Once the feature is pushed to main, it would be great if you could also provide a sample AAS to see both Operation Delegation as well as Eventing in action.

We're planning on providing these examples. I will send an update on the basyx-dev mailing list whenever they are available.

Another approach towards data collection in the AAS was recently prototyped in a AASX Package Explorer branch via AID / AIMC Submodels. Maybe both approaches can be streamlined.

We would like to integrate AID / AIMC with the BaSyx DataBridge in a first step. Additionally, configurating operation delegation via these submodels is also a very interesting topic. However, for this there is no concrete ETA at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants