Azure Digital Twins APIs

A real-time digital twin model optionally can be integrated with an Azure Digital Twins model, as described in the topic Azure Digital Twins Integration. This integration is implemented by creating an Azure Digital Twins component that stores the properties defined in the real-time digital twin model.

Each digital twin instance’s ProcessingContext provides APIs for retrieving and updating the properties in its corresponding Azure Digital Twins instance. It also can access properties in other Azure Digital Twins instances within the same model or other models. In addition, APIs enable a digital twin to discover the model identifiers for all Azure Digital Twin models and all instance identifiers for a specified model.

The async versions of the Java APIs for Azure Digital Twins integration are as follows:

  • getInstanceIdsAsync: returns the list of Azure Digital Twins instance IDs for a specified model

  • getInstanceAsync: returns the Azure Digital Twins instance for a specified model, and specified ID

  • getPropertyMapAsync: returns the list of properties and their types for a specified model

  • getPropertyAsync<T>: returns the specified property of type T for an Azure Digital Twins instance in the specified model

  • updatePropertyAsync<T>: updates the specified property of type T for an Azure Digital Twins instance in the specified model

  • getRTDTPropertyAsync<T>: returns the specified property of type T for an Azure Digital Twins instance in the real-time digital twin’s model

  • updateRTDTPropertyAsync<T>: updates the specified property of type T for an Azure Digital Twins instance in the real-time digital twin’s model