Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
470 stars 160 forks source link

Are multiple instances of the same interface supported? #48

Closed uriel-kluk closed 4 years ago

uriel-kluk commented 4 years ago

Assume a connected Robot

As a builder, I would like to instantiate left arm and right arm. Are named instances supported?

Assume a connected train I would like to implement 'N' wagons and address them by index Are array instances supported?

Assume and an interlocking vault I would like to implement exterior and interior doors

If these examples are supported, I would love to review best practices and how to represent them on IoT Central dashboards.

briancr-ms commented 4 years ago

In the current release, multiple instances of the same interface (in an implements property in a CapabilityModel) are not supported. However, look for this to be improved in an upcoming update where you will be able to define your robot as you expect.