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 theredefinedFeature
of aRedefinition
hasdirection
in
orout
, then theredefiningFeature
must have the samedirection
. If theredefinedFeature
hasdirection
inout
, then theredefiningFeature
must have a non-nulldirection
.validateExpressionResultExpressionMembership
– AnExpression
must have at most oneResultExpressionMembership
.validateFunctionResultExpressionMembership
– AFunction
must have at most oneResultExpressionMembership
.validateFeatureValueOverriding
– AllFeatures
directly or indirectly redefined by thefeatureWithValue
of aFeatureValue
must have only defaultFeatureValues
.
[PR #504]
-
New SysML validation constraints. Checks have been implemented for the following new constraints, applying only to SysML:
validateAssignmentActionUsageArguments
– AnAssignmentActionUsage
must have two argumentExpressions
.validateAssignmentActionUsageReferent
– AnAssignmentActionUsage
must have anownedMembership
that is not anOwningMembership
and whosememberElement
is aFeature
.validateForLoopActionUsageLoopVariable
– The firstownedFeature
of aForLoopActionUsage
must be aReferenceUsage
.validateForLoopActionUsageParameters
– AForLoopActionUsage
must have two ownedinput
parameters
.validateIfActionUsageParameters
– AnIfActionUsage
must have at least two ownedinput
parameters
.validateWhileLoopActionUsage
– AWhileLoopActionUsage
must have at least two ownedinput
parameters
.validateTriggerInvocationExpressionAfterArgument
– If aTriggerInvocationExpression
haskind = after
, then it must have an argumentExpression
with aresult
that conforms to the typeISQ::DurationValue
.validateTriggerInvocationExpressionAtArgument
– If aTriggerInvocationExpression
haskind = at
, then it must have an argumentExpression
with aresult
that conforms to the typeTime::TimeInstantValue
.validateTriggerInvocationExpressionWhenArgument
– If aTriggerInvocationExpression
haskind = when
, then it must have an argumentExpression
with aresult
that conforms to the typeScalarValues::Boolean
.validateAssertConstraintUsageReference
– If anAssertConstraintUsage
has anownedReferenceSubsetting
, then itsreferencedFeature
must be a ConstraintUsage.validateSatisfyRequirementUsageReference
– If aSatisfyRequirementUsage
has anownedReferenceSubsetting
, then itsreferencedFeature
must be aRequirementUsage
.
[PR #506]
-
Feature values on connections. The textual notation now supports declaring connection usages and interface usages with feature values:
abstract connection
c1
;
abstract connection
c2 = c1; // Previously did not parse.
connection
c3 = c1
connect
a 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 rendering
name : Def [m] ... ;
The previous notation
render
r
; then effectively becomes a shorthand forrender rendering references
r;
.[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
validateRedefinitionDirectionConformance
andvalidateFeatureValueOverriding
) 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.json
file. Resolves OMG issue SYSML2-78 by renamingsysml.library/Domain Libraries/Cause and Effect/.proj.json
to.project.json
.
[PR #497] - Derivation of
AnalysisCaseUsage::resultExpression
. Corrects the derivation computation forAnalysisCaseUsage::resultExpresson
.
[PR #498] - Defaults for
kind
properties. Corrects the default values used when serializing to XMI thekind
property 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
%help
command. 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.,%help
cmd
produces 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
resultExpression
property forAnalysisCaseDefinitions
andAnalysisCaseUsages
.
[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::inputParameter
fromObject
toFeature
. - 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
.uml
files supporting the creation of the normative.xmi
files 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::includedUseCases
fromsubUseCases
toenclosedPerformances
. This was necessary becauseincludedUseCases
is referential (it is subsetted byIncludeUseCaseUsages
, which are always referential) andsubUseCases
is composite.
[PR #471] - Case::obj. Changed the subject of
Case::obj
to default toCase::result
, rather than be bound it. Changed the subject ofAnalysisCases::obj
to 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
timeSlices
orsnapshots
features (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
elementIds
for 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
incomingTransitionTrigger
toStatePerformance
, whose value is theMessageTransfer
accepted to trigger a transition into aStatePerformance
. (This is inherited byStateAction
in SysML.)
[PR #455]
Systems Model Library
- Geometry. Simplified the
SpatialItems
model to eliminate the need forCompoundSpatialItem
. Now, anySpatialItem
with one or morecomponentItems
is considered to be a compound union of those items, while aSpatialItem
without anycompoundItems
occurs 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
universalCartesianSpatial3dCoordinateFrame
singleton to be used as a default coordinate frame (similar to theTime::universalClock
singleton).
[PR #406] - Added a
transform
calculation definition toVectorCalculations
, which transforms aVectorQuantityValue
from a source to a targetCoordinateFrame
.
[PR #406] - Added models for
TensorCalculations
andMeasurementRefCalculations
.
[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.sysml
andISQSpaceTime.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
)Position3dVector
CartesianPosition3dVector
CylindricalPosition3dVector
SphericalPosition3dVector
PlanetaryPosition3dVector
[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/model
directory, 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/20230201
SysML_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/20230201
SysML.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.ecore
is generated fromSysML.uml
, thesysml
EPackage
from 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.feature
has been created for theomg.org.sysml.edit
andomg.org.sysml.editor
plugins introduced in the last release, and this new feature has been added toomg.org.sysml.site
for the Eclipse installation.
[PR #453]
Bug Fixes
- ControlPerformances. Constrained the earlier/later occurrences of
DecisionPerformance::outgoingHBLink
/MergePerformance::incomingHBLink
to 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
ItemFlows
andFlowConnectionUsages
.
[PR #461] - ActionUsages. Corrected the implicit specialization for an
ActionUsage
as anenclosedPerformance
.
[PR #462] - StateActions. Corrected the subsettings of
StateAction::entryAction
,exitAction
anddoAction
.
[PR #463] - Requirements. Made
RequirementCheck::assumptions
,constraints
,subrequirements
andconcerns
all composite. Also corrected various specializations ofActions::subactions
that 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
Element
metaclass is now abstract in the Root abstract syntax. Theelement
notation has therefore been removed from KerML.
[PR #445] - Relationships. The
Relationship
metaclass is now abstract in the Root abstract syntax. Therelationship
notation has therefore been removed from KerML.
[PR #445] - Dependencies.
Dependency
has been added to the Root abstract syntax. The concrete syntax is the samedependency
notation 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
KerML
model has been updated for abstract syntax changes.
[PR #445] - Occurrences and Performances. Various features related to spatial and temporal modeling associations in the
Occurrences
andPerformances
models have been marked as inverses (for examplesuccessors
andpredecessors
inOccurrences
are inverse features, related to theHappensBefore
association). Certain conditions have also been moved from associations to these features.
[PR #442 and 451]
Systems Model Library
- SysML. The reflective
SysML
model has been updated for a small abstract syntax correction.
[PR #445] - StandardViewDefinitions. The number of view definitions in the
StandardViewDefinitions
package has been reduced from 16 to 9.
[PR #444]
Backward Incompatibilities
- Keywords. Removed from KerML:
element
relationship
[PR #445] - Effective names. The (non-derived)
shortName
andname
properties ofElement
have been renamed todeclaredShortName
anddeclaredName
. The (derived)effectiveName
property has been renamed toname
, and a new, derivedshortName
property has been added. The propertyname
should be used instead ofeffectiveName
when, e.g., querying for an element using the API.
[PR #445] - Multiplicity. The derivation of the
Type::multiplicity
property 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 theType
has 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
LiteralBoolean
value was created fromtrue
to the EMF-generatedfalse
.
[PR #446] - Conditional succession. The implicit specialization for
TransitionUsages
used as conditional succession in action models has been to be the newAction::decisionTransition
feature, 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
Import
has been revised so that it is now abstract with two concrete subclasses,MembershipImport
andNamespaceImport
. The textual and graphical notations are unchanged, but their parsing is different.- An import declaration of the form
import
qualifiedName
;
now parses to aMembershipImport
with itsimportedMembership
given by the resolution of thequalifiedName
. If thequalifiedName
is suffixed by::**
, thenisRecursive = true
. - An import declaration of the form
import
qualifiedName
::*;
now parses to aNamespaceImport
with itsimportedNamespace
given 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,
Expose
is a kind ofImport
. Parallel to the abstract syntax change forImport
,Expose
is now abstract with two concrete subclassesMembershipExpose
andNamespaceExpose
.ViewUsage
has also been updated to replace theexposedNamespace
andviewedElement
properties with a singleexposedElement
. As a result of these changes, it is now possible for aViewUsage
to haveMembershipExpose
relationships to theMemberships
for individual elements, even if those elements are not named.
[PR #426]
Model Libraries
- KerML and SysML. The reflective syntax models
KerML
andSysML
have been updated to reflect the changes in the abstract syntax forImport
andExpose
.
[PR #426] - Interchange data.
.project
and.meta
files have been added to each of the model library directories in thesysml.library
project, 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.sysml
project under a newjson-schema
directory: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
baseTypes
forOriginalRequirementMetadata
tooriginalRequirements
andDerivedRequirementMetadata
toderivedRequirements
. 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
as
andmeta
has 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
BaseFunctions
corresponding 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 (
ItemFeature
andItemFlowEnd
) have now been made normative, while three others (ItemFlowFeature
,SourceEnd
andTargetEnd
) have been removed, with the pilot implementation updated to not need them. - Multiplicity lower bounds. Previously, the
Feature::type
property 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::isNonunique
was added toSysML.uml
for use as an workaround in parsing thenonunique
keyword. In addition, theOperatorExpressions::operand
property was included in the abstract syntax model as an implementation workaround for parsing operator expressions. Now, these two features are added toSysML.ecore
by the custom UML to Ecore converter and are not included in theSysML.uml
model.
[PR #420]
Bug Fixes
- Flow connections. In the Systems Library model
Connections
, correctedMessageConnection
to specializeActions::Action
andmessageConnections
to 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
library
can be used to identify a package as a library package, e.g.,library package
DynamicsModelLibrary { ... }
. Further prefixing a library package declaration with the keywordstandard
identifies it as a standard library package. However,standard
should only be used to identify library packages that are part of the standard KerML and SysML model libraries (i.e., those in thesysml.library
project 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
, whereelementName
is a qualified name for any kind of element. Such an expression evaluates to a sequence of instances of the reflective metaclassKerML::Metaclass
representing 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.
metadata
evaluates 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
@@
Metaclass
is 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 @@ Risk
andSystemModel @@ SysML::Definition
both evaluate to true.elementName
meta
Metaclass
is a shorthand forelementName
.
metadata as
Metaclass
. 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,(SystemDesign
meta
Risk).totalRisk.probability
evaluates toLevelEnum::medium
and(SystemDesign
meta
KerML::Element).name
evaluates to"SystemDesign"
(note that the parentheses are required, due tometa
having 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.drivenByBob
evaluates to false, because the two timeslices are different occurrences, butcar.drivenByAlice === car.drivenByBob
evaluates 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
port
p : ~P;
, the conjugated port typing was a relationship between the port usagep
and 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 definitionP
is 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
via
clause:send
payload
via
sender
to
receiver
;
. This allows for arguments for both thesender
(via
) andreceiver
(to
) parameters ofSendAction
(see also the model library update description below). While having bothvia
andto
is allowed, it is expected that generally only one or the other will be used, withvia
being used to send "out" through a port (parallel to the use ofvia
on 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 from
sourceEvent
to
targetEvent
;
still parses to a connection usage, but without connection ends. Instead, it redefinesTransfer::sourceEvent
andTransfer::targetEvent
to reference the givensourceEvent
andtargetEvent
, respectively (see also model library update description below). This allows such a message to be realized by either a message connection in which thesourceEvent
is a send action and thetargetEvent
is an accept action, or a flow connection, such as between two ports, in which case thesource
andtarget
ports are also thesourceEvent
andtargetEvent
.
[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
KerML
andSysML
now 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
,TransitionPerformances
andStatePerformances
to 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
.same
compares whether two sequences are the same using===
(as opposed toequals
, which uses==
).includingAt
returns a sequence of values constructed from two input sequences by adding the second sequence at a given index in the first sequence.excludingAt
returns 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
inout
parameter:add
adds a sequence of values to the end of the input sequence (usingincluding
).addAt
adds a sequence of values at a given index of the input sequence (usingincludingAt
).remove
removes a set of values from the input sequence (usingexcluding
).removeAt
removes the values within a given range of indexes (inclusive) of the input sequence (usingexcludingAt
).
[PR #417]
-
Occurrence functions. Added a new
OccurrenceFunctions
package 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").isDuring
tests whether a performance of the function happens during the input occurrence.create
ensures that the start of a given occurrence happens during a performance of this function. The occurrence is also returned from the function.destroy
ensures that the end of a given occurrence happens during a performance of this function. The occurrence is also returned from the function.addNew
adds a newly created occurrence to the given group of occurrences and returns the new occurrence.addNewAt
adds a newly created occurrence to the given ordered group of occurrences at the given index and returns the new occurrence.removeOld
removes a given occurrence from a group of occurrences and destroys it.removeOldAt
removes the occurrence at a given index in an ordered group of occurrences and destroys it.
[PR #417]
Systems Library
- Connections.
- Added
MessageConnection
as the most general base type for connection definitions and usages, withFlowConnection
as specialization ofMessageConnection
. - Added the features
sourceEvent
andtargetEvent
toMessageConnection
to identify the events occurrences within thesource
andtarget
of 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,sourceEvent
andtargetEvent
default tosource
andtarget
.
- 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.
unions
A, 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.intersects
A, 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.differences
A, 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
references
or 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 def
instead 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 (
assume
orrequire
). - 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
variant
referenced-usage
now 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
#keyword
constraint
constraint-usage
require
#keyword
constraint
constraint-usage
frame
#keyword
concern
concern-usage
verify
#keyword
requirement
requirement-usage
actor
#keyword
usage
stakeholder
#keyword
usage
subject
#keyword
usage
objective
#keyword
requirement-usage
Note. In items 1–4, the
constraint
,concern
, orrequirement
keyword 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,require
aGoal;
is equivalent torequire constraint references
aGoal;
, whilerequire #goal
aGoal;
is equivalent torequire #goal constraint
aGoal;
, whereaGoal
is a name of the required constraint usage, not a reference to another constraint usage.
[PR #397]
Model Libraries
Systems Library
- Connections.
FlowConnection
andSuccessionFlowConnection
have been made flow connection definitions.flowConnections
andsuccessionFlowConnections
have 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 action
pa
subsets
a;
(orperform action
pa :> a;
),a
is no longer the performed action, it is simply a subsetted action. Instead, useperform action
pa
references
a;
(orperform action
pa ::> 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
itemType
that caused anIndexOutOfBoundsException
.
[PR #386] - Message ends. Corrected bugs related to the parsing of
message
declarations.
[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
isComposite
property 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
StackOverflowException
when rendering cyclic types.
[PR #395]