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,281 @@
|
|
|
1
|
+
standard library package Transfers {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the transfer interactions used to type flows.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
private import Base::Anything;
|
|
8
|
+
private import Occurrences::*;
|
|
9
|
+
private import Links::*;
|
|
10
|
+
private import Objects::BinaryLinkObject;
|
|
11
|
+
private import Performances::Performance;
|
|
12
|
+
private import Performances::performances;
|
|
13
|
+
private import ScalarValues::Boolean;
|
|
14
|
+
private import ScalarValues::Natural;
|
|
15
|
+
private import SequenceFunctions::*;
|
|
16
|
+
|
|
17
|
+
interaction Transfer specializes Performance, BinaryLink {
|
|
18
|
+
doc
|
|
19
|
+
/*
|
|
20
|
+
* A Transfer represents the transfer of a payload from the source of the interaction
|
|
21
|
+
* to the target of the interaction.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
end feature source: Occurrence redefines BinaryLink::source {
|
|
25
|
+
doc
|
|
26
|
+
/*
|
|
27
|
+
* The entity whose output is the source of the payload to be transferred.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
feature sourceOutput: Anything[0..*];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
end feature target: Occurrence redefines BinaryLink::target {
|
|
34
|
+
doc
|
|
35
|
+
/*
|
|
36
|
+
* The entity whose input is the target of the payload to be transferred.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
feature targetInput: Anything[0..*];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
feature isInstant: Boolean[1] {
|
|
43
|
+
doc
|
|
44
|
+
/*
|
|
45
|
+
* If isInstance is true, then the transfer is instantaneous.
|
|
46
|
+
*/
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
feature payload: Anything[1..*] {
|
|
50
|
+
doc
|
|
51
|
+
/*
|
|
52
|
+
* The things that are to be transferred.
|
|
53
|
+
*/
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
feature payloadNum: Natural [1] = size(payload);
|
|
57
|
+
|
|
58
|
+
private instantNum: Natural[1] = if isInstant? 1 else 0;
|
|
59
|
+
private binding instant[instantNum] of [0..1] startShot = [0..1] endShot {
|
|
60
|
+
doc
|
|
61
|
+
/*
|
|
62
|
+
* If isInstant is true, then the start and end of the transfer happen at the same time.
|
|
63
|
+
*/
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interaction MessageTransfer specializes Transfer {
|
|
68
|
+
doc
|
|
69
|
+
/*
|
|
70
|
+
* A MessageTransfer is a Transfer that does not specify where the payload is picked
|
|
71
|
+
* up and dropped off (see FlowTransfer). They are sent by SendPerformances and
|
|
72
|
+
* accepted by AcceptPerformances.
|
|
73
|
+
*/
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
interaction FlowTransfer specializes Transfer disjoint from MessageTransfer {
|
|
77
|
+
doc
|
|
78
|
+
/*
|
|
79
|
+
* A FlowTransfer is a Transfer identifying an output feature of the source from which
|
|
80
|
+
* to pick up a payload and an input feature of the target to which to drop it off. They can
|
|
81
|
+
* start when the payload is available at the source and move or copy it to the target.
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
feature isMove: Boolean[1] default true {
|
|
85
|
+
doc
|
|
86
|
+
/*
|
|
87
|
+
* If isMove is true, then the entire payload leaves the source at the start
|
|
88
|
+
* of the transfer.
|
|
89
|
+
*/
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
feature isPush: Boolean[1] default true {
|
|
93
|
+
doc
|
|
94
|
+
/*
|
|
95
|
+
* If isPush is true, then the transfer begins when the payload is available
|
|
96
|
+
* at the source.
|
|
97
|
+
*/
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
connector sourceOutputLink: BinaryLinkObject[payloadNum] {
|
|
101
|
+
doc
|
|
102
|
+
/*
|
|
103
|
+
* The output of the payloads from the sourceOutput.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
end [1] feature transferSource references source;
|
|
107
|
+
end [payloadNum] feature transferPayload references payload subsets transferSource.sourceOutput;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
connector targetInputLink: BinaryLinkObject[payloadNum] {
|
|
111
|
+
doc
|
|
112
|
+
/*
|
|
113
|
+
* The input of the payload to the targetInput.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
end [1] feature transferTarget references target;
|
|
117
|
+
end [payloadNum] feature transferPayload references payload subsets transferTarget.targetInput;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private connector sending: HappensDuring[payloadNum] from [1] startShot to [payloadNum] sourceOutputLink {
|
|
121
|
+
doc
|
|
122
|
+
/*
|
|
123
|
+
* The start of the transfer happens during the output of each of the payloads from the
|
|
124
|
+
* source.
|
|
125
|
+
*/
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
private connector moving: HappensWhile[0..*] from [0..*] sourceOutputLink.endShot to [0..1] startShot {
|
|
129
|
+
doc
|
|
130
|
+
/*
|
|
131
|
+
* If isMove is true, then all payloads leave the source at the start
|
|
132
|
+
* of the transfer.
|
|
133
|
+
*/
|
|
134
|
+
}
|
|
135
|
+
private inv { isMove implies size(moving) == size(sourceOutputLink) }
|
|
136
|
+
|
|
137
|
+
private connector pushing: HappensWhile[0..*] from [0..*] sourceOutputLink.startShot to [0..1] startShot {
|
|
138
|
+
doc
|
|
139
|
+
/*
|
|
140
|
+
* If isPush is true, then the transfer begins when the payloads are available
|
|
141
|
+
* at the source.
|
|
142
|
+
*/
|
|
143
|
+
}
|
|
144
|
+
private inv { isPush implies size(pushing) == size(sourceOutputLink) }
|
|
145
|
+
|
|
146
|
+
private connector delivering: HappensWhile[payloadNum] from [payloadNum] targetInputLink.startShot to [1] endShot {
|
|
147
|
+
doc
|
|
148
|
+
/*
|
|
149
|
+
* The input of each of the payloads to the target starts at the end of the transfer.
|
|
150
|
+
*/
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interaction TransferBefore specializes Transfer, HappensBefore intersects Transfer, HappensBefore {
|
|
155
|
+
doc
|
|
156
|
+
/*
|
|
157
|
+
* TransferBefore is a specialization of Transfer in which the source happens before
|
|
158
|
+
* the transfer, which happens before the target.
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
end feature source: Occurrence redefines Transfer::source, HappensBefore::earlierOccurrence;
|
|
162
|
+
end feature target: Occurrence redefines Transfer::target, HappensBefore::laterOccurrence;
|
|
163
|
+
|
|
164
|
+
feature self: TransferBefore redefines Performance::self;
|
|
165
|
+
|
|
166
|
+
private succession source then self;
|
|
167
|
+
private succession self then target;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
interaction FlowTransferBefore specializes TransferBefore, FlowTransfer intersects FlowTransfer, TransferBefore {
|
|
171
|
+
doc
|
|
172
|
+
/*
|
|
173
|
+
* FlowTransferBefore is a FlowTransfer that is also a TransferBefore.
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
end feature source: Occurrence redefines Transfer::source, TransferBefore::source;
|
|
177
|
+
end feature target: Occurrence redefines Transfer::target, TransferBefore::target;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
abstract step transfers: Transfer[0..*] nonunique subsets performances, binaryLinks {
|
|
181
|
+
doc
|
|
182
|
+
/*
|
|
183
|
+
* transfers is a specialization of performances and binaryLinks restricted to type
|
|
184
|
+
* Transfer.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
end feature source: Occurrence redefines Transfer::source, binaryLinks::source;
|
|
188
|
+
end feature target: Occurrence redefines Transfer::target, binaryLinks::target;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
abstract step messageTransfers: MessageTransfer[0..*] nonunique subsets transfers {
|
|
192
|
+
doc
|
|
193
|
+
/*
|
|
194
|
+
* messageTransfers is a specialization of transfers restricted to type MessageTransfers.
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
end feature source: Occurrence redefines MessageTransfer::source, transfers::source;
|
|
198
|
+
end feature target: Occurrence redefines MessageTransfer::target, transfers::target;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
abstract flow flowTransfers: FlowTransfer[0..*] nonunique subsets transfers {
|
|
202
|
+
doc
|
|
203
|
+
/*
|
|
204
|
+
* flowTransfers is a specialization of transfers restricted to type FlowTransfers.
|
|
205
|
+
* It is the default subsetting for non-succession flows.
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
end feature source: Occurrence redefines FlowTransfer::source, transfers::source;
|
|
209
|
+
end feature target: Occurrence redefines FlowTransfer::target, transfers::target;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
abstract flow transfersBefore: TransferBefore[0..*] nonunique subsets transfers, happensBeforeLinks
|
|
213
|
+
intersects transfers, happensBeforeLinks {
|
|
214
|
+
doc
|
|
215
|
+
/*
|
|
216
|
+
* transfersBefore is a specialization of transfers and happensBeforeLinks restricted to
|
|
217
|
+
* type TransferBefore.
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
end feature source: Occurrence redefines TransferBefore::source, transfers::source, happensBeforeLinks::earlierOccurrence;
|
|
221
|
+
end feature target: Occurrence redefines TransferBefore::target, transfers::target, happensBeforeLinks::laterOccurrence;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
abstract flow flowTransfersBefore: FlowTransferBefore[0..*] nonunique subsets flowTransfers, transfersBefore
|
|
225
|
+
intersects flowTransfers, transfersBefore {
|
|
226
|
+
doc
|
|
227
|
+
/*
|
|
228
|
+
* flowTransfersBefore is a specialization of flowTransfers and transfersBefore that is restricted
|
|
229
|
+
* to type FlowTransferBefore. IT is the default subsetting for succession flows.
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
end feature source: Occurrence redefines FlowTransferBefore::source, flowTransfers::source, transfersBefore::source;
|
|
233
|
+
end feature target: Occurrence redefines FlowTransferBefore::target, flowTransfers::target, transfersBefore::target;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
behavior SendPerformance specializes Performance {
|
|
237
|
+
doc
|
|
238
|
+
/*
|
|
239
|
+
* SendPerformances are Performance that require an outgoingTransferFromSelf
|
|
240
|
+
* from a designated sender Occurrence carrying a given payload, optionally to a designated receiver.
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
in feature payload [0..*];
|
|
244
|
+
in feature sender: Occurrence[1] default this;
|
|
245
|
+
in feature receiver: Occurrence[0..1];
|
|
246
|
+
feature sentTransfer: MessageTransfer [1] subsets sender.outgoingTransfersFromSelf {
|
|
247
|
+
feature redefines payload = SendPerformance::payload;
|
|
248
|
+
}
|
|
249
|
+
binding [0..1] receiver.incomingTransfersToSelf = [1] sentTransfer;
|
|
250
|
+
|
|
251
|
+
succession self then sentTransfer;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
behavior AcceptPerformance specializes Performance {
|
|
255
|
+
doc
|
|
256
|
+
/*
|
|
257
|
+
* AcceptPerformance is a performance that requires an incomingTransferToSelf
|
|
258
|
+
* of a desigated receiver Occurrence, providing its payload as output.
|
|
259
|
+
*/
|
|
260
|
+
inout feature payload[0..*];
|
|
261
|
+
in feature receiver: Occurrence[1] default this;
|
|
262
|
+
feature acceptedTransfer: MessageTransfer[1] subsets receiver.incomingTransfersToSelf;
|
|
263
|
+
succession acceptedTransfer then self.endShot;
|
|
264
|
+
|
|
265
|
+
binding payload = acceptedTransfer.payload;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
abstract step sendPerformances: SendPerformance[0..*] nonunique subsets performances {
|
|
269
|
+
doc
|
|
270
|
+
/*
|
|
271
|
+
* sendPerformances is a specialization of performances for SendPerformances.
|
|
272
|
+
*/
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
abstract step acceptPerformances: AcceptPerformance[0..*] nonunique subsets performances {
|
|
276
|
+
doc
|
|
277
|
+
/*
|
|
278
|
+
* acceptPerformances is a specialization of performances for AcceptPerformances.
|
|
279
|
+
*/
|
|
280
|
+
}
|
|
281
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
standard library package TransitionPerformances {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package contains a library model of the semantics of conditional transitions between occurrences,
|
|
5
|
+
* including the performance of specified Behaviors when the transition occurs.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import ScalarValues::Boolean;
|
|
9
|
+
private import ScalarValues::Natural;
|
|
10
|
+
private import SequenceFunctions::isEmpty;
|
|
11
|
+
private import Occurrences::Occurrence;
|
|
12
|
+
private import Occurrences::HappensBefore;
|
|
13
|
+
private import Performances::Performance;
|
|
14
|
+
private import Performances::Evaluation;
|
|
15
|
+
private import Transfers::MessageTransfer;
|
|
16
|
+
private import Transfers::AcceptPerformance;
|
|
17
|
+
private import Transfers::acceptPerformances;
|
|
18
|
+
private import ControlFunctions::allTrue;
|
|
19
|
+
private import SequenceFunctions::size;
|
|
20
|
+
|
|
21
|
+
abstract behavior TransitionPerformance {
|
|
22
|
+
in feature transitionLinkSource: Performance[1];
|
|
23
|
+
|
|
24
|
+
feature trigger: MessageTransfer[*];
|
|
25
|
+
bool guard[*] subsets enclosedPerformances;
|
|
26
|
+
step effect[*] subsets enclosedPerformances;
|
|
27
|
+
|
|
28
|
+
feature triggerTarget : Occurrence [1] default this;
|
|
29
|
+
feature transitionLink: HappensBefore[0..1];
|
|
30
|
+
|
|
31
|
+
private binding [0..1] transitionLink.earlierOccurrence = [1] transitionLinkSource;
|
|
32
|
+
private succession [1] transitionLinkSource then [*] effect;
|
|
33
|
+
private succession [*] effect then [1] transitionLink.laterOccurrence;
|
|
34
|
+
|
|
35
|
+
private connector [0..1] transitionLink to [1..*] trigger;
|
|
36
|
+
private connector all guardConstraint: TPCGuardConstraint[*]
|
|
37
|
+
from [0..1] transitionLink to [*] guard;
|
|
38
|
+
|
|
39
|
+
private succession all [*] trigger then [*] guard;
|
|
40
|
+
private succession all [*] guard then [*] effect;
|
|
41
|
+
|
|
42
|
+
feature accNum: Natural [1] = if isEmpty(trigger) ? 0 else 1;
|
|
43
|
+
step accept: AcceptPerformance[accNum] subsets timeEnclosedOccurrences, acceptPerformances {
|
|
44
|
+
feature redefines acceptedTransfer = trigger;
|
|
45
|
+
}
|
|
46
|
+
binding accept.receiver = triggerTarget;
|
|
47
|
+
|
|
48
|
+
private succession [*] guard then [accNum] accept;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
behavior NonStateTransitionPerformance specializes TransitionPerformance {
|
|
52
|
+
feature isTriggerAfter: Boolean default true;
|
|
53
|
+
private succession [1] transitionLinkSource then [1] Performance::self;
|
|
54
|
+
private feature taNum: Natural [1] = if isTriggerAfter ? size(trigger) else 0;
|
|
55
|
+
private succession triggerAfter [taNum] first [0..1] transitionLinkSource then [*] trigger.endShot;
|
|
56
|
+
|
|
57
|
+
private succession all [*] guard then [0..1] transitionLink.laterOccurrence;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
assoc struct TPCGuardConstraint {
|
|
61
|
+
end guardedLink [0..1] feature constrainedHBLink: HappensBefore;
|
|
62
|
+
end bool constrainedGuard;
|
|
63
|
+
|
|
64
|
+
private inv { allTrue(constrainedGuard()) }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
standard library package Triggers {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package contains functions that return ChangeSignals for triggering
|
|
5
|
+
* when a Boolean condition changes from false to true, at a specific time
|
|
6
|
+
* or after a specific time delay.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
private import ScalarValues::Boolean;
|
|
10
|
+
private import ScalarValues::NumericalValue;
|
|
11
|
+
private import Occurrences::Occurrence;
|
|
12
|
+
|
|
13
|
+
public import Clocks::*;
|
|
14
|
+
public import Observation::*;
|
|
15
|
+
|
|
16
|
+
struct TimeSignal :> ChangeSignal {
|
|
17
|
+
doc
|
|
18
|
+
/*
|
|
19
|
+
* A TimeSignal is a ChangeSignal whose condition is the currentTime
|
|
20
|
+
* of a given Clock reaching a specific signalTime.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
feature signalTime : NumericalValue[1] {
|
|
24
|
+
doc
|
|
25
|
+
/*
|
|
26
|
+
* The time at which the TimeSignal should be sent.
|
|
27
|
+
*/
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
feature signalClock : Clock[1] {
|
|
31
|
+
doc
|
|
32
|
+
/*
|
|
33
|
+
* The Clock whose currentTime is being monitored.
|
|
34
|
+
*/
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
private bool :>> signalCondition {
|
|
38
|
+
doc
|
|
39
|
+
/*
|
|
40
|
+
* The Boolean condition of the currentTime of the signalClock being
|
|
41
|
+
* equal to the signalTime.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
signalClock.currentTime == signalTime
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function TriggerWhen {
|
|
49
|
+
doc
|
|
50
|
+
/*
|
|
51
|
+
* TriggerWhen returns a monitored ChangeSignal for a given condition,
|
|
52
|
+
* to be sent to a given receiver when the condition occurs.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
in bool condition[1] {
|
|
56
|
+
doc
|
|
57
|
+
/*
|
|
58
|
+
* The BooleanExpression to be monitored for changing from
|
|
59
|
+
* false to true.
|
|
60
|
+
*/
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
in feature receiver : Occurrence [1] {
|
|
64
|
+
doc
|
|
65
|
+
/*
|
|
66
|
+
* The Occurrence to which the ChangeSignal is to be sent.
|
|
67
|
+
*/
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
in feature monitor : ChangeMonitor[1] default defaultMonitor {
|
|
71
|
+
doc
|
|
72
|
+
/*
|
|
73
|
+
* The ChangeMonitor to be used to monitor the ChangeSignal condition.
|
|
74
|
+
* The default is the Observation::defaultMonitor.
|
|
75
|
+
*/
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return feature changeSignal : ChangeSignal[1] = new ChangeSignal(condition, monitor) {
|
|
79
|
+
doc
|
|
80
|
+
/*
|
|
81
|
+
* The ChangeSignal for the condition, as monitored by the monitor.
|
|
82
|
+
*/
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
step :> monitor.startObservation {
|
|
86
|
+
in observer = receiver;
|
|
87
|
+
in signal = changeSignal;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function TriggerAt {
|
|
92
|
+
doc
|
|
93
|
+
/*
|
|
94
|
+
* TriggerAt returns a monitored TimeSignal to be sent to a receiver when
|
|
95
|
+
* the currentTime of a given Clock reaches a specific timeInstant.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
in feature timeInstant : NumericalValue[1] {
|
|
99
|
+
doc
|
|
100
|
+
/*
|
|
101
|
+
* The time instant, relative to the clock, at which the TimeSignal should be sent.
|
|
102
|
+
*/
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
in feature receiver : Occurrence[1] {
|
|
106
|
+
doc
|
|
107
|
+
/*
|
|
108
|
+
* The Occurrence to which the TimeSignal is to be sent.
|
|
109
|
+
*/
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
in feature clock : Clock[1] default localClock {
|
|
113
|
+
doc
|
|
114
|
+
/*
|
|
115
|
+
* The Clock to be used as the reference for the timeInstant. The default is
|
|
116
|
+
* the localClock, which will be bound when the function is invoked.
|
|
117
|
+
*/
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
in feature monitor : ChangeMonitor[1] default defaultMonitor {
|
|
121
|
+
doc
|
|
122
|
+
/*
|
|
123
|
+
* The ChangeMonitor to be used to monitor the TimeSignal condition.
|
|
124
|
+
* The default is the Observation::defaultMonitor.
|
|
125
|
+
*/
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return feature timeSignal : TimeSignal[1] = new TimeSignal(timeInstant, clock, monitor) {
|
|
129
|
+
doc
|
|
130
|
+
/*
|
|
131
|
+
* The TimeSignal for the given timeInstant, as monitored by the monitor.
|
|
132
|
+
*/
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
step :> monitor.startObservation {
|
|
136
|
+
in observer = receiver;
|
|
137
|
+
in signal = timeSignal;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function TriggerAfter {
|
|
142
|
+
doc
|
|
143
|
+
/*
|
|
144
|
+
* TriggerAfter returns a monitored TimeSignal to be sent to a receiver after
|
|
145
|
+
* a certain time delay relative to a given Clock.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
in feature delay : NumericalValue[1] {
|
|
149
|
+
doc
|
|
150
|
+
/*
|
|
151
|
+
* The time duration, relative to the clock, after which the TimeSignal is sent.
|
|
152
|
+
*/
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
in feature receiver : Occurrence[1] {
|
|
156
|
+
doc
|
|
157
|
+
/*
|
|
158
|
+
* The Occurrence to which the TimeSignal is to be sent.
|
|
159
|
+
*/
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
in feature clock : Clock[1] default localClock {
|
|
163
|
+
doc
|
|
164
|
+
/*
|
|
165
|
+
* The Clock to be used as the reference for the time delay. The default is
|
|
166
|
+
* the localClock, which will be bound when the function is invoked.
|
|
167
|
+
*/
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
in feature monitor : ChangeMonitor[1] default defaultMonitor {
|
|
171
|
+
doc
|
|
172
|
+
/*
|
|
173
|
+
* The ChangeMonitor to be used to monitor the TimeSignal condition.
|
|
174
|
+
* The default is the Observation::defaultMonitor.
|
|
175
|
+
*/
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return signal : TimeSignal[1] =
|
|
179
|
+
TriggerAt(clock.currentTime + delay, receiver, clock, monitor) {
|
|
180
|
+
doc
|
|
181
|
+
/*
|
|
182
|
+
* The TimeSignal for the currentTime of the clock when the function is invoked
|
|
183
|
+
* plus the given time delay, as monitored by the monitor.
|
|
184
|
+
*/
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"index": {
|
|
3
|
+
"Actions": "Actions.sysml",
|
|
4
|
+
"Allocations": "Allocations.sysml",
|
|
5
|
+
"AnalysisCases": "AnalysisCases.sysml",
|
|
6
|
+
"Attributes": "Attributes.sysml",
|
|
7
|
+
"Calculations": "Calculations.sysml",
|
|
8
|
+
"Cases": "Cases.sysml",
|
|
9
|
+
"Connections": "Connections.sysml",
|
|
10
|
+
"Constraints": "Constraints.sysml",
|
|
11
|
+
"Flows": "Flows.sysml",
|
|
12
|
+
"Interfaces": "Interfaces.sysml",
|
|
13
|
+
"Items": "Items.sysml",
|
|
14
|
+
"Metadata": "Metadata.sysml",
|
|
15
|
+
"Parts": "Parts.sysml",
|
|
16
|
+
"Ports": "Ports.sysml",
|
|
17
|
+
"Requirements": "Requirements.sysml",
|
|
18
|
+
"StandardViewDefinitions": "StandardViewDefinitions.sysml",
|
|
19
|
+
"States": "States.sysml",
|
|
20
|
+
"SysML": "SysML.sysml",
|
|
21
|
+
"UseCases": "UseCases.sysml",
|
|
22
|
+
"VerificationCases": "VerificationCases.sysml",
|
|
23
|
+
"Views": "Views.sysml"
|
|
24
|
+
},
|
|
25
|
+
"created": "2025-03-13T00:00:00Z",
|
|
26
|
+
"metamodel": "https://www.omg.org/spec/SysML/20250201"
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SysML Systems Library",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Standard semantic library for the Systems Modeling Language (SysML)",
|
|
5
|
+
"usage": [
|
|
6
|
+
{
|
|
7
|
+
"resource": "https://www.omg.org/spec/KerML/20250201/Semantic-Library.kpar",
|
|
8
|
+
"versionConstraint": "1.0.0"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"resource": "https://www.omg.org/spec/KerML/20250201/Data-Type-Library.kpar",
|
|
12
|
+
"versionConstraint": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"resource": "https://www.omg.org/spec/KerML/20250201/Function-Library.kpar",
|
|
16
|
+
"versionConstraint": "1.0.0"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|