|
1 | | -# BaSyx Digital Twin Registry - Environment Configuration |
| 1 | + |
| 2 | + |
| 3 | +# BaSyx Digital Twin Registry |
2 | 4 |
|
3 | 5 | ## Overview |
| 6 | +The **Digital Twin Registry** serves as a combined module that merges the capabilities of `AASRegistry` and `AASDiscovery`. |
| 7 | +When a client calls the `/shell-description` endpoint, the module dynamically constructs both an `AssetAdministrationShellDescriptor` and an `aasDiscoveryDocumentEntity`. |
| 8 | + |
| 9 | +This dual-output ensures that the asset shell becomes immediately discoverable and accessible, blending registry and discovery functionalities in a seamless operation. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## How It Works |
| 14 | + |
| 15 | +- **Endpoint Integration** |
| 16 | + |
| 17 | + A single REST endpoint (`/shell-description`) triggers the generation of: |
| 18 | + - An **AAS Descriptor**, representing the asset's metadata and management interface. |
| 19 | + - A **Discovery Document**, enabling other components to locate or resolve the AAS. |
| 20 | + |
| 21 | +- **Unified Workflow** |
| 22 | + By combining `AASRegistry` and `AASDiscovery`, the module streamlines the typical sequential two-step — *discover then retrieve* — into a single integrated operation. |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## Module Structure in the BaSyx SDK |
| 27 | + |
| 28 | +- **New Module Introduction** |
| 29 | + Within the main BaSyx SDK, a new module — `digitaltwinregistry` — has been introduced. |
| 30 | + It follows the **decorator pattern**, meaning it wraps around existing functionality to extend behavior without modifying original code. |
| 31 | + |
| 32 | +- **Delegate-Based Design** |
| 33 | + At its core, the module implements or creates a **delegate** for the `ShellDescriptorsApiDelegate` interface. |
| 34 | + This delegate intercepts API calls (particularly related to shell descriptions) and injects the registry-and-discovery logic — making the module effectively pluggable and maintainable. |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +## Summary |
| 39 | + |
| 40 | +In essence, the **Digital Twin Registry module**: |
| 41 | + |
| 42 | +- Combines **registry** and **discovery** into a unified action via `/shell-description`. |
| 43 | +- Is implemented as a **decorator delegate** (`ShellDescriptorsApiDelegate`), making it both modular and maintainable. |
| 44 | +- Seamlessly integrates with existing BaSyx storage options and aligns with broader architectural goals, such as centralized registries, tagging, and scalable discovery. |
| 45 | + |
| 46 | +## Environment |
4 | 47 | This document describes the environment variables used to configure the BaSyx Digital Twin Registry application. The application supports multiple profiles with different storage backends. |
5 | 48 |
|
6 | 49 | --- |
|
0 commit comments