-
Notifications
You must be signed in to change notification settings - Fork 4
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
Provide for multiple instances of a definition within a declaration #96
Comments
I propose to take an explicit approach and define two new qualities, applied to types odmProperty, odmObject, and odmThing:
multiInstance without a maxInstances constraint is valid These qualities should be allowed to be added to new definitions that reuse other definitions, e.g. multiInstance in the definition of an outlet thing, and maxInstances defined when the outlet thing definition is used in an outlet strip thing definition. |
i think this will work for odmThing, where multiple instances of the odmObject can be instantiated. |
We need to support multiple instances of odmProperty to model multi-instance Resource types in LWM2M. In LWM2M, they are addressable as an array or as individual elements. There is no need to require any particular structure in the SDF model, thus can leave it to the binding. We also need to allow odmThing to have multiple instances of odmObject or odmThIng for use cases like the outlet strip. We could work out some examples to discuss from. |
if LWM2M can access the data as an array then we should also model that with SDF. |
Having the same multi* qualities on both Thing/Object and A/E/P level sounds like a good way forward to me. That allows modeling well the LwM2M models and those models that don't have this feature don't have to use it. I guess we'll learn more how well that works when we do more cross-ecosystem model conversions and then can re-visit this, if needed. |
To support array style constructs in implementations, the data model definition needs to allow for some kind of multi-instance concept in declarations, to use a definition in a way that may result in multiple instances within an implementation.
This could be multiple instances of a property to model OMA LWM2M resources, or something like an outlet strip model with some unspecified number of outlet elements.
The text was updated successfully, but these errors were encountered: