How eclipse-aaspe/package-explorer works
1. This repository is a mono-repo for Eclipse AASX Package Explorer, a C#/.NET toolset centered on Asset Administration Shell (AAS) V3 packages. The main user-facing product is a desktop editor/viewer, but the repo also contains a web UI, server components, converters, plugins, shared UI abstractions, and test/tooling projects.
2. The core domain boundary is the AAS metamodel and serialization layer. src/AasCore.Aas3_1 contains the primary V3.1 model and logic such as JSON/XML serialization, verification, reporting, visitation, and stringification. src/AasxServer.DomainModelV3_0_RC02 is a parallel generated model for an older V3 RC branch, while src/AasxCsharpLibrary provides the broader AAS helper layer, compatibility models, validation, and extension methods.
3. The main persistence and package boundary is PackageCentral in src/AasxPackageLogic. It abstracts how AAS packages are accessed: local .aasx files, buffered environments, HTTP-backed repositories, network file access, and dynamic/on-demand fetch environments. This is the layer that turns a package into a navigable/editable environment for the UI and for server/export features.
4. The primary desktop application is src/AasxPackageExplorer, a WPF shell. Its MainWindow and related XAML files host the editor UI, command bindings, splash/about windows, flyouts, and demo/content assets. It depends on AasxPackageLogic for all package operations and on AasxWpfControlLibrary for reusable controls and dialogs.
5. There is a second UI stack in src/BlazorExplorer and a simpler src/BlazorUI, both built as Blazor applications. They mirror much of the explorer experience in a browser-based form, with pages for trees, rendering, flyouts, menus, and session state. The web UI talks to shared backend logic through AASService, session classes, and AnyUI-adapted components rather than duplicating domain rules.
6. A major architectural seam is AnyUI / UI abstraction. src/AnyUi, src/AasxIntegrationBase, src/AasxIntegrationBaseWpf, src/AasxIntegrationBaseGdi, src/AasxWpfControlLibrary, and src/BlazorExplorer/AnyUI provide a platform-neutral widget/dialog model with platform-specific renderers for WPF, GDI, and Blazor. This allows the same package logic and plugin workflows to be presented across UI technologies.
7. The repository has a plugin architecture centered on AasxIntegrationBase and per-plugin .plugin/options files. Plugins such as GenericForms, TechnicalData, DigitalNameplate, DocumentShelf, Plotting, MTP viewer, WebBrowser, BOM structure, AssetInterfaceDesc, ExportTable, and others contribute domain-specific editors, importers, exporters, and visualizations. The host app loads these plugins and surfaces them through menus, flyouts, and AnyUI controls.
8. Several subsystems integrate AAS with external protocols and servers. src/AasxRestServerLibrary and src/AasxFileServerRestLibrary provide REST endpoints for package/file-server scenarios, while src/AasxUaNetServer, src/AasxOpcUa2Client, and src/AasxUaNetConsoleServer cover OPC UA server/client integration. The README explicitly notes that the explorer can run an internal REST server and OPC UA server for the loaded .AASX; the server-oriented projects extend that into reusable hosting components.
9. The repo also contains many format conversion and import/export modules. Examples include AML import/export, BAMM RDF import, schema export, CST conversion, JSON schema export, signature handling, and package transforms for BOM, CSV, MTP, Thing Description, ECLASS/SAMM, and predefined concept mappings. AasxPredefinedConcepts is the shared concept/mapping repository that feeds these converters and template generators.
10. Validation and tooling are first-class. src/AasxToolkit is a CLI for extract/generate/validate tasks, src/Check* scripts enforce style, headers, todos, and commit rules, and there are dedicated test projects for core library behavior, GUI behavior, schema export, toolkit behavior, dictionary import, and package explorer integration. GitHub workflows and DocFX content under docdev support CI, packaging, and developer documentation.
11. From an architecture-diagram perspective, the key flow is: AASX package or remote repository → PackageCentral/environment → domain model (AasCore.Aas3_1 / helper libraries) → UI layer (WPF or Blazor via AnyUI) and/or server/export plugins → persistence, export, or protocol endpoints. The important boundaries are the metamodel layer, package access layer, UI abstraction layer, plugin boundary, and server/protocol boundary.
Main entry points: AasxIntegrationBase Integration base · PackageCentral.cs PackageCentral · AasxPredefinedConcepts Predefined concepts · AasCore.Aas3_1 AAS V3.1
Components 23
Domain model
AAS metamodels, validation, serialization, and shared compatibility helpers.
- AAS V3.1 · Primary Asset Administration Shell V3.1 model with JSON/XML, verification, visitation, reporting, and stringification.
src/AasCore.Aas3_1 - AAS RC02 · Parallel generated model for the older V3 RC02 branch.
src/AasxServer.DomainModelV3_0_RC02 - C# library · Compatibility models, extensions, validation helpers, package env base types, and secure access abstractions.
src/AasxCsharpLibrary - Predefined concepts · Shared concept definitions, mappings, and conversion helpers used by plugins and generators.
src/AasxPredefinedConcepts
Package access
Central package/environment abstraction and repository backends.
- PackageCentral · Central abstraction for local files, buffered environments, HTTP repos, and on-demand fetch handling.
src/AasxPackageLogic/PackageCentral/PackageCentral.cs - Containers · Concrete package containers and list factories for local, network, HTTP, repository, and file-server sources.
src/AasxPackageLogic/PackageCentral - Main logic · Desktop/app orchestration, menus, scripting, tools, modify-repo actions, and AnyUI dialog glue.
src/AasxPackageLogic
User interfaces
Desktop and web shells plus shared UI abstraction layers.
- WPF explorer · Main WPF explorer shell with windows, commands, themes, demo assets, and package explorer UI.
src/AasxPackageExplorer - WPF controls · Reusable controls, flyouts, and package container visualizations for the desktop app.
src/AasxWpfControlLibrary - AnyUI core · Platform-neutral widget/dialog model shared by WPF, GDI, and Blazor renderers.
src/AnyUi - Integration base · Plugin interfaces, menu abstractions, event stack, logging, and AnyUI bridge types.
src/AasxIntegrationBase - Blazor Explorer · Browser-based explorer with session state, AnyUI rendering pages, and AAS service integration.
src/BlazorExplorer - Blazor UI · Simpler Blazor UI stack with shared AAS service, tree rendering, and session state.
src/BlazorUI
Plugins
Plugin boundary and representative domain-specific extensions.
- Generic Forms · Template-driven form plugin used for common AAS data-entry workflows.
src/AasxPluginGenericForms - Technical Data · Technical-data plugin with AnyUI control and options for domain-specific entry and browsing.
src/AasxPluginTechnicalData - Digital Nameplate · Digital nameplate plugin and associated options/data/control layer.
src/AasxPluginDigitalNameplate - Export Table · Export/import plugin covering tables, SMT, UML, time series, and bulk semantic-id changes.
src/AasxPluginExportTable - SMD exporter · Simulation-model-description exporter and related physical/text UI.
src/AasxPluginSmdExporter
Servers
REST and OPC UA hosting/integration components.
- REST server · Reusable REST server/client layer for package and file-server scenarios.
src/AasxRestServerLibrary - OPC UA server · UA server wrapper and AAS node-manager implementation for exposing package data over OPC UA.
src/AasxUaNetServer
Tooling
CLI, export/import, validation, and developer utilities.
- Toolkit CLI · Command-line extract/generate/validate tool and sample validators.
src/AasxToolkit - Schema export · JSON schema exporter for submodel templates and schema-related tests.
src/AasxSchemaExport - Format converters · Representative format conversion modules for AML, BAMM RDF, CST, and signature/package transforms.
src/AasxAmlImExport
Connections 27
- AAS V3.1 → C# library: model helpers · Shared extension/validation layers build on the core metamodel.
- AAS RC02 → C# library: legacy helpers · Legacy RC02 model is supported through the shared compatibility library.
- Predefined concepts → Generic Forms: templates · Concept definitions feed form templates and presets.
- Predefined concepts → Technical Data: domain presets · Technical-data definitions back the plugin UI and mappings.
- Predefined concepts → Digital Nameplate: nameplate defs · Digital nameplate definitions are reused by the plugin.
- PackageCentral → Containers: backends · PackageCentral coordinates the concrete container implementations.
- C# library → PackageCentral: env base · Package environment base types and online connection abstractions are consumed by PackageCentral.
- PackageCentral → Main logic: package ops · Main app logic uses the central package/environment boundary.
- Main logic → WPF explorer: desktop shell · The WPF shell hosts command handling and user workflows.
- Main logic → Blazor Explorer: web coordination · Shared app logic is surfaced through the Blazor explorer session and service layer.
- WPF explorer → WPF controls: ui reuse · Desktop shell depends on reusable controls and flyouts.
- WPF explorer → Integration base: plugin host · The shell loads plugins via the integration base contracts.
- Blazor Explorer → AnyUI core: rendering · Blazor adapts the AnyUI abstraction to browser components.
- WPF controls → AnyUI core: rendering · WPF controls implement the AnyUI surface for desktop rendering.
- Integration base → AnyUI core: abstraction · Plugin infrastructure uses AnyUI for platform-neutral dialogs and widgets.
- Integration base → Generic Forms: plugin api · GenericForms implements the host plugin interface.
- Integration base → Technical Data: plugin api · Technical-data plugin implements the host plugin interface.
- Integration base → Digital Nameplate: plugin api · Digital-nameplate plugin implements the host plugin interface.
- Integration base → Export Table: plugin api · Export-table plugin implements the host plugin interface.
- Integration base → SMD exporter: plugin api · SMD exporter plugin implements the host plugin interface.
- REST server → PackageCentral: remote access · REST endpoints expose or consume package data through the package layer.
- OPC UA server → PackageCentral: ua exposure · OPC UA hosting projects surface package contents through the package layer.
- Toolkit CLI → AAS V3.1: validate/emit · CLI generation and validation operate on the core model.
- Schema export → AAS V3.1: schema model · Schema export derives from the AAS model and metamodel context.
- Format converters → AAS V3.1: transform · Format converters map package content to and from the core model.
- Format converters → Predefined concepts: mappings · Converters consume predefined concepts and mapping repositories.
- Blazor UI → AnyUI core: rendering · The simpler Blazor UI also uses the shared AnyUI abstraction.