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 defandoccurrence. - 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 defandindividualdefault toindividual occurrence defandindividual 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
timesliceandsnapshotnotations 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
timesliceorsnapshotusage 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
timesliceorsnapshotusage with a type that is an individual definition implicitly represents a time slice or snapshot of the defined individual. To make atimesliceorsnapshotdeclaration explicitly an individual usage, the notationsindividual timesliceandindividual snapshotcan be used.
- The
- Event occurrences. A notation has been added for event occurrences.
- The notation
event occurrencename;represents an identified suboccurrence of a containing occurrence. That is, it is equivalent toref occurrencename:> suboccurrences;. - The notation
eventqualifedName;declares an event occurrence by reference to an occurrence usage owned elsewhere. It is equivalent toref occurrence:>qualifiedName:> suboccurrences;. - The
event occurrencenotation can be considered a generalization ofperform actionandexhibit state. However, unlikeperformandexhibit, the referentialeventnotation does not take its effective name from the occurrence usage it references. This is because it is expected thateventwill commonly be used to reference thesourceandtargetof 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
sourceOutputandtargetInputfeatures.- Messages are notated as special kinds of connectors:
messagenameofFlowTypefromsourcetotarget;. ThenameandFlowTypeare 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
impliesoperator has been add for logical implication. Note that this is a conditional operator: the expressionximpliesyis equivalent tonotxoryor!x||y. That is, ifxevaluates to false, thenyis not evaluated and the implication results in true. - Conditional. A new syntax
iftest?xelseyhas been introduced as an alternative for the conditional expressiontest?x:y.
Library Models
- State space representation. The
StateSpaceRepresentationpackage in the Analysis Domain Library has been updated to use vector quantities. - Feature access and control performances. A new
FeatureAccessPerformancespackage has been added to the Kernel Library, and theControlPerformancespackage 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
andand&&have the same precedence as&, andorand||have the same precedence as|. The precedence ofimpliesis lower than the or operators. - Transfer ends. The ends of a
Transferhave been renamed fromtransferSource/transferTargettosource/target. This means that the ends of a named message can be referenced asmessageName::sourceandmessageName::target(e.g., when used with theeventnotation).
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.