Add Sirius .aird view import (Phase 4)#15
Open
haphantran wants to merge 1 commit into
Open
Conversation
Import Sirius .aird session/representation files into SpatialDSL views. Each DSemanticDiagram becomes a view whose elements resolve against an already-imported model (semantic targets by xmi:id fragment, then unique name) and viewpoint (representation description by id/name). GMF notation:Diagram layout is preserved: node Bounds map to element x/y/width/height and edge waypoints map to points. Unresolved or ambiguous references are reported, never silently dropped. Backend: parseAird/importAird in the Sirius interop service, a POST /sirius/aird/import route, and aird dispatch in /sirius/validate. Frontend: validateAird/importAird service methods plus an "Import .aird View" action in the Viewpoint manager (resolves the metamodel's model and the selected viewpoint). Adds an aird-layout fixture with GMF notation, shared SiriusAird* types, and backend/frontend tests. Updates docs/reference/sirius-file-compatibility.md and the parity roadmap for the new .aird import subset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Imports Sirius
.airdsession/representation files into SpatialDSL views. EachDSemanticDiagrambecomes a view whose elements resolve against an already-imported model and viewpoint, with GMF notation layout preserved..airdexport remains deferred (Phase 5).Scope decisions
Bounds→ element x/y/width/height; edge waypoints →points.xmi:idfragment then unique name; representation descriptions resolve against the supplied viewpoint. Unresolved/ambiguous refs are reported, never silently dropped.Changes
parseAird/importAirdin the Sirius interop service;POST /sirius/aird/import;airddispatch in/sirius/validate.validateAird/importAirdservice methods + an "Import .aird View" action in the Viewpoint manager.fixtures/sirius/aird-layout/with GMF notation;SiriusAird*shared types; updateddocs/reference/sirius-file-compatibility.mdand the parity roadmap.Tests
Reviewer notes / caveats
loadFromAPI). The success message says as much.