sysmledgraph 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -0
- package/dist/bin/cli.d.ts +6 -0
- package/dist/bin/cli.d.ts.map +1 -0
- package/dist/bin/cli.js +61 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +8 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/src/cli/commands.d.ts +22 -0
- package/dist/src/cli/commands.d.ts.map +1 -0
- package/dist/src/cli/commands.js +87 -0
- package/dist/src/cli/commands.js.map +1 -0
- package/dist/src/discovery/find-sysml.d.ts +16 -0
- package/dist/src/discovery/find-sysml.d.ts.map +1 -0
- package/dist/src/discovery/find-sysml.js +30 -0
- package/dist/src/discovery/find-sysml.js.map +1 -0
- package/dist/src/discovery/load-order.d.ts +11 -0
- package/dist/src/discovery/load-order.d.ts.map +1 -0
- package/dist/src/discovery/load-order.js +85 -0
- package/dist/src/discovery/load-order.js.map +1 -0
- package/dist/src/graph/connection.d.ts +6 -0
- package/dist/src/graph/connection.d.ts.map +1 -0
- package/dist/src/graph/connection.js +7 -0
- package/dist/src/graph/connection.js.map +1 -0
- package/dist/src/graph/graph-store.d.ts +37 -0
- package/dist/src/graph/graph-store.d.ts.map +1 -0
- package/dist/src/graph/graph-store.js +108 -0
- package/dist/src/graph/graph-store.js.map +1 -0
- package/dist/src/graph/schema.d.ts +13 -0
- package/dist/src/graph/schema.d.ts.map +1 -0
- package/dist/src/graph/schema.js +21 -0
- package/dist/src/graph/schema.js.map +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +14 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/indexer/indexer.d.ts +20 -0
- package/dist/src/indexer/indexer.d.ts.map +1 -0
- package/dist/src/indexer/indexer.js +56 -0
- package/dist/src/indexer/indexer.js.map +1 -0
- package/dist/src/indexer/pipeline-phases.d.ts +8 -0
- package/dist/src/indexer/pipeline-phases.d.ts.map +1 -0
- package/dist/src/indexer/pipeline-phases.js +14 -0
- package/dist/src/indexer/pipeline-phases.js.map +1 -0
- package/dist/src/mcp/resources/context.d.ts +6 -0
- package/dist/src/mcp/resources/context.d.ts.map +1 -0
- package/dist/src/mcp/resources/context.js +45 -0
- package/dist/src/mcp/resources/context.js.map +1 -0
- package/dist/src/mcp/resources/schema.d.ts +6 -0
- package/dist/src/mcp/resources/schema.d.ts.map +1 -0
- package/dist/src/mcp/resources/schema.js +14 -0
- package/dist/src/mcp/resources/schema.js.map +1 -0
- package/dist/src/mcp/server.d.ts +8 -0
- package/dist/src/mcp/server.d.ts.map +1 -0
- package/dist/src/mcp/server.js +175 -0
- package/dist/src/mcp/server.js.map +1 -0
- package/dist/src/mcp/tools/clean-index.d.ts +12 -0
- package/dist/src/mcp/tools/clean-index.d.ts.map +1 -0
- package/dist/src/mcp/tools/clean-index.js +22 -0
- package/dist/src/mcp/tools/clean-index.js.map +1 -0
- package/dist/src/mcp/tools/context.d.ts +14 -0
- package/dist/src/mcp/tools/context.d.ts.map +1 -0
- package/dist/src/mcp/tools/context.js +51 -0
- package/dist/src/mcp/tools/context.js.map +1 -0
- package/dist/src/mcp/tools/cypher.d.ts +13 -0
- package/dist/src/mcp/tools/cypher.d.ts.map +1 -0
- package/dist/src/mcp/tools/cypher.js +25 -0
- package/dist/src/mcp/tools/cypher.js.map +1 -0
- package/dist/src/mcp/tools/generate-map.d.ts +13 -0
- package/dist/src/mcp/tools/generate-map.d.ts.map +1 -0
- package/dist/src/mcp/tools/generate-map.js +96 -0
- package/dist/src/mcp/tools/generate-map.js.map +1 -0
- package/dist/src/mcp/tools/impact.d.ts +14 -0
- package/dist/src/mcp/tools/impact.d.ts.map +1 -0
- package/dist/src/mcp/tools/impact.js +47 -0
- package/dist/src/mcp/tools/impact.js.map +1 -0
- package/dist/src/mcp/tools/index-db-graph.d.ts +14 -0
- package/dist/src/mcp/tools/index-db-graph.d.ts.map +1 -0
- package/dist/src/mcp/tools/index-db-graph.js +32 -0
- package/dist/src/mcp/tools/index-db-graph.js.map +1 -0
- package/dist/src/mcp/tools/list-indexed.d.ts +9 -0
- package/dist/src/mcp/tools/list-indexed.d.ts.map +1 -0
- package/dist/src/mcp/tools/list-indexed.js +14 -0
- package/dist/src/mcp/tools/list-indexed.js.map +1 -0
- package/dist/src/mcp/tools/query.d.ts +14 -0
- package/dist/src/mcp/tools/query.d.ts.map +1 -0
- package/dist/src/mcp/tools/query.js +47 -0
- package/dist/src/mcp/tools/query.js.map +1 -0
- package/dist/src/mcp/tools/rename.d.ts +19 -0
- package/dist/src/mcp/tools/rename.d.ts.map +1 -0
- package/dist/src/mcp/tools/rename.js +46 -0
- package/dist/src/mcp/tools/rename.js.map +1 -0
- package/dist/src/parser/lsp-client.d.ts +52 -0
- package/dist/src/parser/lsp-client.d.ts.map +1 -0
- package/dist/src/parser/lsp-client.js +230 -0
- package/dist/src/parser/lsp-client.js.map +1 -0
- package/dist/src/parser/lsp-server-path.d.ts +10 -0
- package/dist/src/parser/lsp-server-path.d.ts.map +1 -0
- package/dist/src/parser/lsp-server-path.js +29 -0
- package/dist/src/parser/lsp-server-path.js.map +1 -0
- package/dist/src/parser/symbols.d.ts +13 -0
- package/dist/src/parser/symbols.d.ts.map +1 -0
- package/dist/src/parser/symbols.js +150 -0
- package/dist/src/parser/symbols.js.map +1 -0
- package/dist/src/parser/sysml-mcp-client.d.ts +109 -0
- package/dist/src/parser/sysml-mcp-client.d.ts.map +1 -0
- package/dist/src/parser/sysml-mcp-client.js +185 -0
- package/dist/src/parser/sysml-mcp-client.js.map +1 -0
- package/dist/src/storage/clean.d.ts +15 -0
- package/dist/src/storage/clean.d.ts.map +1 -0
- package/dist/src/storage/clean.js +44 -0
- package/dist/src/storage/clean.js.map +1 -0
- package/dist/src/storage/list.d.ts +9 -0
- package/dist/src/storage/list.d.ts.map +1 -0
- package/dist/src/storage/list.js +12 -0
- package/dist/src/storage/list.js.map +1 -0
- package/dist/src/storage/location.d.ts +22 -0
- package/dist/src/storage/location.d.ts.map +1 -0
- package/dist/src/storage/location.js +36 -0
- package/dist/src/storage/location.js.map +1 -0
- package/dist/src/storage/registry.d.ts +14 -0
- package/dist/src/storage/registry.d.ts.map +1 -0
- package/dist/src/storage/registry.js +59 -0
- package/dist/src/storage/registry.js.map +1 -0
- package/dist/src/symbol-to-graph/mapping.d.ts +17 -0
- package/dist/src/symbol-to-graph/mapping.d.ts.map +1 -0
- package/dist/src/symbol-to-graph/mapping.js +102 -0
- package/dist/src/symbol-to-graph/mapping.js.map +1 -0
- package/dist/src/types.d.ts +40 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +35 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/worker/client.d.ts +21 -0
- package/dist/src/worker/client.d.ts.map +1 -0
- package/dist/src/worker/client.js +126 -0
- package/dist/src/worker/client.js.map +1 -0
- package/dist/src/worker/gateway.d.ts +79 -0
- package/dist/src/worker/gateway.d.ts.map +1 -0
- package/dist/src/worker/gateway.js +93 -0
- package/dist/src/worker/gateway.js.map +1 -0
- package/dist/src/worker/graph-worker.d.ts +7 -0
- package/dist/src/worker/graph-worker.d.ts.map +1 -0
- package/dist/src/worker/graph-worker.js +91 -0
- package/dist/src/worker/graph-worker.js.map +1 -0
- package/dist/src/worker/protocol.d.ts +21 -0
- package/dist/src/worker/protocol.d.ts.map +1 -0
- package/dist/src/worker/protocol.js +9 -0
- package/dist/src/worker/protocol.js.map +1 -0
- package/docs/INSTALL.md +16 -0
- package/docs/MCP_CLIENT_TEMPLATE_ANALYSIS.md +196 -0
- package/docs/MCP_INTERACTION_GUIDE.md +201 -0
- package/docs/MCP_SERVER_FOR_CURSOR.md +124 -0
- package/docs/PLAN.md +58 -0
- package/docs/PLAN_INDEPENDENT_LSP.md +145 -0
- package/docs/SKILL_DESIGN_PATTERNS.md +305 -0
- package/docs/TOOLS.md +317 -0
- package/lsp/README.md +41 -0
- package/lsp/node_modules/.bin/sysml-mcp +12 -0
- package/lsp/node_modules/.bin/sysml-mcp.cmd +9 -0
- package/lsp/node_modules/.bin/sysml-mcp.ps1 +16 -0
- package/lsp/node_modules/.package-lock.json +22 -0
- package/lsp/node_modules/sysml-v2-lsp/CHANGELOG.md +188 -0
- package/lsp/node_modules/sysml-v2-lsp/LICENSE +21 -0
- package/lsp/node_modules/sysml-v2-lsp/README.md +172 -0
- package/lsp/node_modules/sysml-v2-lsp/dist/server/mcpServer.js +167 -0
- package/lsp/node_modules/sysml-v2-lsp/dist/server/server.js +142 -0
- package/lsp/node_modules/sysml-v2-lsp/index.cjs +23 -0
- package/lsp/node_modules/sysml-v2-lsp/package.json +131 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/.project +17 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/.settings/org.eclipse.jdt.core.prefs +11 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/.meta.json +10 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/.project.json +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/AnalysisTooling.sysml +34 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/SampledFunctions.sysml +119 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/StateSpaceRepresentation.sysml +143 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/TradeStudies.sysml +171 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/.meta.json +8 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/.project.json +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/CausationConnections.sysml +83 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/CauseAndEffect.sysml +81 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/.meta.json +8 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/.project.json +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/ShapeItems.sysml +899 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/SpatialItems.sysml +168 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/.meta.json +10 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/.project.json +19 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/ImageMetadata.sysml +78 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/ModelingMetadata.sysml +143 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/ParametersOfInterestMetadata.sysml +39 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/RiskMetadata.sysml +100 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/.meta.json +29 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/.project.json +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQ.sysml +42 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQAcoustics.sysml +439 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQAtomicNuclear.sysml +2726 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQBase.sysml +206 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQCharacteristicNumbers.sysml +1991 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQChemistryMolecular.sysml +1353 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQCondensedMatter.sysml +1223 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQElectromagnetism.sysml +2333 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQInformation.sysml +958 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQLight.sysml +1537 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQMechanics.sysml +1564 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQSpaceTime.sysml +1169 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQThermodynamics.sysml +1256 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/MeasurementRefCalculations.sysml +30 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/MeasurementReferences.sysml +526 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/Quantities.sysml +107 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/QuantityCalculations.sysml +70 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/SI.sysml +378 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/SIPrefixes.sysml +48 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/TensorCalculations.sysml +50 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/Time.sysml +274 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/USCustomaryUnits.sysml +260 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/VectorCalculations.sysml +62 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/.meta.json +8 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/.project.json +19 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/DerivationConnections.sysml +63 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/RequirementDerivation.sysml +39 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/.meta.json +9 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/.project.json +11 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/Collections.kerml +147 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/ScalarValues.kerml +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/VectorValues.kerml +64 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/.meta.json +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/.project.json +15 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/BaseFunctions.kerml +80 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/BooleanFunctions.kerml +22 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/CollectionFunctions.kerml +68 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/ComplexFunctions.kerml +47 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/ControlFunctions.kerml +117 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/DataFunctions.kerml +43 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/IntegerFunctions.kerml +43 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/NaturalFunctions.kerml +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/NumericalFunctions.kerml +43 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/OccurrenceFunctions.kerml +154 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/RationalFunctions.kerml +49 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/RealFunctions.kerml +56 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/ScalarFunctions.kerml +33 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/SequenceFunctions.kerml +111 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/StringFunctions.kerml +25 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/TrigFunctions.kerml +35 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/VectorFunctions.kerml +273 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/.meta.json +22 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/.project.json +15 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Base.kerml +95 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Clocks.kerml +156 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/ControlPerformances.kerml +135 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/FeatureReferencingPerformances.kerml +190 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/KerML.kerml +483 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Links.kerml +67 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Metaobjects.kerml +58 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Objects.kerml +212 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Observation.kerml +161 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Occurrences.kerml +992 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Performances.kerml +293 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/SpatialFrames.kerml +197 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/StatePerformances.kerml +145 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Transfers.kerml +281 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/TransitionPerformances.kerml +66 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Triggers.kerml +188 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/.meta.json +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/.project.json +19 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Actions.sysml +552 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Allocations.sysml +29 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/AnalysisCases.sysml +38 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Attributes.sysml +25 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Calculations.sysml +37 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Cases.sysml +71 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Connections.sysml +60 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Constraints.sysml +44 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Flows.sysml +126 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Interfaces.sysml +89 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Items.sysml +153 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Metadata.sysml +32 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Parts.sysml +81 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Ports.sysml +54 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Requirements.sysml +194 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/StandardViewDefinitions.sysml +123 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/States.sysml +103 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/SysML.sysml +539 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/UseCases.sysml +57 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/VerificationCases.sysml +103 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Views.sysml +164 -0
- package/lsp/package-lock.json +30 -0
- package/lsp/package.json +15 -0
- package/lsp/test-server.mjs +120 -0
- package/package.json +61 -0
- package/scripts/access-sysml-mcp.mjs +45 -0
- package/scripts/check-sysml-v2-lsp-version.mjs +39 -0
- package/scripts/clean.mjs +14 -0
- package/scripts/compare-mcp-vs-lsp-symbols.mjs +76 -0
- package/scripts/debug-index.mjs +23 -0
- package/scripts/debug-lsp-symbols.mjs +62 -0
- package/scripts/deploy-skills.mjs +43 -0
- package/scripts/example-sysml-mcp.mjs +27 -0
- package/scripts/export-graph.mjs +80 -0
- package/scripts/generate-map.mjs +110 -0
- package/scripts/index-and-map.mjs +43 -0
- package/scripts/index-and-query.mjs +39 -0
- package/scripts/query-one.mjs +34 -0
- package/scripts/setup-lsp.mjs +36 -0
- package/scripts/test-lsp.mjs +55 -0
- package/scripts/test-mcp-debug.mjs +32 -0
- package/scripts/test-mcp-sysml.mjs +75 -0
- package/scripts/test-mcp-tools.mjs +185 -0
- package/scripts/test-sysml-mcp-from-node_modules.mjs +56 -0
- package/scripts/validate-sysml-file.mjs +69 -0
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
standard library package Actions {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the base types for actions and related behavioral elements in the
|
|
5
|
+
* SysML language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import Base::Anything;
|
|
9
|
+
private import ScalarValues::Positive;
|
|
10
|
+
private import ScalarValues::Natural;
|
|
11
|
+
private import SequenceFunctions::size;
|
|
12
|
+
private import SequenceFunctions::isEmpty;
|
|
13
|
+
private import Occurrences::Occurrence;
|
|
14
|
+
private import Occurrences::HappensWhile;
|
|
15
|
+
private import Performances::Performance;
|
|
16
|
+
private import Performances::performances;
|
|
17
|
+
private import Transfers::SendPerformance;
|
|
18
|
+
private import Transfers::sendPerformances;
|
|
19
|
+
private import Transfers::AcceptPerformance;
|
|
20
|
+
private import Transfers::acceptPerformances;
|
|
21
|
+
private import FeatureReferencingPerformances::FeatureWritePerformance;
|
|
22
|
+
private import ControlPerformances::MergePerformance;
|
|
23
|
+
private import ControlPerformances::DecisionPerformance;
|
|
24
|
+
private import ControlPerformances::IfThenPerformance;
|
|
25
|
+
private import ControlPerformances::IfThenElsePerformance;
|
|
26
|
+
private import ControlPerformances::LoopPerformance;
|
|
27
|
+
private import TransitionPerformances::TransitionPerformance;
|
|
28
|
+
private import TransitionPerformances::NonStateTransitionPerformance;
|
|
29
|
+
private import Transfers::MessageTransfer;
|
|
30
|
+
private import Flows::MessageAction;
|
|
31
|
+
private import OccurrenceFunctions::destroy;
|
|
32
|
+
|
|
33
|
+
abstract action def Action :> Performance {
|
|
34
|
+
doc
|
|
35
|
+
/*
|
|
36
|
+
* Action is the most general class of Performances of ActionDefinitions in a system or
|
|
37
|
+
* part of a system. Action is the base class of all ActionDefinitions.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
ref action self: Action :>> Performance::self;
|
|
41
|
+
ref action incomingTransfers :>> Performance::incomingTransfers;
|
|
42
|
+
|
|
43
|
+
action start: Action :>> startShot {
|
|
44
|
+
doc
|
|
45
|
+
/*
|
|
46
|
+
* The starting snapshot of an Action.
|
|
47
|
+
*/
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
action done: Action :>> endShot {
|
|
51
|
+
doc
|
|
52
|
+
/*
|
|
53
|
+
* The ending snapshot of an Action.
|
|
54
|
+
*/
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
action subactions: Action[0..*] :> actions, subperformances {
|
|
58
|
+
doc
|
|
59
|
+
/*
|
|
60
|
+
* The subperformances of this Action that are Actions.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
ref occurrence :>> Action::this, actions::this, subperformances::this = (that as Action).this {
|
|
64
|
+
doc
|
|
65
|
+
/*
|
|
66
|
+
* The "this" reference of a subaction is always the same as that of
|
|
67
|
+
* its owning Action.
|
|
68
|
+
*/
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
action sendSubactions: SendAction[0..*] :> subactions, sendActions {
|
|
73
|
+
doc
|
|
74
|
+
/*
|
|
75
|
+
* The subactions of this Action that are SendActions.
|
|
76
|
+
*/
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
action acceptSubactions: AcceptAction[0..*] :> subactions, acceptActions {
|
|
80
|
+
doc
|
|
81
|
+
/*
|
|
82
|
+
* The subactions of this Action that are AcceptActions.
|
|
83
|
+
*/
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
abstract action terminateSubactions : TerminateAction[0..*] :> subactions, terminateActions {
|
|
87
|
+
doc
|
|
88
|
+
/*
|
|
89
|
+
* The subactions of this Action that are TerminateActions.
|
|
90
|
+
*/
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
abstract action controls : ControlAction[0..*] :> subactions {
|
|
94
|
+
doc
|
|
95
|
+
/*
|
|
96
|
+
* The subactions of this Action that are ControlActions.
|
|
97
|
+
*/
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
abstract action merges : MergeAction[0..*] :> controls {
|
|
101
|
+
doc
|
|
102
|
+
/*
|
|
103
|
+
* The controls of this Action that are MergeActions.
|
|
104
|
+
*/
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
abstract action decisions : DecisionAction :> controls {
|
|
108
|
+
doc
|
|
109
|
+
/*
|
|
110
|
+
* The controls of this Action that are DecisionActions.
|
|
111
|
+
*/
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
abstract action joins : JoinAction :> controls {
|
|
115
|
+
doc
|
|
116
|
+
/*
|
|
117
|
+
* The controls of this Action that are JoinActions.
|
|
118
|
+
*/
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
abstract action forks : ForkAction :> controls {
|
|
122
|
+
doc
|
|
123
|
+
/*
|
|
124
|
+
* The controls of this Action that are ForkActions.
|
|
125
|
+
*/
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
abstract action transitions : TransitionAction[0..*] :> subactions, transitionActions {
|
|
129
|
+
doc
|
|
130
|
+
/*
|
|
131
|
+
* The subactions of this Action that are TransitionActions.
|
|
132
|
+
*/
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
abstract action decisionTransitions : DecisionTransitionAction[0..*] :> transitions {
|
|
136
|
+
doc
|
|
137
|
+
/*
|
|
138
|
+
* The subactions of this Action that are DecisionTransitionActions.
|
|
139
|
+
*/
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
abstract action assignments : AssignmentAction[0..*] :> subactions, assignmentActions {
|
|
143
|
+
doc
|
|
144
|
+
/*
|
|
145
|
+
* The subactions of this Action that are AssignmentActions.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
in target;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
abstract action ifSubactions : IfThenAction[0..*] :> subactions, ifThenActions {
|
|
152
|
+
doc
|
|
153
|
+
/*
|
|
154
|
+
* The subactions of this Action that are IfThenActions (including IfThenElseActions).
|
|
155
|
+
*/
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
abstract action loops : LoopAction[0..*] :> subactions, loopActions {
|
|
159
|
+
doc
|
|
160
|
+
/*
|
|
161
|
+
* The subactions of this Action that are LoopActions.
|
|
162
|
+
*/
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
abstract action whileLoops : WhileLoopAction[0..*] :> loops, whileLoopActions {
|
|
166
|
+
doc
|
|
167
|
+
/*
|
|
168
|
+
* The loops of this Action that are WhileLoopActions.
|
|
169
|
+
*/
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
abstract action forLoops : ForLoopAction[0..*] :> loops, forLoopActions {
|
|
173
|
+
doc
|
|
174
|
+
/*
|
|
175
|
+
* The loops of this Action that are ForLoopActions.
|
|
176
|
+
*/
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
abstract action actions: Action[0..*] nonunique :> performances {
|
|
181
|
+
doc
|
|
182
|
+
/*
|
|
183
|
+
* actions is the base feature for all ActionUsages.
|
|
184
|
+
*/
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
action def SendAction :> Action, SendPerformance {
|
|
188
|
+
doc
|
|
189
|
+
/*
|
|
190
|
+
* A SendAction is an Action used to type SendActionUsages. It initiates an outgoingTransferFromSelf
|
|
191
|
+
* from a designated sender Occurrence with a given payload, optionally to a designated receiver.
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
in :>> payload [0..*];
|
|
195
|
+
ref sentMessage :>> sentTransfer: MessageTransfer, MessageAction {
|
|
196
|
+
in :>> MessageTransfer::payload, MessageAction::payload;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
abstract action sendActions: SendAction[0..*] nonunique :> actions, sendPerformances {
|
|
201
|
+
doc
|
|
202
|
+
/*
|
|
203
|
+
* sendActions is the base feature for all SendActionUsages.
|
|
204
|
+
*/
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
action def AcceptMessageAction :> Action, AcceptPerformance {
|
|
208
|
+
doc
|
|
209
|
+
/*
|
|
210
|
+
* An AcceptMessageAction is an Action that identifies an incomingTransferToSelf
|
|
211
|
+
* of a designated receiver Occurrence, providing its payload as output.
|
|
212
|
+
*/
|
|
213
|
+
inout :>> payload;
|
|
214
|
+
ref acceptedMessage :>> acceptedTransfer: MessageTransfer, MessageAction {
|
|
215
|
+
in :>> MessageTransfer::payload, MessageAction::payload;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
action def AcceptAction :> AcceptMessageAction {
|
|
220
|
+
doc
|
|
221
|
+
/*
|
|
222
|
+
* An AcceptAction is an AcceptMessageAction used to type AcceptActionUsages that are
|
|
223
|
+
* not accepters for TransitionActions. It waits for a payload or message of the specified
|
|
224
|
+
* kind to be accepted by a nested state transition.
|
|
225
|
+
*/
|
|
226
|
+
ref :>> acceptedMessage = aState.aTransition.accepter.acceptedMessage;
|
|
227
|
+
state aState {
|
|
228
|
+
transition aTransition first start accept apayload: Anything via receiver then done;
|
|
229
|
+
}
|
|
230
|
+
bind payload = aState.aTransition.apayload;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
abstract action acceptActions: AcceptAction[0..*] nonunique :> actions, acceptPerformances {
|
|
234
|
+
doc
|
|
235
|
+
/*
|
|
236
|
+
* acceptActions is the base feature for standalone AcceptActionUsages.
|
|
237
|
+
*/
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
abstract action def TerminateAction :> Action {
|
|
241
|
+
doc
|
|
242
|
+
/*
|
|
243
|
+
* A TerminateAction is an Action that terminates a given Occurrence, meaning
|
|
244
|
+
* that the Occurrence ends during the performance of this Action. TerminateAction
|
|
245
|
+
* is the base type for all TerminateActionUsages.
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
in occurrence terminatedOccurrence[1] {
|
|
249
|
+
doc
|
|
250
|
+
/*
|
|
251
|
+
* The Occurrence to be terminated.
|
|
252
|
+
*/
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
action terminateOccurrence : destroy[1] {
|
|
256
|
+
in occ = terminatedOccurrence;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
abstract action terminateActions : TerminateAction[0..*] nonunique :> actions {
|
|
261
|
+
doc
|
|
262
|
+
/*
|
|
263
|
+
* terminateActions is the base feature for all TerminateActionUsages.
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
in occurrence terminatedOccurrence default that as Occurrence {
|
|
267
|
+
doc
|
|
268
|
+
/*
|
|
269
|
+
* The default terminatedOccurrence for a terminateAction is its
|
|
270
|
+
* featuring occurrence (which will generally be a containing Action).
|
|
271
|
+
*/
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
abstract action def ControlAction :> Action {
|
|
276
|
+
doc
|
|
277
|
+
/*
|
|
278
|
+
* A ControlAction is the Action of a control node, which has no inherent behavior.
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
bind start = done {
|
|
282
|
+
doc
|
|
283
|
+
/*
|
|
284
|
+
* A ControlAction is instantaneous.
|
|
285
|
+
*/
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
action def MergeAction :> ControlAction, MergePerformance {
|
|
290
|
+
doc
|
|
291
|
+
/*
|
|
292
|
+
* A MergeAction is the ControlAction for a merge node.
|
|
293
|
+
*
|
|
294
|
+
* Note: Incoming succession connectors to a MergeAction must have source multiplicity
|
|
295
|
+
* 0..1 and subset the incomingHBLink feature inherited from MergePerformance.
|
|
296
|
+
*/
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
action def DecisionAction :> ControlAction, DecisionPerformance {
|
|
300
|
+
doc
|
|
301
|
+
/*
|
|
302
|
+
* A DecisionAction is the ControlAction for a decision node.
|
|
303
|
+
*
|
|
304
|
+
* Note: Outgoing succession connectors from a DecisionAction must have target multiplicity
|
|
305
|
+
* 0..1 and subset the outgoingHBLink feature inherited from DecisionPerformance.
|
|
306
|
+
* If an outgoing succession has a guard, it should have a transitionStep typed by
|
|
307
|
+
* DecisionTransition.
|
|
308
|
+
*/
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
action def JoinAction :> ControlAction {
|
|
312
|
+
doc
|
|
313
|
+
/*
|
|
314
|
+
* A JoinAction is the ControlAction for a JoinNode.
|
|
315
|
+
*
|
|
316
|
+
* Note: Join behavior results from requiring that the source multiplicity of all
|
|
317
|
+
* incoming succession connectors be 1..1.
|
|
318
|
+
*/
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
action def ForkAction :> ControlAction {
|
|
322
|
+
doc
|
|
323
|
+
/*
|
|
324
|
+
* A ForkAction is the ControlAction for a ForkNode.
|
|
325
|
+
*
|
|
326
|
+
* Note: Fork behavior results from requiring that the target multiplicity of all
|
|
327
|
+
* outgoing succession connectors be 1..1.
|
|
328
|
+
*/
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
abstract action def TransitionAction :> Action, TransitionPerformance {
|
|
332
|
+
doc
|
|
333
|
+
/*
|
|
334
|
+
* A TransitionAction is a TransitionPerformance with an Action as transitionLinkSource.
|
|
335
|
+
* It is the base type of all TransitionUsages.
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
in transitionLinkSource : Action :>> TransitionPerformance::transitionLinkSource;
|
|
339
|
+
ref acceptedMessage : MessageTransfer, MessageAction :>> trigger {
|
|
340
|
+
in :>> MessageTransfer::payload, MessageAction::payload;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
ref receiver :>> triggerTarget;
|
|
344
|
+
|
|
345
|
+
action accepter : AcceptMessageAction :>> 'accept';
|
|
346
|
+
|
|
347
|
+
bind receiver = accepter.receiver;
|
|
348
|
+
bind acceptedMessage = accepter.acceptedMessage;
|
|
349
|
+
|
|
350
|
+
action effect: Action :>> TransitionPerformance::effect;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
action def DecisionTransitionAction :> TransitionAction, NonStateTransitionPerformance {
|
|
354
|
+
doc
|
|
355
|
+
/*
|
|
356
|
+
* A DecisionTransitionAction is a TransitionAction and NonStateTransitionPerformance that has a
|
|
357
|
+
* guard, but no trigger or effects. It is the base type of TransitionUsages used as
|
|
358
|
+
* conditional successions in action models.
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
ref action :>> accepter[0..0];
|
|
362
|
+
ref action :>> effect[0..0];
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
abstract action transitionActions: TransitionAction[0..*] nonunique :> actions {
|
|
366
|
+
doc
|
|
367
|
+
/*
|
|
368
|
+
* transitionActions is the base feature for all TransitionUsages.
|
|
369
|
+
*/
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
action def AssignmentAction :> FeatureWritePerformance, Action {
|
|
373
|
+
doc
|
|
374
|
+
/*
|
|
375
|
+
* An AssignmentAction is an Action, used to type an AssignmentActionUsage. It is also a
|
|
376
|
+
* FeatureWritePerformance that updates the accessedFeature of its target Occurrence with
|
|
377
|
+
* the given replacementValues.
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
in target : Occurrence[1];
|
|
381
|
+
inout replacementValues : Anything[0..*] nonunique;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
abstract action assignmentActions : AssignmentAction[0..*] nonunique :> actions {
|
|
385
|
+
doc
|
|
386
|
+
/*
|
|
387
|
+
* assignmentActions is the base feature for all AssignmentActionsUsages.
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
in target : Occurrence[1] default that as Occurrence {
|
|
391
|
+
doc
|
|
392
|
+
/*
|
|
393
|
+
* The default target for assignmentActions is its featuring instance (if that is
|
|
394
|
+
* an Occurrence).
|
|
395
|
+
*/
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
action def IfThenAction :> Action, IfThenPerformance {
|
|
400
|
+
doc
|
|
401
|
+
/*
|
|
402
|
+
* An IfThenAction is a Kernel IfThenPerformance that is also an Action.
|
|
403
|
+
* It is the base type for all IfActionUsages.
|
|
404
|
+
*/
|
|
405
|
+
|
|
406
|
+
in ifTest[1];
|
|
407
|
+
in action thenClause[0..1];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
action def IfThenElseAction :> IfThenAction, IfThenElsePerformance {
|
|
411
|
+
doc
|
|
412
|
+
/*
|
|
413
|
+
* An IfThenElseAction is a Kernel IfThenElsePeformance that is also an IfThenAction.
|
|
414
|
+
* It is the base type for all IfActionUsages that have an elseAction.
|
|
415
|
+
*/
|
|
416
|
+
|
|
417
|
+
in ifTest[1];
|
|
418
|
+
in action thenClause[0..1];
|
|
419
|
+
in action elseClause[0..1];
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
abstract action ifThenActions : IfThenAction[0..*] nonunique :> actions {
|
|
423
|
+
doc
|
|
424
|
+
/*
|
|
425
|
+
* ifThenActions is the base feature for all IfActionUsages.
|
|
426
|
+
*/
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
abstract action ifThenElseActions : IfThenElseAction[0..*] nonunique :> actions {
|
|
430
|
+
doc
|
|
431
|
+
/*
|
|
432
|
+
* ifThenElseActions is the base feature for all IfActionUsages that have an elseAction.
|
|
433
|
+
*/
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
abstract action def LoopAction :> Action {
|
|
437
|
+
doc
|
|
438
|
+
/*
|
|
439
|
+
* A LoopAction is the base type for all LoopActionUsages.
|
|
440
|
+
*/
|
|
441
|
+
|
|
442
|
+
in ref iterator;
|
|
443
|
+
|
|
444
|
+
in action body[0..*] {
|
|
445
|
+
doc
|
|
446
|
+
/*
|
|
447
|
+
* The action that is performed repeatedly in the loop.
|
|
448
|
+
*/
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
action def WhileLoopAction :> LoopAction, LoopPerformance {
|
|
453
|
+
doc
|
|
454
|
+
/*
|
|
455
|
+
* A WhileLoopAction is a Kernel LoopPerformance that is also a LoopAction.
|
|
456
|
+
* It is the base type for all WhileLoopActionUsages.
|
|
457
|
+
*/
|
|
458
|
+
|
|
459
|
+
in whileTest default {true} {
|
|
460
|
+
doc
|
|
461
|
+
/*
|
|
462
|
+
* A Boolean expression that must be true for the loop to continue.
|
|
463
|
+
* It is evaluated before the body is performed and is always evaluated at
|
|
464
|
+
* least once.
|
|
465
|
+
*/
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
in action body {
|
|
469
|
+
doc
|
|
470
|
+
/*
|
|
471
|
+
* The action that is performed while the whileTest is true and the
|
|
472
|
+
* untilTest is false.
|
|
473
|
+
*/
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
in untilTest default {false} {
|
|
477
|
+
doc
|
|
478
|
+
/*
|
|
479
|
+
* A Boolean expression that must be false for the loop to continue.
|
|
480
|
+
* It is evaluated after the body is performed.
|
|
481
|
+
*/
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
action def ForLoopAction :> LoopAction {
|
|
486
|
+
doc
|
|
487
|
+
/*
|
|
488
|
+
* A ForLoopAction is a LoopAction that iterates over an ordered sequence of values.
|
|
489
|
+
* It is the base type for all ForLoopActionUsages.
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
protected ref var[0..1] :> seq {
|
|
493
|
+
doc
|
|
494
|
+
/*
|
|
495
|
+
* The loop variable that is assigned successive elements of seq on each
|
|
496
|
+
* iteration of the loop.
|
|
497
|
+
*/
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
in ref seq {
|
|
501
|
+
doc
|
|
502
|
+
/*
|
|
503
|
+
* The sequence of values over which the loop iterates.
|
|
504
|
+
*/
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
in action body {
|
|
508
|
+
doc
|
|
509
|
+
/*
|
|
510
|
+
* The action that is performed on each iteration of the loop.
|
|
511
|
+
*/
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
private attribute index : Positive {
|
|
515
|
+
doc
|
|
516
|
+
/*
|
|
517
|
+
* The index of the element of seq assigned to var on the current iteration
|
|
518
|
+
* of the loop.
|
|
519
|
+
*/
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
private action initialization
|
|
523
|
+
assign index := 1;
|
|
524
|
+
then private action whileLoop
|
|
525
|
+
while index <= size(seq) {
|
|
526
|
+
assign var := seq#(index);
|
|
527
|
+
then perform body;
|
|
528
|
+
then assign index := index + 1;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
abstract action loopActions : LoopAction[0..*] nonunique :> actions {
|
|
533
|
+
doc
|
|
534
|
+
/*
|
|
535
|
+
* loopActions is the base feature for all LoopActionUsages.
|
|
536
|
+
*/
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
abstract action whileLoopActions : WhileLoopAction[0..*] nonunique :> loopActions {
|
|
540
|
+
doc
|
|
541
|
+
/*
|
|
542
|
+
* whileLoopActions is the base feature for all WhileLoopActionUsages.
|
|
543
|
+
*/
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
abstract action forLoopActions : ForLoopAction[0..*] nonunique :> loopActions {
|
|
547
|
+
doc
|
|
548
|
+
/*
|
|
549
|
+
* forLoopActions is the base feature for all ForLoopActionUsages.
|
|
550
|
+
*/
|
|
551
|
+
}
|
|
552
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
standard library package Allocations {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the base types for allocations and related structural elements
|
|
5
|
+
* in the SysML language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import Base::Anything;
|
|
9
|
+
private import Connections::*;
|
|
10
|
+
|
|
11
|
+
allocation def Allocation :> BinaryConnection {
|
|
12
|
+
doc
|
|
13
|
+
/*
|
|
14
|
+
* Allocation is the most general class of allocation, represented as a connection
|
|
15
|
+
* between the source of the allocation and the target. Allocation is the base type
|
|
16
|
+
* of all AllocationDefinitions.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
end source: Anything :>> BinaryConnection::source;
|
|
20
|
+
end target: Anything :>> BinaryConnection::target;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
abstract allocation allocations: Allocation[0..*] nonunique :> binaryConnections {
|
|
24
|
+
doc
|
|
25
|
+
/*
|
|
26
|
+
* allocations is the base feature of all AllocationUsages.
|
|
27
|
+
*/
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
standard library package AnalysisCases {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the base types for analysis cases and related behavioral elements
|
|
5
|
+
* in the SysML language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import Performances::Evaluation;
|
|
9
|
+
private import Performances::evaluations;
|
|
10
|
+
private import Calculations::Calculation;
|
|
11
|
+
private import Cases::Case;
|
|
12
|
+
private import Cases::cases;
|
|
13
|
+
|
|
14
|
+
abstract analysis def AnalysisCase :> Case {
|
|
15
|
+
doc
|
|
16
|
+
/*
|
|
17
|
+
* AnalysisCase is the most general class of performances of AnalysisCaseDefinitions.
|
|
18
|
+
* AnalysisCase is the base class of all AnalysisCaseDefinitions.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
ref analysis self : AnalysisCase :>> Case::self;
|
|
22
|
+
subject subj :>> Case::subj;
|
|
23
|
+
|
|
24
|
+
abstract analysis subAnalysisCases : AnalysisCase[0..*] :> analysisCases, subcases {
|
|
25
|
+
doc
|
|
26
|
+
/*
|
|
27
|
+
* Other AnalysisCases carried out as part of the performance of this AnalysisCase.
|
|
28
|
+
*/
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
abstract analysis analysisCases : AnalysisCase[0..*] nonunique :> cases {
|
|
33
|
+
doc
|
|
34
|
+
/*
|
|
35
|
+
* analysisCases is the base feature of all AnalysisCaseUsages.
|
|
36
|
+
*/
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
standard library package Attributes {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the base types for attributes and related structural elements
|
|
5
|
+
* in the SysML language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import Base::DataValue;
|
|
9
|
+
private import Base::dataValues;
|
|
10
|
+
|
|
11
|
+
alias AttributeValue for DataValue {
|
|
12
|
+
doc
|
|
13
|
+
/*
|
|
14
|
+
* AttributeValue is the most general type of data values that represent qualities or characteristics
|
|
15
|
+
* of a system or part of a system. AttributeValue is the base type of all AttributeDefinitions.
|
|
16
|
+
*/
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
alias attributeValues for dataValues {
|
|
20
|
+
doc
|
|
21
|
+
/*
|
|
22
|
+
* attributeValues is the base feature for all AttributeUsages.
|
|
23
|
+
*/
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
standard library package Calculations {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the base types for calculations and related behavioral elements in the
|
|
5
|
+
* SysML language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import Performances::Evaluation;
|
|
9
|
+
private import Performances::evaluations;
|
|
10
|
+
private import Actions::Action;
|
|
11
|
+
private import Actions::actions;
|
|
12
|
+
|
|
13
|
+
abstract calc def Calculation :> Action, Evaluation {
|
|
14
|
+
doc
|
|
15
|
+
/*
|
|
16
|
+
* Calculation is the most general class of evaluations of CalculationDefinitions in a
|
|
17
|
+
* system or part of a system. Calculation is the base class of all CalculationDefinitions.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
ref calc self: Calculation :>> Action::self, Evaluation::self;
|
|
21
|
+
|
|
22
|
+
abstract calc subcalculations: Calculation :> calculations, subactions {
|
|
23
|
+
doc
|
|
24
|
+
/*
|
|
25
|
+
* The subactions of this Calculation that are Calculations.
|
|
26
|
+
*/
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
abstract calc calculations: Calculation[0..*] nonunique :> actions, evaluations {
|
|
32
|
+
doc
|
|
33
|
+
/*
|
|
34
|
+
* calculations is the base Feature for all CalculationUsages.
|
|
35
|
+
*/
|
|
36
|
+
}
|
|
37
|
+
}
|