Releases: Systems-Modeling/SysML-v2-Pilot-Implementation
2023-10 - SysML v2 Pilot Implementation
This is an incremental update to the 2023-08 release. It corresponds to Eclipse plugin version 0.36.0. (There was no 2023-09 release.)
Language Features
-
New KerML validation constraints. Checks have been implemented for the following new constraints, applying to both KerML and SysML:
validateRedefinitionDirectionConformance– If theredefinedFeatureof aRedefinitionhasdirectioninorout, then theredefiningFeaturemust have the samedirection. If theredefinedFeaturehasdirectioninout, then theredefiningFeaturemust have a non-nulldirection.validateExpressionResultExpressionMembership– AnExpressionmust have at most oneResultExpressionMembership.validateFunctionResultExpressionMembership– AFunctionmust have at most oneResultExpressionMembership.validateFeatureValueOverriding– AllFeaturesdirectly or indirectly redefined by thefeatureWithValueof aFeatureValuemust have only defaultFeatureValues.
[PR #504]
-
New SysML validation constraints. Checks have been implemented for the following new constraints, applying only to SysML:
validateAssignmentActionUsageArguments– AnAssignmentActionUsagemust have two argumentExpressions.validateAssignmentActionUsageReferent– AnAssignmentActionUsagemust have anownedMembershipthat is not anOwningMembershipand whosememberElementis aFeature.validateForLoopActionUsageLoopVariable– The firstownedFeatureof aForLoopActionUsagemust be aReferenceUsage.validateForLoopActionUsageParameters– AForLoopActionUsagemust have two ownedinputparameters.validateIfActionUsageParameters– AnIfActionUsagemust have at least two ownedinputparameters.validateWhileLoopActionUsage– AWhileLoopActionUsagemust have at least two ownedinputparameters.validateTriggerInvocationExpressionAfterArgument– If aTriggerInvocationExpressionhaskind = after, then it must have an argumentExpressionwith aresultthat conforms to the typeISQ::DurationValue.validateTriggerInvocationExpressionAtArgument– If aTriggerInvocationExpressionhaskind = at, then it must have an argumentExpressionwith aresultthat conforms to the typeTime::TimeInstantValue.validateTriggerInvocationExpressionWhenArgument– If aTriggerInvocationExpressionhaskind = when, then it must have an argumentExpressionwith aresultthat conforms to the typeScalarValues::Boolean.validateAssertConstraintUsageReference– If anAssertConstraintUsagehas anownedReferenceSubsetting, then itsreferencedFeaturemust be a ConstraintUsage.validateSatisfyRequirementUsageReference– If aSatisfyRequirementUsagehas anownedReferenceSubsetting, then itsreferencedFeaturemust be aRequirementUsage.
[PR #506]
-
Feature values on connections. The textual notation now supports declaring connection usages and interface usages with feature values:
abstract connectionc1;
abstract connectionc2 = c1; // Previously did not parse.
connectionc3 = c1connecta to b; // Previously did not parse.[PR #505]
-
View renderings. The notation for a view rendering usage has been extended to allow the rendering to be defined locally within the containing view, rather than just allowing rendering by reference.
render renderingname : Def [m] ... ;The previous notation
renderr; then effectively becomes a shorthand forrender rendering referencesr;.[PR #505]
Model Libraries
Various library models have been updated to correct violations of new KerML validation constraints, as reported in the following KerML and SysML v2 FTF issues. Note, however, that the resolutions of these issues have not yet been approved by the FTFs and, therefore, are subject to change.
[PR #504]
KerML Issues
- KERML-182 Update Kernel Semantic Library for validateRedefinitionDirectionConformance
- KERML-184 Update Kernel Model Libraries for validateFeatureValueOverriding constraint
- KERML-186 Update semantic model of invariants for validateExpressionResultExpressionMembership constraint
SysML v2 Issues
- SYSML2-491 KerML constraint requires updates to Systems Library models
- SYSML2-492 KerML constraint requires updates to Domain Library models
Backward Incompatibilities
- Validation constraints. The newly implemented validation constraints (particularly
validateRedefinitionDirectionConformanceandvalidateFeatureValueOverriding) may cause some models that previously passed validation to now fail.
Jupyter
None.
Visualization
-
PlantUML
None. -
Tom Sawyer
None.
Technical Updates
None.
Bug Fixes
Bugs reported in the following KerML and SysML v2 issues have been fixed (or mitigated) in this release. Note, however, that the resolutions to these issues have not yet been approved by the FTFs and, therefore, are subject to change.
KerML Issue
- KERML-154 Directed features inherited from a conjugated type not handled properly
[PR #504]
SysML v2 Issues
- SYSML2-495 Textual notation BNF for TriggerExpression is wrong
- SYSML2-497 validateTriggerInvocationExpressionAfterArgument constraint is too strong
- SYSML2-498 validateTriggerInvocationExpressionWhenArgument constraint is wrong
- SYSML2-499 Assignments parsed without a target will fail validateAssignmentActionUsageArguments
- SYSML2-500 The derivation of AssignmentActionUsage::referent is wrong
[PR #506]
2023-08 - SysML v2 Pilot Implementation
This is an incremental update to the 2023-07 release. It corresponds to Eclipse plugin version 0.35.0.
Language Features
None.
Model Libraries
None.
Backward Incompatibilities
None.
Jupyter
None.
Visualization
-
PlantUML
None. -
Tom Sawyer
None.
Technical Updates
None.
Bug Fixes
- Cause and Effect Library
.project.jsonfile. Resolves OMG issue SYSML2-78 by renamingsysml.library/Domain Libraries/Cause and Effect/.proj.jsonto.project.json.
[PR #497] - Derivation of
AnalysisCaseUsage::resultExpression. Corrects the derivation computation forAnalysisCaseUsage::resultExpresson.
[PR #498] - Defaults for
kindproperties. Corrects the default values used when serializing to XMI thekindproperty of various membership relationships.
[PR #499]
2023-07 - SysML v2 Pilot Implementation
This is an incremental update to the 2023-02 release. It corresponds to Eclipse plugin version 0.34.0.
Note: This is the first release since 2023-02.
Language Features
- Validation constraints. Most previously unimplemented validation constraints from the Beta 1 versions of the KerML and SysML specifications have now been implemented.
[PR #486] [PR #487]
Model Libraries
None.
Backward Incompatibilities
- Validation. Some of the newly implemented validation constraints are already automatically satisfied when a model is parsed from the textual notation. However, the other constraints may cause some models that previously passed validation checking to now fail with errors.
Jupyter
%helpcommand. A new%help"magic" command has been added to the Jupyter implementation. Without an argument, this command prints a list of all available magic commands. If given a command name (with or without the initial%) as its argument, it prints the help information for that command (i.e.,%helpcmdproduces the same result as%cmd-h).
[PR #493]
Visualization
-
PlantUML
See Bug Fixes. -
Tom Sawyer
None.
Technical Updates
None.
Bug Fixes
- Rendering of "initial" feature values (PlantUML). Removes the rendering of an unnecessary
=along with:=.
[PR #484] - Rendering of feature chains (PlantUML). Corrects the rendering of feature chains at then ends of successions in behavioral diagrams.
[PR #485] - Expression evaluation. Corrects the implementation of integer division and unary Real operator evaluation.
[PR #488] - Derived value computation. Corrects the computation of derived values of various properties.
[PR #490] - Implicit specialization. Corrects the adding of an implicit specialization for declarations that have circular owned specializations.
[PR #491] - Transition usages. Corrects a problem with the setting of the source of a transition usage that could cause spurious warning messages.
[PR #492] - End features. Corrects the implicit redefinition of an end feature whose owner specializes a feature chain.
[PR #494] - Analysis cases. Corrects the computation of the derived value of the
resultExpressionproperty forAnalysisCaseDefinitionsandAnalysisCaseUsages.
[PR #495]
2023-02 - SysML v2 Pilot Implementation
This is an incremental update to the 2023-01 release. It corresponds to Eclipse plugin version 0.33.0.
(Note: This is the first public release since 2022-12. There was no public release of 2023-01.)
Language Features
None.
(For Language Feature updates since 2022-12, see the 2023-01 release notes.)
Model Libraries
See Bug Fixes.
Backward Incompatibilities
None.
Jupyter
None.
Visualization
-
PlantUML
- Perform action usages and exhibit action usages are rendered using the
<<perform>>and<<exhibit>>keywords (rather than<<perform action>>and<<exhibit state>>) if the usages have no declared name or short name, but have a reference subsetting.
[PR #469]
- Perform action usages and exhibit action usages are rendered using the
-
Tom Sawyer
None.
Technical Updates
-
Abstract syntax files. All abstract syntax files have been updated to the 2023-02 baseline, consistent with the latest revised submission to OMG. Changes from 2023-01 are mostly updates to element documentation and addition of OCL constraints, plus two changes to OCL operations:
- Correction of the return type of
ActionUsage::inputParameterfromObjecttoFeature. - Addition of the operation
FeatureChainExpression::sourceTargetFeature.
[PR #475]
- Correction of the return type of
-
Normative XMI files. Two new QVT transformations have been added to generate
.umlfiles supporting the creation of the normative.xmifiles for the KerML and SysML abstract syntax, as delivered in the latest submission to OMG.SysML_xmi.uml– Combined KerML and SysML abstract syntax, but with all levels of packaging from the original MOF model.KerML_only_xmi.uml– Only KerML abstract syntax, with all levels of packaging from the original MOF model.SysML_only_xmi.uml– Only SysML abstract syntax, with all levels of packaging from the original MOF model. Cross-references KerML elements fromKerML_only_xmi.uml.
[PR #473]
Bug Fixes
- UseCase::includedUseCases. Changed the subsetting of
UseCases::UseCase::includedUseCasesfromsubUseCasestoenclosedPerformances. This was necessary becauseincludedUseCasesis referential (it is subsetted byIncludeUseCaseUsages, which are always referential) andsubUseCasesis composite.
[PR #471] - Case::obj. Changed the subject of
Case::objto default toCase::result, rather than be bound it. Changed the subject ofAnalysisCases::objto override this default with a binding.
[PR #474] - Empty subjects. Corrects a bug that caused empty subjects to sometimes still be shown when visualized using PlantUML in Juptyer Lab.
[PR #477] - Highlighting. Fixes the highlighting of string, number and "comment" (note) tokens per Xtext configuration for the KerML and SysML editors.
[PR #478] - Validation cases. Resolved "TODO" comments in various validation case models.
[PR #479] - Index expressions. Fixes a bug in the implicit subsetting of index expressions that could cause errors in subsequent references from feature chaining expressions.
[PR #480]
2023-01 - SysML v2 Pilot Implementation
This is an incremental update to the 2022-12 release. It corresponds to Eclipse plugin version 0.32.0.
(Note: This is an SST-internal release. There is no public release planned for 2023-01.)
Language Features
-
Index expressions. The bracket notation
...[...]for index expressions has been replaced with a new notation...#(...)(parentheses are required). The bracket notation continues to be used for constructing quantities with units (e.g.,10.0[km]).attribute list [*] ordered = ("a", "b", "c"); attribute a = list#(1); // value is "a" attribute b = list#(2); // value is "b" attribute arr : Collections::Array { :>> dimensions = (2, 3); :>> elements = ("a", "b", "c", "x", "y", "z"); } attribute c = arr#(1,3); // value is "c" attribute y = arr#(2,2); // value is "y"[PR #466]
-
Timeslices and snapshots. The abstract syntax has been simplified for occurrence usages that are time slices and snapshots, eliminating the concept of a "portioning feature". The textual notation is unchanged, but now time slices and snapshot usages implicitly subset the
timeSlicesorsnapshotsfeatures (respectively) of each occurrence definition by which they are explicitly defined, if any, or, otherwise, the occurrence definition or usage in which they are nested.occurrence def AircraftFlight { // Implicitly subsets "timeSlices" of AircraftFlight. timeslice occurrence inAir; } // Implicitly featured by AircraftFlight. // Implicitly subsets "timeSlices" of AircraftFlight. timeslice occurrence preFlight : AircraftFlight;[PR #454]
Model Libraries
- Deterministic UUIDs. Implemented the generation of deterministic, named-based (version 5) UUIDs as the
elementIdsfor standard model library elements with a non-nullqualifiedName.
[PR #457]
Kernel Semantic Library
- BaseFunctions. Added an abstract function for
#.
[PR #466] - SequenceFunctions and CollectionFunctions. Changed the specializations of
[to corresponding specializations of#.
[PR #466] - StatePerformances. Added the feature
incomingTransitionTriggertoStatePerformance, whose value is theMessageTransferaccepted to trigger a transition into aStatePerformance. (This is inherited byStateActionin SysML.)
[PR #455]
Systems Model Library
- Geometry. Simplified the
SpatialItemsmodel to eliminate the need forCompoundSpatialItem. Now, anySpatialItemwith one or morecomponentItemsis considered to be a compound union of those items, while aSpatialItemwithout anycompoundItemsoccurs on its own, separately from itssubitems.
[PR #468] - Quantities and Units.
- Added definitions for curved definitions for curved spatial coordinate frames (3D spherical, cylindrical and planetary) and associated vector quantities in addition to existing Cartesian frames and vectors.
[PR #406] - Added a
universalCartesianSpatial3dCoordinateFramesingleton to be used as a default coordinate frame (similar to theTime::universalClocksingleton).
[PR #406] - Added a
transformcalculation definition toVectorCalculations, which transforms aVectorQuantityValuefrom a source to a targetCoordinateFrame.
[PR #406] - Added models for
TensorCalculationsandMeasurementRefCalculations.
[PR #467]
- Added definitions for curved definitions for curved spatial coordinate frames (3D spherical, cylindrical and planetary) and associated vector quantities in addition to existing Cartesian frames and vectors.
Backward Incompatibilities
-
Bracket notation. The following validation checks have been added, to catch previous uses of the bracket notation for indexing:
- KerML. A warning whenever the bracket notation is used: "Use #(...) for indexing".
- SysML. A warning when the bracket notation is used and the second argument is not a measurement reference: "Should be a measurement reference (unit)".
[PR #466]
-
Vector quantities and coordinate frames. A consistent naming convention has been adopted for the names of vector and coordinate frame types and features in library packages
Quantities.sysml,MeasurementReferences.sysmlandISQSpaceTime.sysml. As a result, some names of existing elements have changed. The following is an example of successive levels of specialization:VectorQuantityValue,ThreeVectorValue(from KerML)'3dVectorQuantityValue'(aliasThreeDVectorQuantityValue)Position3dVectorCartesianPosition3dVectorCylindricalPosition3dVectorSphericalPosition3dVectorPlanetaryPosition3dVector
[PR #406]
Jupyter
None.
Visualization
-
PlantUML
None. -
Tom Sawyer
None.
Technical Updates
-
Abstract syntax files. The following UML abstract syntax model files are now available in the
org.omg.sysml/modeldirectory, reflecting the normative metamodel URIs that will be used for the OMG submission.KerML_only.uml– Contains just the KerML abstract syntax metaclasses, all in a single flat package namedkerml.
URI:https://www.omg.org/spec/KerML/20230201SysML_only.uml– Contains just the SysML abstract syntax metaclasses, all in a single flat package namedsysml, referencing KerML elements fromKerML_only.uml.
URI:https://www.omg.org/spec/SysML/20230201SysML.uml– Contains the combined SysML and KerML abstract syntax metaclasses (as before), all in a single flat package namedsysml.
URI:https://www.omg.org/spec/SysML/20230201
[PR #452]
-
ECore metamodel. Since the Ecore metamodel
SysML.ecoreis generated fromSysML.uml, thesysmlEPackagefrom it is now registered using the URIhttps://www.omg.org/spec/SysML/20230201(rather thanhttp://www.omg.org/spec/SysML/2.0, as it has been previously).
[PR #452] -
XMI editor features. A
omg.org.sysml.editor.featurehas been created for theomg.org.sysml.editandomg.org.sysml.editorplugins introduced in the last release, and this new feature has been added toomg.org.sysml.sitefor the Eclipse installation.
[PR #453]
Bug Fixes
- ControlPerformances. Constrained the earlier/later occurrences of
DecisionPerformance::outgoingHBLink/MergePerformance::incomingHBLinkto be the performance.
[PR #456] - Links and Transfers. Made the following read-only:
Link::participant,BinaryLink::source/target,Transfer::isInstant,FlowTransfer::isMove/isPush.
[PR #459] - Exponential operator. Implemented
^as an exponential operator for model-level evaluable expression evaluation.
[PR #460] - ItemFlows and FlowConnectionUsages. Corrected the implicit specialization for
ItemFlowsandFlowConnectionUsages.
[PR #461] - ActionUsages. Corrected the implicit specialization for an
ActionUsageas anenclosedPerformance.
[PR #462] - StateActions. Corrected the subsettings of
StateAction::entryAction,exitActionanddoAction.
[PR #463] - Requirements. Made
RequirementCheck::assumptions,constraints,subrequirementsandconcernsall composite. Also corrected various specializations ofActions::subactionsthat should have been composite.
[PR #464] - Occurrences.
2022-12 - SysML v2 Pilot Implementation
This is an incremental update to the 2022-11 release. It corresponds to Eclipse plugin version 0.31.0.
Language Features
KerML
- Elements. The
Elementmetaclass is now abstract in the Root abstract syntax. Theelementnotation has therefore been removed from KerML.
[PR #445] - Relationships. The
Relationshipmetaclass is now abstract in the Root abstract syntax. Therelationshipnotation has therefore been removed from KerML.
[PR #445] - Dependencies.
Dependencyhas been added to the Root abstract syntax. The concrete syntax is the samedependencynotation as is already in SysML.
[PR #445]
KerML and SysML
- Effective names. Effective naming has been extended to short names. If both the declared name and short name of a feature are empty, but it has a naming feature (e.g., a feature it redefines), then it will take both its name and short name from the naming feature.
[PR #445]
part def A { attribute <short> longName; } part def B :> A { // This attribute takes both the name "longName" and // the short name "short" from its redefined feature. attribute redefines longName; }
Model Libraries
Kernel Semantic Library
- KerML. The reflective
KerMLmodel has been updated for abstract syntax changes.
[PR #445] - Occurrences and Performances. Various features related to spatial and temporal modeling associations in the
OccurrencesandPerformancesmodels have been marked as inverses (for examplesuccessorsandpredecessorsinOccurrencesare inverse features, related to theHappensBeforeassociation). Certain conditions have also been moved from associations to these features.
[PR #442 and 451]
Systems Model Library
- SysML. The reflective
SysMLmodel has been updated for a small abstract syntax correction.
[PR #445] - StandardViewDefinitions. The number of view definitions in the
StandardViewDefinitionspackage has been reduced from 16 to 9.
[PR #444]
Backward Incompatibilities
- Keywords. Removed from KerML:
elementrelationship
[PR #445] - Effective names. The (non-derived)
shortNameandnameproperties ofElementhave been renamed todeclaredShortNameanddeclaredName. The (derived)effectiveNameproperty has been renamed toname, and a new, derivedshortNameproperty has been added. The propertynameshould be used instead ofeffectiveNamewhen, e.g., querying for an element using the API.
[PR #445] - Multiplicity. The derivation of the
Type::multiplicityproperty in the abstract syntax has been changed to only select from the owned members of theType. This means the property will only have a value if theTypehas an explicitly declared multiplicity, but not for an implicitly "inherited" multiplicity. (The new utility methodFeatureUtil.getMultiplicityOf(Type)implements the previous derivation computation formultiplicity.)
[PR #448]
Jupyter
None.
Visualization
-
PlantUML
-
Tom Sawyer
None.
Technical Updates
None.
Bug Fixes
- LiteralBoolean. The implemented default for a
LiteralBooleanvalue was created fromtrueto the EMF-generatedfalse.
[PR #446] - Conditional succession. The implicit specialization for
TransitionUsagesused as conditional succession in action models has been to be the newAction::decisionTransitionfeature, which is correctly typed byDecisionTransition.
[PR #447] - Connections (PlantUML). Corrected the rendering of connections to redefined features.
[PR #439] - Feature chains (PlantUML). Corrected the rendering of feature chains that start with subsetting or redefining features.
[PR #443] - Feature values (PlantUML). Corrected the rendering of feature values that don't have an
=in the textual notation.
[PR #450]
2022-11 - SysML v2 Pilot Implementation
This is an incremental update to the 2022-10 release. It corresponds to Eclipse plugin version 0.30.0.
Language Features
-
Membership and namespace import. The abstract syntax for
Importhas been revised so that it is now abstract with two concrete subclasses,MembershipImportandNamespaceImport. The textual and graphical notations are unchanged, but their parsing is different.- An import declaration of the form
importqualifiedName;now parses to aMembershipImportwith itsimportedMembershipgiven by the resolution of thequalifiedName. If thequalifiedNameis suffixed by::**, thenisRecursive = true. - An import declaration of the form
importqualifiedName::*;now parses to aNamespaceImportwith itsimportedNamespacegiven by the resolution of thequalifiedName. If::**is also added, thenisRecursive = true.
[PR #426]
- An import declaration of the form
-
Membership and namespace expose. In the SysML abstract syntax,
Exposeis a kind ofImport. Parallel to the abstract syntax change forImport,Exposeis now abstract with two concrete subclassesMembershipExposeandNamespaceExpose.ViewUsagehas also been updated to replace theexposedNamespaceandviewedElementproperties with a singleexposedElement. As a result of these changes, it is now possible for aViewUsageto haveMembershipExposerelationships to theMembershipsfor individual elements, even if those elements are not named.
[PR #426]
Model Libraries
- KerML and SysML. The reflective syntax models
KerMLandSysMLhave been updated to reflect the changes in the abstract syntax forImportandExpose.
[PR #426] - Interchange data.
.projectand.metafiles have been added to each of the model library directories in thesysml.libraryproject, conformant with the format required in subclause 10.2 of the latest KerML Specification. As a result, compressing each of these directories into a ZIP archive results in a legal project interchange (.kpar) file, having model interchange files using the textual notation (.sysml).
[PR #437]
Backward Incompatibilities
There are no changes to the concrete syntax, so all existing valid models will continue to be valid. However, the abstract syntax for Import and Expose relationships has changed, so import and expose declarations will parse differently than before, as described above.
Jupyter
None.
Visualization
- PlantUML
See bug fixes - Tom Sawyer
None.
Technical Updates
-
Eclipse version. The minimum required version for Eclipse installation has been updated to 2022-09.
[PR #425] -
JSON schema. The following JSON Schema files have been added to the
org.omg.sysmlproject under a newjson-schemadirectory:KerML.json– KerML abstract syntax (also to be used for API payload validation)SysML.json– SysML abstract syntax (also to be used for API payload validation)ModelInterchange.json– Interchange project information (.project) and interchange project file metadata (.meta)
[PR #433]
Bug Fixes
- RequirementDerivation. Corrected the
baseTypesforOriginalRequirementMetadatatooriginalRequirementsandDerivedRequirementMetadatatoderivedRequirements. These had been switched.
[PR #432] - Feature chain evaluation. Corrected the evaluation of feature chains with intermediate features that are redefined.
[PR #435] - Rendering of subjects (PlantUML). Rendered requirement and case subjects as distinct nodes in order to render subjects with bindings or subsettings.
[PR #428] - Start/done and entry/exit action rendering (PlantUML). Properly rendered start and done in actions and entry and exit actions in states.
[PR #429] - Variant visualization (PlantUML). Revised visualization of variants to align with specification.
[PR #431] - Short name rendering (PlantUML). Fixed an er...
2022-10 - SysML v2 Pilot Implementation
This is an incremental update to the 2022-09 release. It corresponds to Eclipse plugin version 0.29.0.
Language Features
- User-defined keywords.
- User-defined keyword notation (
#keyword) is now available in KerML. - In both KerML and SysML, multiple user-defined keywords can now be used in a single declaration.
- User-defined keyword notation (
- Binding connectors and successions. In KerML only, it is now possible to declare the ends of a binding connector or succession using end feature declarations in the connector body, rather than using the special notation
... = ...orfirst ... then .... - Cast operators. The parsing of the cast operators
asandmetahas been changed to make the target type directly the type of the result parameter of the operator expression. (This is a backward compatible change.) - Flow payloads. Previously, the textual notation only allowed limited declaration of the name and type of the payload feature (
of...) of an item flow (in KerML) or a flow connection usage (in SysML). Now, payload features can have full declarations, including subsetting and redefinition specializations and feature value bindings. This is useful for modeling e.g., a message in SysML with a specific value for its payload.message of fuelCommand : FuelCommand = engineController.engineControlPort.incomingFuelCommand from engineController to engine;
[PR #420]
Model Libraries
- BaseFunctions. The functions in the Kernel Semantic Library package
BaseFunctionscorresponding to the cast operators have been updated consistent with the change noted above.
[PR #420] - Connections. See Bug Fixes below.
Backward Incompatibilities
None.
Jupyter
None
Visualization
-
PlantUML
- Updated PlantUML to 1.2022.7.
Important Note: To work with this release, existing Eclipse installations will need to have their PlantUML installation updated from the update sitehttps://https://github.com/himi/p2-update-puml-sysmlv2/raw/main/updates. - Updated compartment title style to be centered and italic.
[PR #419]
- Updated PlantUML to 1.2022.7.
-
Tom Sawyer
None.
Technical Updates
There were a number of changes to clean up the abstract syntax, which should not effect user models.
- Implementation-specific metaclasses. The abstract syntax as implemented previously contained five metaclasses that were specific to the pilot implementation but not considered part of the normative abstract syntax model documented in the specifications. Two of these (
ItemFeatureandItemFlowEnd) have now been made normative, while three others (ItemFlowFeature,SourceEndandTargetEnd) have been removed, with the pilot implementation updated to not need them. - Multiplicity lower bounds. Previously, the
Feature::typeproperty had a multiplicity lower bound of 1. This has now been changed to 0, as has the multiplicity lower bound for all properties that (directly or indirectly) subset this property. This allows models to be peristed and interchanged without explicit typing, with semanticly necessary types ultimately provided via implied relationships added by tooling. - Ecore. Previously, during preprocessing of the exported MOF model, the property
Feature::isNonuniquewas added toSysML.umlfor use as an workaround in parsing thenonuniquekeyword. In addition, theOperatorExpressions::operandproperty was included in the abstract syntax model as an implementation workaround for parsing operator expressions. Now, these two features are added toSysML.ecoreby the custom UML to Ecore converter and are not included in theSysML.umlmodel.
[PR #420]
Bug Fixes
- Flow connections. In the Systems Library model
Connections, correctedMessageConnectionto specializeActions::ActionandmessageConnectionsto specializeActions::actions.
[PR #421]
2022-09 - SysML v2 Pilot Implementation
This is an incremental update to the 2022-08 release. It corresponds to Eclipse plugin version 0.28.1.
Language Features
KerML and SysML
-
Library packages. The keyword
librarycan be used to identify a package as a library package, e.g.,library packageDynamicsModelLibrary { ... }. Further prefixing a library package declaration with the keywordstandardidentifies it as a standard library package. However,standardshould only be used to identify library packages that are part of the standard KerML and SysML model libraries (i.e., those in thesysml.libraryproject in the pilot implementation), or other accepted standard model libraries in the future.
[PR #416] -
Metadata access. A metadata access expression has the form
elementName.metadata, whereelementNameis a qualified name for any kind of element. Such an expression evaluates to a sequence of instances of the reflective metaclassKerML::Metaclassrepresenting the owned metadata feature annotations of the named element, in order. In addition, the last element of the sequence is always an instance of the reflective abstract syntax metaclass for the named element representing the instantiation of the element in the model.For example, given the model
import RiskMetadata::*; part def SystemDesign { metadata Risk { totalRisk = RiskLevelEnum::medium; } }The expression
SystemDesign.metadataevaluates to a sequence of two values, the first of which is an instance of the metadata definitionRiskMetadata::Risk, and the second of which is an instance ofSysML::PartDefinition. The following operators are convenient for operating on such sequences of metadata:elementName@@Metaclassis a shorthand forelementName.metadata@Metaclass. It tests whether any of the metadata of the named element is a direct or indirect instance ofMetaclass. For example, given the above sample model, the expressionsSystemModel @@ RiskandSystemModel @@ SysML::Definitionboth evaluate to true.elementNamemetaMetaclassis a shorthand forelementName.metadata asMetaclass. It filters the metadata of the named element for only those that are instances ofMetaclass. This is useful for accessing the values of features of the metadata. For example, given the above sample model,(SystemDesignmetaRisk).totalRisk.probabilityevaluates toLevelEnum::mediumand(SystemDesignmetaKerML::Element).nameevaluates to"SystemDesign"(note that the parentheses are required, due tometahaving the operator precedence of a binary operator).
[PR #416]
-
"Same" operator. The
===operator checks if two occurrences are portions of the same life (i.e., have the same "identity"). The operator!==is the inverse of===. For example, given the modelpart car { timeslice drivenByAlice; then timeslice drivenByBob; }the expression
car.drivenByAlice == car.drivenByBobevaluates to false, because the two timeslices are different occurrences, butcar.drivenByAlice === car.drivenByBobevaluates to true, because the two timeslices are both portions of the life of the samecar. For data values (i.e., non-occurrences), the===operator is the same as==.Implementation Note: Expression evaluation in the pilot implementation currently does not implement the functionality of
===and!==and simply treats them the same as==and!=.
[PR #417]
SysML Only
-
Conjugated port typing. While the notation for conjugated port typing has not changed, the way the conjugated port definition is resolved has changed. Previously, in a declaration such as
portp : ~P;, the conjugated port typing was a relationship between the port usagepand the port definitionP, with the actual conjugated port definition being derived as the one owned byP. Now, the conjugated port typing relationship is instead between the port usage and the actual conjugated port definition, which is found by resolving the constructed qualified nameP::'~P'. The corresponding port definitionPis now a derived property of the conjugated port typing, determined as the owning port definition of the conjugated port definition.
[PR #416] -
Send action. Send action syntax has been extended to include a new
viaclause:sendpayloadviasendertoreceiver;. This allows for arguments for both thesender(via) andreceiver(to) parameters ofSendAction(see also the model library update description below). While having bothviaandtois allowed, it is expected that generally only one or the other will be used, withviabeing used to send "out" through a port (parallel to the use ofviaon an accept action for accept "in" through a port).
[PRs #410, #416] -
Messages. The parsing of message declarations has changed. A declaration of the form
message fromsourceEventtotargetEvent;still parses to a connection usage, but without connection ends. Instead, it redefinesTransfer::sourceEventandTransfer::targetEventto reference the givensourceEventandtargetEvent, respectively (see also model library update description below). This allows such a message to be realized by either a message connection in which thesourceEventis a send action and thetargetEventis an accept action, or a flow connection, such as between two ports, in which case thesourceandtargetports are also thesourceEventandtargetEvent.
[PR #410]
Model Libraries
General
-
Library packages. All standard model library packages are now declared as
standard library package.
[PR #416] -
Reflection. The reflective abstract syntax models
KerMLandSysMLnow include all navigable properties from the normative MOF abstract syntax model as features of the corresponding metaclasses/metadata definitions.
[PR #408]
Kernel Semantic Library
- Event handling. Updated the models
Occurrences,Performances,Transfers,TransitionPerformancesandStatePerformancesto capture semantics related to event handling, including prioritized dispatch, accept matching and run-to-completion.
[PR #410]
Kernel Functions Library
-
Base and data functions.
- Added the abstract function
'==='toBaseFunctions, for use as the function invoked by the===operator. Added the function'!=='as the opposite of'==='and the function invoked by the!==operator. - Added a specialization of
BaseFunctions::'==='for data values toDataFunctions, for which it is the same as'=='.
[PR #417]
- Added the abstract function
-
Sequence functions. Added the following new functions to
SequenceFunctions.samecompares whether two sequences are the same using===(as opposed toequals, which uses==).includingAtreturns a sequence of values constructed from two input sequences by adding the second sequence at a given index in the first sequence.excludingAtreturns a sequence of values containing all the values from an input sequence except those within a given range of indices (inclusive).
Added the following behaviors for convenient "standalone" modification of a sequence given with an
inoutparameter:addadds a sequence of values to the end of the input sequence (usingincluding).addAtadds a sequence of values at a given index of the input sequence (usingincludingAt).removeremoves a set of values from the input sequence (usingexcluding).removeAtremoves the values within a given range of indexes (inclusive) of the input sequence (usingexcludingAt).
[PR #417]
-
Occurrence functions. Added a new
OccurrenceFunctionspackage that defines functions that operate on occurrences, primarily related to the time during which those occurrences exist.'==='specializesBaseFunctions::'==='for occurrences. It tests whether two occurrences are portions of the same life. That is, whether they represent different portions of the same entity (colloquially, whether they have the same "identity").isDuringtests whether a performance of the function happens during the input occurrence.createensures that the start of a given occurrence happens during a performance of this function. The occurrence is also returned from the function.destroyensures that the end of a given occurrence happens during a performance of this function. The occurrence is also returned from the function.addNewadds a newly created occurrence to the given group of occurrences and returns the new occurrence.addNewAtadds a newly created occurrence to the given ordered group of occurrences at the given index and returns the new occurrence.removeOldremoves a given occurrence from a group of occurrences and destroys it.removeOldAtremoves the occurrence at a given index in an ordered group of occurrences and destroys it.
[PR #417]
Systems Library
- Connections.
- Added
MessageConnectionas the most general base type for connection definitions and usages, withFlowConnectionas specialization ofMessageConnection. - Added the features
sourceEventandtargetEventtoMessageConnectionto identify the events occurrences within thesourceandtargetof the connection that create and accept the connection as a transfer, e.g., a source send action and a target accept action. For non-message flow connection usages,sourceEventandtargetEventdefault tosourceandtarget.
- Added
...
2022-08 - SysML v2 Pilot Implementation
This is an incremental update to the 2022-07 release. It corresponds to Eclipse plugin version 0.27.0.
Language Features
KerML
-
Unioning, intersecting and differencing. New relationships have been added for the unioning, intersecting and differencing of types. They are notated using new clauses that can be used in any kind of type declaration (including classifiers, features, connectors, etc.), included in the set of clauses that appear after the specialization part of the declaration.
unionsA, B, ...– Specifies that the declared type has unioning relationships with each of the typesA, B, ..., meaning that the declared type classifies everything that is classified by any of the listed types.intersectsA, B, ...– Specifies that the declared type has intersecting relationships with each of the typesA, B, ..., meaning that the declared type classifies everything that is classified by all of the listed types.differencesA, B, ...– Specifies that the declared type has differencing relationships with each of the typesA, B, ..., meaning that the declared type classifies everything that is classified by the first type but is not classified by any of the remaining types.
class Adult; class Child; class Person unions Adult, Child { feature dependents : Child[*]; feature offspring : Person[*]; feature grownOffspring : Adult[*] :> offspring; feature dependentOffspring : Child[*] :> dependents, offspring differences offspring, grownOffspring intersects dependents, offspring; }[PR #396]
-
Reference subsetting. Previously, the related feature of a connector was related to a connector end using a regular subsetting relationship. Now a special referencing subsetting relationship is used instead, syntactically distinguishing the related feature from other subsetting features the connector end might have. Notationally, this means that, in the named connector end notation, the new keyword
referencesor the equivalent symbol::>must be used.connector :A from a1 ::> f to a2 ::> g; connector :B (b1 ::> f, b2 ::> g, b3 ::> h); connector :B { end b1 references f subsets x; end b2 subsets y references g; end b3 references h; }[PR #394]
SysML
-
Flow connection definition. Previously, flow connection usages were typed by regular connection definitions specializing the base type
FlowConnection. Now flow connection definitions have been added, and flow connection usages must (implicitly or explicitly) be typed by flow connection definitions. The notation is the same as for regular connection definitions, but using the keywordflow definstead ofconnection def. A flow connection definition is a connection definition, an action definition and a kernel interaction. A flow connection usage is now also an action usage, in addition to being a connection usage and a kernel item flow.
[PR #390] -
Reference subsetting. Reference subsetting is also used in the following places in SysML.
- Connections. To identify the related features of connections, as for KerML connectors (see above).
connection :A connect a1 ::> f to a2 ::> g; connection :B connect (b1 ::> f, b2 ::> g, b3 ::> h); connection :B { end b1 references f subsets x; end b2 subsets y references g; end b3 references h; } - Usages. To identify the features referenced by certain kinds of usages.
- The asserted constraint of an assert constraint usage.
- The satisfied requirement of a satisfy requirement usage.
- The event occurrence of an event occurrence usage.
- The performed action of a perform action usage.
- The exhibited state of an exhibit state usage.
- The included use case of an include use case usage.
perform a; // This is equivalent to the following action. perform action references a; // The performed action is "a" in both of the following. perform action a1 references a subsets b; perform action a2 :> b ::> a; satisfy r by p; // This is equivalent to the following satisfy. satisfy requirement references r by p; - Relationships. To identify the features referenced by certain kinds of membership relationships.
- The constraint referenced by a requirement constraint membership (
assumeorrequire). - The concern referenced by a framed concern membership (
frame). - The requirement referenced by a requirement verification membership (
verify). - The rendering referenced by a view rendering membership (
render).
requirement r { require c; // This is equivalent to the following required constraint. require constraint references c; // The referenced constraint is "c" in both of the following. assume constraint ac1 references c subsets d; assume constraint ac2 :> d ::> c; } - The constraint referenced by a requirement constraint membership (
- Variants. The notation
variantreferenced-usagenow parses to a reference usage with a reference subsetting to thereferenced-usage. However, there is no surface notational change, and there is no requirement to use reference subsetting otherwise in variant declarations.part p; variation part q { variant p; // This is equivalent to the following. variant ref p1 references p; variant part p2 subsets p; // But this is also still acceptable. }
[PR #394]
- Connections. To identify the related features of connections, as for KerML connectors (see above).
-
User-defined keywords. The notation has been updated to allow user-defined keywords in the following additional places.
assume#keywordconstraintconstraint-usagerequire#keywordconstraintconstraint-usageframe#keywordconcernconcern-usageverify#keywordrequirementrequirement-usageactor#keywordusagestakeholder#keywordusagesubject#keywordusageobjective#keywordrequirement-usage
Note. In items 1–4, the
constraint,concern, orrequirementkeyword is optional when a user-defined keyword is included. However, if neither keyword is included, then the declaration is a reference, rather than the declaration of a named usage. For example,requireaGoal;is equivalent torequire constraint referencesaGoal;, whilerequire #goalaGoal;is equivalent torequire #goal constraintaGoal;, whereaGoalis a name of the required constraint usage, not a reference to another constraint usage.
[PR #397]
Model Libraries
Systems Library
- Connections.
FlowConnectionandSuccessionFlowConnectionhave been made flow connection definitions.flowConnectionsandsuccessionFlowConnectionshave been made messages (that is, flow connection usages without target output or source input features declared).
[PR #390]
Backward Incompatibilities
- Reserved words.
- KerML:
differences intersects references unions - SysML:
references
- KerML:
- Reference subsetting. The reference subsetting must now be used in the named notation for the related features of a connector or connection end. In other cases in SysML, reference subsetting should be used to retain the same meaning as previously. For example, in
perform actionpasubsetsa;(orperform actionpa :> a;),ais no longer the performed action, it is simply a subsetted action. Instead, useperform actionpareferencesa;(orperform actionpa ::> a;).
[PR #394] - Prefix comments. Prefix comments (i.e, comments starting with
/**) will no longer generate a warning. They will simply be parsed as regular comments about the namespace they are a member of (not about the following member). For example, inthe comment parses as being about packagepackage P { /** This is a comment */ attribute x; }P(notx) with the body text* This is a comment.
[PR #390]
Jupyter
None.
Visualization
-
PlantUML
- Updated to visualize language extensions with <<#...>> in the title. In addition, two new styles have been added:
HIDEMETADATA– Do not render callouts to show metadata.SHOWMETACLASS– Always show metaclasses for types as well as metadata usages.
[PR #385]
- Updated to visualize language extensions with <<#...>> in the title. In addition, two new styles have been added:
-
Tom Sawyer
None.
Technical Updates
None
Bug Fixes
- ItemFlow::itemType Fixed an error in the implementation of the derivation of
itemTypethat caused anIndexOutOfBoundsException.
[PR #386] - Message ends. Corrected bugs related to the parsing of
messagedeclarations.
[PR #387] - Conditional succession. Corrected the computation of the featuring type of an implicit connector/connection.
[PR #388] - Usage::isComposite. Fixed the default for the
isCompositeproperty of a usage.
[PR #389] - Conjugate port types (PlantUML). Fixed the rendering of conjugate port types (by using the effective name).
[PR #391] - State actions (PlantUML). Removed the slash from the rendering of state actions.
[PR #392] - Anonymous packages (PlantUML). Fixed the rendering of packages without names.
[PR #393] - Cyclic types (PlantUML). Prevented a
StackOverflowExceptionwhen rendering cyclic types.
[PR #395]