Releases: Systems-Modeling/SysML-v2-Pilot-Implementation
2021-10 - SysML v2 Pilot Implementation
This is an incremental update to the 2021-09 release. It corresponds to Eclipse plugin version 0.17.0.
Language features
- Derived and read-only features. In both KerML and SyML, the keywords derived and readonly can be used when declaring a feature/usage with metaproperty
isDerived = true
orisReadOnly = true
, respectively. - Package body elements. Removed the restriction in the SysML syntax on declaring flow connections directly at package level (i.e., not as the feature of a definition or usage).
Model Library
- HappensJustBefore. Added the association
HappensJustBefore
to the Kernel LibraryOccurrences
model, to represent the relationship of one occurrence happening just before another, that is, when no occurrence exists that is after the first occurrence and before the second occurrence. (This is the "meet" relation in the Allen time interval formalism.)
Backward incompatibilities
- Keywords.
- KerML: Added: derived readonly. Removed: id stream.
- SysML: Added: binding derived readonly. Removed: id stream.
- Human IDs. In both KerML and SysML, the syntax for declaring a human ID has changed from
id
name
to<
name
>
. - Flow connections. In both KerML and SysML, the keyword for flow connections has changed from
stream
toflow
. The keyword for succession flow connections has changed fromflow
tosuccession flow
. - Binding connections. The SysML syntax for named binding connections has changed from
bind
name
as
source
=
target
;
tobinding
name
bind
source
=
target
;
The syntax for unnamed binding connections remains unchanged:bind
source
=
target
;
. - Successions. The SysML syntax for unnamed successions has changed from
succession
source
then
target
;
tofirst
source
then
target
;
. The syntax for named successions remains unchanged:succession
name
first
source
then
target
;
Jupyter
None.
Visualization
- Tom Sawyer
- Revised visualization of human IDs.
- Revised visualization of human IDs.
- PlantUML
- Revised visualization of human IDs.
Bug Fixes
- Include use case usages. Fixed the implementation of effective names of include use case usages.
2021-09 - SysML v2 Pilot Implementation
This is a maintenance update to the 2021-08 release. It corresponds to Eclipse plugin version 0.16.0.
Language features
No updates.
Model Library
- Connections. Added
FlowConnection
/flowConnections
andSuccessionFlowConnection
/successionFlowConnections
base types to theConnections
library model. - Kernel. Updated some Kernel Library package documentation consistent with KerML specification document.
Backward incompatibilities
- Flow connections. Due to the new library model for
message
,stream
andflow
connections, it is no longer allowable to use them as the target ofperform
actions. Useevent
orref subsets
instead.
Jupyter
None.
Visualization
- Tom Sawyer
None. - PlantUML
- Visualization of parameters and inherited members.
- Visualization of subsetting in textual feature representation.
- New style options:
- SHOWINHERITED – Show inherited members
- SHOWLIB – Show elements of the standard libraries
- COMPMOST – Show as many memberships in a compartment as possible
Bug Fixes
- Allocation definitions. Ensured that all allocation definitions directly or indirectly specialize the base
Allocation
type, no matter how many ends they have. - Association and connection ends. Ensured that the ends of non-binary associations and connection definitions directly or indirectly subset
Link::participant
. - Connector ends. Limited the special scoping of the targets of connector end subsettings to the first subsetting (i.e., the one giving the related element for the end).
2021-08.1 - SysML v2 Pilot Implementation
This release is the same as the 2021-08 release, except that it fixes a bug in the %publish
Jupyter magic command. It corresponds to Eclipse plugin version 0.15.2.
The release notes for 2021-08 are repeated below for convenience, with the additional bug fix shown in bold.
Language features
No updates.
Model Library
Improved documentation comments in Metadata and Analysis library models.
Backward incompatibilities
None.
Jupyter
- Show JSON. Added a
--style json
option to the%show
command to show model elements in a JSON representation. - Export JSON. Added an
%export
command to export model elements to a file in a JSON representation. - Installer. Updated the Jupyter installer to pull from conda-forge and npm.
Visualization
- Tom Sawyer
- Visualization of binding connectors nested in action parameters.
- Visualization of item flows nested in source actions.
- PlantUML
- Visualization of simple sequence diagrams.
Bug Fixes
- KerML Grammar. For
FeatureTyping
, corrected thegeneralization
keyword tospecialization
. - SysML Grammar
ActionBodyItem
- Added alias members.Parameter
- Added UseCaseUsage parameters.StateBodyItem
- Added alias members.
- Link. Fixed the spurious implicit specialization by
Link
ofBinaryLink
. - XMI. Fixed a possible
IndexOutOfBoundsException
when save SysML modes to XMI. - Event Occurrence Usages. - Made instances of EventOccurrenceUsage (and all subclasses) to be always referential.
- Feature Chains. - Corrected resolution of feature chains used as connector ends.
- Satisfying Features. - Corrected the implementation of the derivation of
SatisfyRequirementUsage::satisfyingFeature
. - Tom Sawyer. Fixed membership of elements in the outline view.
- PlantUML. Fixed rendering of unnamed actions and states and of satisfying feature links.
- Publishing. Restored the writing of derived property values when publishing a model from Jupyter.
2021-08 - SysML v2 Pilot Implementation
This is a maintenance update to the 2021-06 release (there was no 2021-07 release). It corresponds to Eclipse plugin version 0.15.1.
Language features
No updates.
Model Library
Improved documentation comments in Metadata and Analysis library models.
Backward incompatibilities
None.
Jupyter
- Show JSON. Added a
--style json
option to the%show
command to show model elements in a JSON representation. - Export JSON. Added an
%export
command to export model elements to a file in a JSON representation. - Installer. Updated the Jupyter installer to pull from conda-forge and npm.
Visualization
- Tom Sawyer
- Visualization of binding connectors nested in action parameters.
- Visualization of item flows nested in source actions.
- PlantUML
- Visualization of simple sequence diagrams.
Bug Fixes
- KerML Grammar. For
FeatureTyping
, corrected thegeneralization
keyword tospecialization
. - SysML Grammar
ActionBodyItem
- Added alias members.Parameter
- Added UseCaseUsage parameters.StateBodyItem
- Added alias members.
- Link. Fixed the spurious implicit specialization by
Link
ofBinaryLink
. - XMI. Fixed a possible
IndexOutOfBoundsException
when save SysML modes to XMI. - Event Occurrence Usages. - Made instances of EventOccurrenceUsage (and all subclasses) to be always referential.
- Feature Chains. - Corrected resolution of feature chains used as connector ends.
- Satisfying Features. - Corrected the implementation of the derivation of
SatisfyRequirementUsage::satisfyingFeature
. - Tom Sawyer. Fixed membership of elements in the outline view.
- PlantUML. Fixed rendering of unnamed actions and states and of satisfying feature links.
2021-06.1 - SysML v2 Pilot Implementation
This is an incremental update to the 2021-05 release. It corresponds to Eclipse plugin version 0.14.1.
This release is the same as the 2021-06 release, except that it fixes a missing update to the textual notation for transitions, to allow dot notation to be used for the transition source. The release notes for 2021-06 are repeated below for convenience.
Language features
KerML and SySML
- Import.
a. Member Import. Single member import is no longer equivalent to aliasing. The notationimport
namespaceQualifiedName
::
elementName
;
now imports the membership in the imported namespace given bynamespaceQualifiedName
whose member name is given byelementName
. This works properly even if givenelementName
is an alias name. IfnamespaceQualifiedName
is not given, thenelementName
is resolved in the containing scope of the import.
b. Recursive Import. As previously, a recursive import of the formimport
namespaceQualifiedName
::**;
includes the members of the namespace given bynamespaceQualifiedName
as well as members recursively imported from namespaces contained in the given namespace. There is now also a new formimport
namespaceQualifiedName
*::**;
that recursively imports the members of namespaces contained in the the namespace given bynamespaceQualifiedName
, but does not include the direct members of the given namespace itself.
c. Import All. Using the keywordsimport all
rather than justimport
now imports memberships without regard to visibility. - Implies operator. The symbol
=>
can now be used as an alternative operator forimplies
. - Feature Value Defaults. As previously, the feature value notation
feature
=
expression
;
declares that a feature is bound to the result of the given expression (using a binding connector). This means that a redefinition of the feature that binds it to a different result will usually be semantically inconsistent. It is now possible to instead declare a default feature value using the formfeature
default
=
defaultExpression
;
orfeature
default
defaultExpression
;
. In this case, unless the default is overridden, the actual binding of the feature to the result of the default expression is deferred until the containing type is instantiated. The default can be overridden in a redefinition of the feature, either with a new default or a non-default binding. - Feature Chaining. A feature chain is a sequence of feature references represented using dot notation of the form
f_1.f_2. ... .f_n
(similar to a property path in SysML v1). Feature chains of this form can now be used as the targets of subsetting and redefinition relationships, as well as to specify the ends of connectors and the sources and targets of flows. (Dot notation can also still be used in expressions to represent the more general form of a path step expression.)
KerML Only
- Feature Chains. The notation
feature
memberName
is
f_1.f_2. ... .f_n
;
can be used to declare a named feature specified by a feature chain. - Negated Invariants. The syntax for Invariants has been extended to allow
inv true
andinv false
, to declare Boolean expressions that are invariantly true or invariantly false, respectively.inv true
is the default, corresponding to the currentinv
syntax. - Disjoining. The notation
disjoining
identification
disjoint
typeDisjoined
from
disjoiningType
;
indicates that type given bytypeDisjoined
is disjoint from the type given bydisjoiningType
(thedisjoining
identification
part is optional). That is, it declares that no instance oftypeDisjoined
is also classified bydisjoiningType
. One or more such disjoining relationships can also be included directly in the declaration of thetypeDisjoined
, using the notationfeature
typeDisjoined
disjoint from
disjoiningType
,
disjoiningType
... ;
(thedisjoint from
part comes after any specialization part, but before afeatured by
part). - Feature members. Adding the keyword
member
to the start of a feature declaration contained in a type now indicates that the feature is owned via a membership relationship, not a feature membership. That is, while the feature will be declared in the namespace of the containing type, it will not be featured by that type and will, instead, be featured byAnything
, unless the feature declaration includes an explicitfeatured by
part.
SysML Only
- Ports. Port definitions and usages are now considered to be kinds of occurrence definitions and usages. This allows then to, e.g., be used as the target of an
event
declaration. - Perform Actions. Perform action usages are now considered to be kinds of event occurrence usages.
- Reference Usages. Previously, a usage declaration without a kind keyword defaulted to an attribute usage. For example
mass : MassValue;
was equivalent toattribute
mass : MassValue;
. The default has now been changed to a reference usage, so thatmass : MassValue;
is now equivalent toref
mass : MassValue;
For a usage of an attribute definition this is semantically equivalent to the previous default (since attribute usages are always referential), but it also allows referential usages of any other kind of definition to be declared using the default form. (Composite usages must still be declared using the appropriate kind keyword.) - Assert Constraint Usages. The notation for assert constraint usages has been extended to also allow
assert not
, meaning that the constraint is asserted to be false instead of true. - Satisfy Requirement Usages. The notation for satisfy requirement usages has been extended to allow it to start with an optional
assert
keyword, to emphasize that it is a kind of constraint assertion. In addition, thenot
keyword can be added in front ofsatisfy
to indicate that a requirement is not satisfied. That is,satisfy
requirement
by
subject
;
andassert satisfy
requirement
by
subject
;
both assert thatsubject
satisfiesrequirement
, whilenot satisfy
requirement
by
subject
;
andassert not satisfy
requirement
by
subject
;
assert thatsubject
does not satisfyrequirement
. - Multiplicity Defaults. Previously, when a usage was declared without an explicit multiplicity, the multiplicity was inherited from any implicit or explicit subsetted features. Since all the base features from the library have the most general multiplicity
0..*
, this meant that0..*
was the effective default multiplicity if no more constraining multiplicity was given. Now, a default multiplicity of1..1
is automatically added to attribute usages, item usages (including part usages, but not connection usages) and port usages, if both of the following conditions are met (if a default is not added, then the multiplicity is inherited, as previously):- The usage is owned by a type (i.e., a definition or usage, not a package).
- The usage does not have any explicit subsettings or redefinitions.
- Parallel States. A state definition or usage can now be declared to be a parallel state by placing the keyword
parallel
before the start of its body, e.g.,state def
Name
parallel
{ ... }
orstate
name
:
Definition
parallel
{ ... }
. A parallel state is one for which all its nested states run concurrently ("in parallel"). Therefore, a parallel state is not allowed to contain any successions or transitions that restrict the performance of its nested states. - State Subactions. Previously,
entry
,do
andexit
actions had to appear at the very beginning of the body of a state definition or usage. Now they may appear anywhere in the body, in any order (but at most one of each). - Use Cases. Use cases have now been added to the language as kinds of cases. Use case definitions and usages can be declared using the keywords
use case def
anduse case
, respectively. Included use case usages can be specified with a notation similar to perform action usages, but using the keywordinclude
instead ofperform
. (The traditional use case "extend" relationship has not yet been implemented.) - Actors. Actors can be declared as special parameters of requirements and cases (not just use cases), similarly to the way the subject of a requirement or case is declared. An actor parameter is declared as a part usage, but using the keyword
actor
instead ofpart
, i.e., with the formactor
usageDeclaration
;
. A requirement or case can have multiple actor parameters. - Connections. Previously, binding connectors, successions and item flows were adopted into the SysML language directly from KerML. This has been updated so, when they are used in SysML, they are considered to be SysML usages. This means that these elements can now participate in variant modeling, individual modeling, etc, just like other SysML usages.
Model Library
Kernel Library
- Scalar Values. The Number types have been updated so that Real specializes Complex, Rational specializes Real and Integer specializes Rational. The relevant functions packages have also been updated to remove up-conversion functions that are no longer necessary.
- Exponentiation. Missing specializations of of
'^'
have been added to all those Kernel Library functions packages that already include'**'
.
Systems Library
- Use Cases. A library package has been ...
2021-06 - SysML v2 Pilot Implementation
This is an incremental update to the 2021-05 release. It corresponds to Eclipse plugin version 0.14.0.
Language features
KerML and SySML
- Import.
a. Member Import. Single member import is no longer equivalent to aliasing. The notationimport
namespaceQualifiedName
::
elementName
;
now imports the membership in the imported namespace given bynamespaceQualifiedName
whose member name is given byelementName
. This works properly even if givenelementName
is an alias name. IfnamespaceQualifiedName
is not given, thenelementName
is resolved in the containing scope of the import.
b. Recursive Import. As previously, a recursive import of the formimport
namspaceQualifiedName
::**;
includes the members of the namespace given bynamespaceQualifiedName
as well as members recursively imported from namespaces contained in the given namespace. There is now also a new formimport
namspaceQualifiedName
*::**;
that recursively imports the members of namespaces contained in the the namespace given bynamspaceQualifiedName
, but does not include the direct members of the given namespace itself.
c. Import All. Using the keywordsimport all
rather than justimport
now imports memberships without regard to visibility. - Implies operator. The symbol
=>
can now be used as an alternative operator forimplies
. - Feature Value Defaults. As previously, the feature value notation
feature
=
expression
;
declares that a feature is bound to the result of the given expression (using a binding connector). This means that a redefinition of the feature that binds it to a different result will usually be semantically inconsistent. It is now possible to instead declare a default feature value using the formfeature
default
=
defaultExpression
;
orfeature
default
defaultExpression
;
. In this case, unless the default is overridden, the actual binding of the feature to the result of the default expression is deferred until the containing type is instantiated. The default can be overridden in a redefinition of the feature, either with a new default or a non-default binding. - Feature Chaining. A feature chain is a sequence of feature references represented using dot notation of the form
f_1.f_2. ... .f_n
(similar to a property path in SysML v1). Feature chains of this form can now be used as the targets of subsetting and redefinition relationships, as well as to specify the ends of connectors and the sources and targets of flows. (Dot notation can also still be used in expressions to represent the more general form of a path step expression.)
KerML Only
- Feature Chains. The notation
feature
memberName
is
f_1.f_2. ... .f_n
;
can be used to declare a named feature specified by a feature chain. - Negated Invariants. The syntax for Invariants has been extended to allow
inv true
andinv false
, to declare Boolean expressions that are invariantly true or invariantly false, respectively.inv true
is the default, corresponding to the currentinv
syntax. - Disjoining. The notation
disjoining
identification
disjoint
typeDisjoined
from
disjoiningType
;
indicates that type given bytypeDisjoined
is disjoint from the type given bydisjoiningType
(thedisjoining
identification
part is optional). That is, it declares that no instance oftypeDisjoined
is also classified bydisjoiningType
. One or more such disjoining relationships can also be included directly in the declaration of thetypeDisjoined
, using the notationfeature
typeDisjoined
disjoint from
disjoiningType
,
disjoiningType
... ;
(thedisjoint from
part comes after any specialization part, but before afeatured by
part). - Feature members. Adding the keyword
member
to the start of a feature declaration contained in a type now indicates that the feature is owned via a membership relationship, not a feature membership. That is, while the feature will be declared in the namespace of the containing type, it will not be featured by that type and will, instead, be featured byAnything
, unless the feature declaration includes an explicitfeatured by
part.
SysML Only
- Ports. Port definitions and usages are now considered to be kinds of occurrence definitions and usages. This allows then to, e.g., be used as the target of an
event
declaration. - Perform Actions. Perform action usages are now considered to be kinds of event occurrence usages.
- Reference Usages. Previously, a usage declaration without a kind keyword defaulted to an attribute usage. For example
mass : MassValue;
was equivalent toattribute
mass : MassValue;
. The default has now been changed to a reference usage, so thatmass : MassValue;
is now equivalent toref
mass : MassValue;
For a usage of an attribute definition this is semantically equivalent to the previous default (since attribute usages are always referential), but it also allows referential usages of any other kind of definition to be declared using the default form. (Composite usages must still be declared using the appropriate kind keyword.) - Assert Constraint Usages. The notation for assert constraint usages has been extended to also allow
assert not
, meaning that the constraint is asserted to be false instead of true. - Satisfy Requirement Usages. The notation for satisfy requirement usages has been extended to allow it to start with an optional
assert
keyword, to emphasize that it is a kind of constraint assertion. In addition, thenot
keyword can be added in front ofsatisfy
to indicate that a requirement is not satisfied. That is,satisfy
requirement
by
subject
;
andassert satisfy
requirement
by
subject
;
both assert thatsubject
satisfiesrequirement
, whilenot satisfy
requirement
by
subject
;
andassert not satisfy
requirement
by
subject
;
assert thatsubject
does not satisfyrequirement
. - Multiplicity Defaults. Previously, when a usage was declared without an explicit multiplicity, the multiplicity was inherited from any implicit or explicit subsetted features. Since all the base features from the library have the most general multiplicity
0..*
, this meant that0..*
was the effective default multiplicity if no more constraining multiplicity was given. Now, a default multiplicity of1..1
is automatically added to attribute usages, item usages (including part usages, but not connection usages) and port usages, if both of the following conditions are met (if a default is not added, then the multiplicity is inherited, as previously):- The usage is owned by a type (i.e., a definition or usage, not a package).
- The usage does not have any explicit subsettings or redefinitions.
- Parallel States. A state definition or usage can now be declared to be a parallel state by placing the keyword
parallel
before the start of its body, e.g.,state def
Name
parallel
{ ... }
orstate
name
:
Definition
parallel
{ ... }
. A parallel state is one for which all its nested states run concurrently ("in parallel"). Therefore, a parallel state is not allowed to contain any successions or transitions that restrict the performance of its nested states. - State Subactions. Previously,
entry
,do
andexit
actions had to appear at the very beginning of the body of a state definition or usage. Now they may appear anywhere in the body, in any order (but at most one of each). - Use Cases. Use cases have now been added to the language as kinds of cases. Use case definitions and usages can be declared
using the keywordsuse case def
anduse case
, respectively. Included use case usages can be specified with a notation similar to perform action usages, but using the keywordinclude
instead ofperform
. (The traditional use case "extend" relationship has not yet been implemented.) - Actors. Actors can be declared as special parameters of requirements and cases (not just use cases), similarly to the way the subject of a requirement or case is declared. An actor parameter is declared as a part usage, but using the keyword
actor
instead ofpart
, i.e., with the formactor
usageDeclaration
;
. A requirement or case can have multiple actor parameters. - Connections. Previously, binding connectors, successions and item flows were adopted into the SysML language directly from KerML. This has been updated so, when they are used in SysML, they are considered to be SysML usages. This means that these elements can now participate in variant modeling, individual modeling, etc, just like other SysML usages.
Model Library
Kernel Library
- Scalar Values. The Number types have been updated so that Real specializes Complex, Rational specializes Real and Integer specializes Rational. The relevant functions packages have also been updated to remove up-conversion functions that are no longer necessary.
- Exponentiation. Missing specializations of of
'^'
have been added to all those Kernel Library functions packages that already include'**'
.
Systems Library
- Use Cases. A library package has been added for
UseCases
, with base definitionUseCase
and base usageuseCases
. - Actors. An
actors
feature has been added toCases::Case
andRequirements::Requirement
. - Items and Parts. There have been updates to some of the features in the
Item
andPart
definitions. - Ports.
Port
now specializesOccurrence
andports
n...
2021-05a - SysML v2 Pilot Implementation
This is an incremental update to the 2021-04 release. It corresponds to Eclipse plugin version 0.13.1.
This release is the same as the 2021-05 release, except that it fixes four bugs and updates the Quantities and Units Library and PlantUML visualization. The release notes for 2021-05 are repeated below along with the additional changes introduced in this revision. Added items have bold headings.
Language features
Occurrences
- Occurrences. An occurrence is something that has a life over time and possibly a spacial extent. In SysML v2, items, actions and constraints (and their further specializations) are all kinds of occurrences (but attributes are not). It is now possible to model an occurrence without committing to what kind of occurrence it is using the definition and usage notations
occurrence def
andoccurrence
. - Individuals. The syntax for individuals has been expanded.
- Individual definitions and usages can now be made on all kinds of occurrences, i.e.,
individual part def
/individual part
,individual action def
/individual action
, etc. - The notations
individual def
andindividual
default toindividual occurrence def
andindividual occurrence
. - Every individual usage of any kind must have exactly one type that is an individual definition. However, individual usages may now also have additional types that are not individual definitions.
- Individual definitions and usages can now be made on all kinds of occurrences, i.e.,
- Time slices and snapshots. The time slice and snapshot notation has been updated.
- The
timeslice
andsnapshot
notations are no longer restricted to individuals, allowing any kind of occurrence type. The kind of occurrence can be explicitly given in the declaration, e.g.,timeslice part
,snapshot action
, etc. - A
timeslice
orsnapshot
usage without an explicit type that is nested in the body of occurrence definition or usage (of any kind) is implicitly a time slice or snapshot of its containing occurrence. - A
timeslice
orsnapshot
usage with a type that is an individual definition implicitly represents a time slice or snapshot of the defined individual. To make atimeslice
orsnapshot
declaration explicitly an individual usage, the notationsindividual timeslice
andindividual snapshot
can be used.
- The
- Event occurrences. A notation has been added for event occurrences.
- The notation
event occurrence
name
;
represents an identified suboccurrence of a containing occurrence. That is, it is equivalent toref occurrence
name
:> suboccurrences;
. - The notation
event
qualifedName
;
declares an event occurrence by reference to an occurrence usage owned elsewhere. It is equivalent toref occurrence
:>
qualifiedName
:> suboccurrences;
. - The
event occurrence
notation can be considered a generalization ofperform action
andexhibit state
. However, unlikeperform
andexhibit
, the referentialevent
notation does not take its effective name from the occurrence usage it references. This is because it is expected thatevent
will commonly be used to reference thesource
andtarget
of messages (see below), which would result in name conflicts between multiple such events in one namespace.
- The notation
- Messages. A notation has been added for messages, which are item flows without explicitly specified
sourceOutput
andtargetInput
features.- Messages are notated as special kinds of connectors:
message
name
of
FlowType
from
source
to
target
;
. Thename
andFlowType
are optional. - As an item flow, the implicit type of a message is the Kernel library type
Transfer
. A message can also be explicitly typed with any specialization ofTransfer
.
- Messages are notated as special kinds of connectors:
Logical Expressions
- Exclusive or. The exclusive-or operator has been changed from
^
to^^
. This allows^
to be used as an exponentiation operator. (The existing**
exponentiation operator has also been retained for now.) - Keyword operators. Keywords have been introduced as alternatives for certain existing symbolic operators.
Keyword | Symbol |
---|---|
and |
&& |
or |
|| |
xor |
^^ |
not |
! |
- Implies. A new
implies
operator has been add for logical implication. Note that this is a conditional operator: the expressionx
implies
y
is equivalent tonot
x
or
y
or!
x
||
y
. That is, ifx
evaluates to false, theny
is not evaluated and the implication results in true. - Conditional. A new syntax
if
test
?
x
else
y
has been introduced as an alternative for the conditional expressiontest
?
x
:
y
.
Library Models
- State space representation. The
StateSpaceRepresentation
package in the Analysis Domain Library has been updated to use vector quantities. - Feature access and control performances. A new
FeatureAccessPerformances
package has been added to the Kernel Library, and theControlPerformances
package has been updated with base behavior for conditional and looping constructs. However, the abstract and contract syntax have not been updated to take advantage of these new models yet. - Henry unit. The Quantities and Units library has been updated to make Henry [H] an InductanceUnit as well as a PermeanceUnit.
Backward incompatibilities
- Keywords. The following new keywords have been added as reserved words:
- KerML:
and implies not or xor
- SysML:
and event implies message not occurrence or xor
- KerML:
- Exclusive or. The operator symbol for exclusive or is now
^^
rather than^
. The operator symbol^
now denotes exponentiation. - Precedence. The precedence of the logical operators has been changed so that
and
and&&
have the same precedence as&
, andor
and||
have the same precedence as|
. The precedence ofimplies
is lower than the or operators. - Transfer ends. The ends of a
Transfer
have been renamed fromtransferSource
/transferTarget
tosource
/target
. This means that the ends of a named message can be referenced asmessageName::source
andmessageName::target
(e.g., when used with theevent
notation).
Visualization
- Tom Sawyer
- Big fixes.
- Big fixes.
- PlantUML
- Updated the visualization of individuals, snapshots and time slices.
- Connectors. Implemented visualization of connectors with ends specified using dot notation.
Bug Fixes
- Dot notation. Allowed the new "dot notation" to be used to specify the ends of item flows.
- Name hiding. Fixed a bug that could cause other scope names to be hidden when using filtered import.
- Visualization.
- Fixed bugs in the Tom Sawyer tool that could case initial loading of diagrams to be empty and disabled the the load project action if the web page was refreshed.
- Fixed a bug in the PlantUML visualization that caused referential features to be rendered using black-diamond (composite) notation.
- XMI export. Fixed a bug in the XMI export utility that sometimes caused member names not to be written to the XMI file.
- Dot notation name resolution. Fixed a bug that caused name resolution to fail for dot notation with more than three features.
- Dot notation and flow notation. Fixed a bug that caused a spurious warning when dot notation was used with the shorthand flow notation.
- Occurrence usage specialization. Corrected the implicit specialization of nested occurrence portion usages when they have no explicit feature typing.
- State definitions. Fixed the SysML grammar to allow individual and variation state defs.
Technical Improvements
- Eclipse 2021-03. The pilot implementation is now being developed and tested using Eclipse 2021-03 and Java 11.
- XMI utility. The XMI export utility has been updated to use element UUIDs as XMI IDs, rather than using the default xpath mechanism for cross-references.
- Syntax highlighting. The utility that generates syntax highlighting files from the Xtext grammars has been updated to automatically generate the Jupyter highlighting configuration.
2021-05 - SysML v2 Pilot Implementation
This is an incremental update to the 2021-04 release. It corresponds to Eclipse plugin version 0.13.0.
Language features
Occurrences
- Occurrences. An occurrence is something that has a life over time and possibly a spacial extent. In SysML v2, items, actions and constraints (and their further specializations) are all kinds of occurrences (but attributes are not). It is now possible to model an occurrence without committing to what kind of occurrence it is using the definition and usage notations
occurrence def
andoccurrence
. - Individuals. The syntax for individuals has been expanded.
- Individual definitions and usages can now be made on all kinds of occurrences, i.e.,
individual part def
/individual part
,individual action def
/individual action
, etc. - The notations
individual def
andindividual
default toindividual occurrence def
andindividual occurrence
. - Every individual usage of any kind must have exactly one type that is an individual definition. However, individual usages may now also have additional types that are not individual definitions.
- Individual definitions and usages can now be made on all kinds of occurrences, i.e.,
- Time slices and snapshots. The time slice and snapshot notation has been updated.
- The
timeslice
andsnapshot
notations are no longer restricted to individuals, allowing any kind of occurrence type. The kind of occurrence can be explicitly given in the declaration, e.g.,timeslice part
,snapshot action
, etc. - A
timeslice
orsnapshot
usage without an explicit type that is nested in the body of occurrence definition or usage (of any kind) is implicitly a time slice or snapshot of its containing occurrence. - A
timeslice
orsnapshot
usage with a type that is an individual definition implicitly represents a time slice or snapshot of the defined individual. To make atimeslice
orsnapshot
declaration explicitly an individual usage, the notationsindividual timeslice
andindividual snapshot
can be used.
- The
- Event occurrences. A notation has been added for event occurrences.
- The notation
event occurrence
name
;
represents an identified suboccurrence of a containing occurrence. That is, it is equivalent toref occurrence
name
:> suboccurrences;
. - The notation
event
qualifedName
;
declares an event occurrence by reference to an occurrence usage owned elsewhere. It is equivalent toref occurrence
:>
qualifiedName
:> suboccurrences;
. - The
event occurrence
notation can be considered a generalization ofperform action
andexhibit state
. However, unlikeperform
andexhibit
, the referentialevent
notation does not take its effective name from the occurrence usage it references. This is because it is expected thatevent
will commonly be used to reference thesource
andtarget
of messages (see below), which would result in name conflicts between multiple such events in one namespace.
- The notation
- Messages. A notation has been added for messages, which are item flows without explicitly specified
sourceOutput
andtargetInput
features.- Messages are notated as special kinds of connectors:
message
name
of
FlowType
from
source
to
target
;
. Thename
andFlowType
are optional. - As an item flow, the implicit type of a message is the Kernel library type
Transfer
. A message can also be explicitly typed with any specialization ofTransfer
.
- Messages are notated as special kinds of connectors:
Logical Expressions
- Exclusive or. The exclusive-or operator has been changed from
^
to^^
. This allows^
to be used as an exponentiation operator. (The existing**
exponentiation operator has also been retained for now.) - Keyword operators. Keywords have been introduced as alternatives for certain existing symbolic operators.
Keyword | Symbol |
---|---|
and |
&& |
or |
|| |
xor |
^^ |
not |
! |
- Implies. A new
implies
operator has been add for logical implication. Note that this is a conditional operator: the expressionx
implies
y
is equivalent tonot
x
or
y
or!
x
||
y
. That is, ifx
evaluates to false, theny
is not evaluated and the implication results in true. - Conditional. A new syntax
if
test
?
x
else
y
has been introduced as an alternative for the conditional expressiontest
?
x
:
y
.
Library Models
- State space representation. The
StateSpaceRepresentation
package in the Analysis Domain Library has been updated to use vector quantities. - Feature access and control performances. A new
FeatureAccessPerformances
package has been added to the Kernel Library, and theControlPerformances
package has been updated with base behavior for conditional and looping constructs. However, the abstract and contract syntax have not been updated to take advantage of these new models yet.
Backward incompatibilities
- Keywords. The following new keywords have been added as reserved words:
- KerML:
and implies not or xor
- SysML:
and event implies message not occurrence or xor
- KerML:
- Exclusive or. The operator symbol for exclusive or is now
^^
rather than^
. The operator symbol^
now denotes exponentiation. - Precedence. The precedence of the logical operators has been changed so that
and
and&&
have the same precedence as&
, andor
and||
have the same precedence as|
. The precedence ofimplies
is lower than the or operators. - Transfer ends. The ends of a
Transfer
have been renamed fromtransferSource
/transferTarget
tosource
/target
. This means that the ends of a named message can be referenced asmessageName::source
andmessageName::target
(e.g., when used with theevent
notation).
Visualization
- Tom Sawyer
- Big fixes.
- Big fixes.
- PlantUML
- Updated the visualization of individuals, snapshots and time slices.
Bug Fixes
- Dot notation. Allowed the new "dot notation" to be used to specify the ends of item flows.
- Name hiding. Fixed a bug that could cause other scope names to be hidden when using filtered import.
- Visualization.
- Fixed bugs in the Tom Sawyer tool that could case initial loading of diagrams to be empty and disabled the the load project action if the web page was refreshed.
- Fixed a bug in the PlantUML visualization that caused referential features to be rendered using black-diamond (composite) notation.
- XMI export. Fixed a bug in the XMI export utility that sometimes caused member names not to be written to the XMI file.
Technical Improvements
- Eclipse 2021-03. The pilot implementation is now being developed and tested using Eclipse 2021-03 and Java 11.
- XMI utility. The XMI export utility has been updated to use element UUIDs as XMI IDs, rather than using the default xpath mechanism for cross-references.
- Syntax highlighting. The utility that generates syntax highlighting files from the Xtext grammars has been updated to automatically generate the Jupyter highlighting configuration.
2021-04 - SysML v2 Pilot Implementation
This is an incremental update to the 2021-03 release. It corresponds to Eclipse plugin version 0.12.0.
Language features
Expressions
- Expression Bodies. Previously, it has been possible to define expression "bodies" using the usual curly bracket notation (e.g.,
expr e { ... }
in KerML andcalc c { ... }
in SysML). It is now possible to use bracketed bodies within the regular expression notation to represent an expression that is passed unevaluated. Parameters are denoted using nested features. For example,{
in
x : Integer; x + 1 }
denotes an expression that takes a single Integer input and returns that value incremented by one. Such expression bodies can be passed as arguments in an invocation (e.g.,Integrate({
in
x : Integer; x + 1 })
), but cannot themselves be invoked without being bound to a feature. (Note that curly brackets are no longer used for sequence construction expressions; see Backwards Incompatibilities below.) - Arrow Notation. The
->
notation for sequence expressions has been generalized to work for invoking any functions, with the first argument for the invocation given as the expression before the arrow. That is, an invocation such asa->F(b, c)
is equivalent toF(a, b, c)
for a general any functionF
with the correct signature. The previous special notation for sequence expressions is now a special case of this, using an expression body for the second argument, e.g.,list->select ({
in
x : Integer; x > 1 })
. As a shorthand, the parentheses may be omitted if the second argument is an expression body:list->select {
in
x : Integer; x > 1 }
. - Dot Notation for Collect. A new dot notation
expr
.
name
has been introduced, wherename
is the name of a public feature in the context of the namespace of the result of the expressionexpr
. Functionally, such a dot expression is equivalent toexpr
-> collect {
name
}
, where{
name
}
is an expression body that accepts an input and applies the named feature to it . - Dot Notation for Select. Similarly to the dot notation for collect above, the notation
expr
.{ ... }
is equivalent toexpr
-> select {...}
. - Dot Notation for Feature Paths. The dot notation may also be used in a limited form instead of qualified names to specify feature paths as connector ends. For example, a connection such as
connect
a::b::c
to
x::y::z;
may now be specified instead asconnect
a.b.c
to
x.y.z;
Unlike qualified names, which are always resolved statically to the base declaration of a feature regardless of inheritance, the dot notation captures the actual feature path in the abstract syntax. This means that it is no longer necessary to redefine inherited features to provide a local connection point, just to avoid "must have same context" warning messages. - Index Notation. The index notation
... [ ... ]
has been generalized to allow a sequence of indices within the brackets. In particular, this can be used to index multi-dimensional arrays. For example, ifa
is a two-dimensional array, thena[1,2]
evaluates to the element in the first row, second column. - Casting. A notation
expr
as
Type
has been added to cast the result of evaluating the expressionexpr
to the namedType
. Such a cast expression is equivalent toexpr
-> select {
in
x; x
istype
Type
}
. That is, it "filters" the sequence of values resulting from the evaluation ofexpr
, retaining only those values that are instances of the given type.
Stakeholders, Concerns and Renderings
- Stakeholders A stakeholder represents an entity that has concerns that are required to be addressed. Stakeholder definitions and usages can now be specified using the
stakeholder def
andstakeholder
keywords, respectively. - Concerns. A concern is a special kind of requirement that may affect one or more stakeholders. Concern definitions and usages can now be specified using the
concern def
andconcern
keywords, respectively. In addition,- An affected stakeholder may be referenced from a concern using the keyword
affect
. - A framed concern may be referenced from a requirement using the keyword
frame
. (Note that viewpoints are kinds of requirements. Concerns are often used in viewpoint modeling.)
- An affected stakeholder may be referenced from a concern using the keyword
- View Renderings. A new keyword
render
has been added to simplify the referential declaration of the rendering to be used for a view.
Library Models
- Standard Renderings. New library elements have been added to the Views package to define a preliminary set of standard renderings:
asTextualNotation
,asTreeDiagram
,asInterconnectionDiagram
,asElementTable
. These are named to read well when used with the newrender
keyword, e.g.,render
asTreeDiagram;
. - Reflective Abstract Syntax. Preliminary reflective library models for KerML and SysML abstract syntax (with those package names) have been added to the Kernel and Systems model libraries, respectively. Currently, these include only definitions of abstract syntax metaclasses, with no metaproperties. However, they may be used in filter expressions to test if an element is an instance of a certain metaclass (e.g.,
import
SystemModel::**[@SysML::PartUsage];
selects all PartUsages in SystemModel). - Quantities and Units. The packages ISQCondensedMatter and ISQInformation have been added to the Quantities and Units model library, covering ISO 80000 Part 12 Condensed Matter Physics and Part 13 Information Science and Technology, respectively. This completes the coverage of all parts of ISO 80000 in the Quantities and Units model library.
Backward incompatibilities
- Keywords. The following new keywords have been added as reserved words:
- KerML: None
- SysML: affect concern frame stakeholder
- Sequence Construction. Previously, sequence construction expressions used curly brackets, either for an element list (e.g.,
{1, 2, 3}
) or for a range (e.g,{1..2}
). This has been changed to, instead, use parentheses for an element list (e.g.,(1, 2, 3)
) and to not require any bracketing at all for ranges (e.g.,1..2
). Note that sequences of this sort are not values themselves, but simply represent multiple-valued properties of a certain multiplicity. They are therefore "flat", that is, for example, the sequence(1, (2, 3), 4)
is equivalent to(1, 2, 3, 4)
. Any parenthesized single expression is a sequence of length 1, which is just the same as the value of the corresponding un-parethesized expression (e.g.,(2)
has the same value as2
, as one would expect for regular parenthesizing). Finally,null
is equivalent to the empty sequence()
. - Qualified Names. While not permitted according to the draft specification documents, the pilot implementation previously still allowed the dot notation to be used as an alternative to the double-colon notation for qualified names. However, the dot notation is now used for feature path expressions (see above) and can no longer be used in qualified names. In general, a dot separated path of names can only be used instead of a qualified name in contexts in which a feature reference expression would be allowed or to specify a connector end (but not, e.g., as the target of an import or a specialization).
- Control Functions. The function name used in the arrow (
->
) notation was previously assumed to always be from the ControlFunctions library package (i.e.,collect
,select
,reject
,forAll
,exists
, etc.) and, therefore, didn't need to be imported or qualified in order to be resolved. However, with the generalization of this notation (see above), any function can now be used with the arrow notation, and normal name resolution rules apply for the function name. Therefore, any legacy models that use the ControlFunctions with the arrow notation will need appropriate imports added to avoid name resolution errors (e.g.,import
ControlFunctions::*;
). - Sequence Functions. Several functions that operate on sequences (such as
size
,isEmpty
,includes
, etc.) have been moved from the BaseFunctions library package to a new SequenceFunctions package, and some additional ones have been added.
Jupyter
- Using the
-h
option on any magic command (e.g.,%publish -h
) will now produce a brief help message giving command usage and options.
Visualization
- Tom Sawyer
- Re-implemented the Package view.
- Re-implemented the Package view.
- PlantUML
- Added a new Jupyter command
%view
to render a view usage using PlantUML.
- Added a new Jupyter command
Bug Fixes
- Missing Multiplicity. Explicit multiplicity of
[1]
has been added as appropriate to many of the parameters of functions in the Kernel Library functions packages.
2021-03a - SysML v2 Pilot Implementation
This is an incremental update to the 2021-02 release. It corresponds to Eclipse plugin version 0.11.1.
(This release is identical to 2021-03 release, except that it fixes three bugs and implements a performance improvement for recursive import. The release notes for 2021-03 are repeated below along with the additional changes introduced in this revision. Added items have bold headings.)
Language features
- Port Types. A port usage had been restricted to being typed by a single port definition. It now may be typed by one or more type definitions (including types inherited through subsetting and redefinition).
- Units Notation. The notation
num
[
unit
]
can now be used for quantities with units, rather thannum
@[
unit
]
. The old units notationnum
@[
unit
]
is now deprecated and should no longer be used. - Tensor and Vector Quantities. The Quantities and Units model library has been extensively updated to allow for tensor and vector quantities. The
QuantityValue
attribute definition is now an alias for the most generalTensorQuantityValue
attribute definition, which has specializationsVectorQuantityValue
andScalarQuantityValue
. Similarly,MeasurementReference
is now an alias forTensorMeasurementReference
, which has specializationsVectorMeasurementReference
andScalarMeasurementReference
.MeasurementUnit
specializesScalarMeasurementReference
. - Array. A multi-dimensional
Array
type has been added toCollections
, the Kernel Library model of collection types. This is used as the base type forTensorQauntityValue
andTensorMeasurementValue
.
Backward incompatibilities
- Quantity Values. The definition of
QuantityValue
has been revised to include explicit quantity dimensions relative to a system of units. This effects user models if they define new quantity values. However, for most previous usages of quantities and standard units, user models should be unaffected. - Quantities. The quantity attribute
Quantities::quantity
has been renamedQuantities::quantities
, and it is now an alias fortensorQuantities
. For scalar quantities, useQuantities::scalarQuantities
. - SpeedValue. The quantity definition
VelocityValue
has been renamedSpeedValue
, which is aScalarQuantityValue
, with corresponding quantityspeed
. For vector velocity quantities, use the new quantity definitionCartesian3dVelocityVector
(aVectorQuantityValue
with aCartesian3dVelocityCoordinateSystem
) and corresponding quantityvelocityVector
. (These elements are all available from theISQ
package, re-exported fromISQSpaceTime
.) - Integer Division. The return type of the
IntegerFunctions::'/'
function is nowRational
instead ofInteger
. - Collections. The library packages
NonScalarValues
andNonScalarFunctions
have been renamedCollections
andCollectionFunctions
. - Sampled Functions. The data type
NonScalarValue::SampledFunctionValue
is nowCollections::SampledFunction
. It's definition has also changed, from having two multivalued attributes for domain and range values to a single multivalued attributesamples
, each element of which has adomainValue
and arangeValue
. - Recursive Import. A recursive import (i.e., one using
**
) now excludes elements inherited via generalizations to library types that are implicitly inserted into a user model. This greatly improves the performance of processing a model using recursive imports, while only slightly restricting likely user capability. (Further refinements in this area are under consideration.)
Visualization
- Tom Sawyer
- Implemented the visualization of variations and variants.
- Implemented the visualization of variations and variants.
- PlantUML
- Added a help option to the
%viz
command.%viz -h
now produces a brief description of usage and options.
- Added a help option to the
Bug Fixes
- ISQ Units. Removed certain redundant ISQ unit definitions.
- PlantUML. Fixed a possible stack overflow due to circular import of a definition element.
- Deployment. Fixed build failure when deploying from a release-tagged commit.
- SatisfyRequirementUsage. Fixed the default subsetting for a SatisfyRequirementUsage that is nested in a ItemDefinition/ItemUsage or PartDefinition/PartUsage.
- SourceEnd. Fixed the setting of the SourceEnd of a BindingConnector for the subject of a SatisfyRequirementUsage.
- Circular Import. Fixed a problem with the outline view that could cause the editor to hang if there is a nested circular import.
Technical Improvements
- Implicit Generalization. The code for creating implicit generalizations and computed redefinitions has been moved out of the EMF
Impl
classes into the adapter classes previously created for performing transformations. - Conda Publishing. The Jupyter kernel for SysML is now configured to be published to Conda for each release, pending approval of the conda-forge team.