Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
213 commits
Select commit Hold shift + click to select a range
10e0db5
KERML-204 Added examples to use for discussion of portion modeling.
seidewitz Nov 8, 2023
51fa8ec
Update PortionModeling.kerml
vincemolnar Nov 15, 2023
ba5ce8c
KERML-204 Updated PortionModeling::C4 per Semantic WG discussion.
seidewitz Nov 15, 2023
f77ed66
KERML-204 Added PortionModeling2.kerml, with another approach.
seidewitz Nov 17, 2023
12353ee
Added eg of occ features in PortionModelingCarDriver.kerml
conradbock Nov 19, 2023
a55dc1f
Added snapshot classes to align inverse occ features.
conradbock Nov 20, 2023
b86893a
Typing timeslices/snapshots by "top" class".
conradbock Nov 22, 2023
77bfb0c
CC1->CC2 in CC2 and added some doc
conradbock Nov 22, 2023
53e02b2
Typing timeslices by feature domains
conradbock Nov 27, 2023
7fd28a0
Corrections, fewers thats.
conradbock Nov 28, 2023
1f0a324
Added comments from discussion.
conradbock Nov 30, 2023
1eb03a9
Added C4that, replaces portionOf with that
conradbock Nov 30, 2023
50acd6e
Aligning snaps w/o snap classes
conradbock Dec 9, 2023
5d9bf8f
CarDriver chonological
conradbock Dec 9, 2023
32cdaf4
Simplified "333" examples from previous version.
conradbock Dec 10, 2023
faa6410
Added/cleanup comments on CC2.
conradbock Dec 12, 2023
8203c94
Merge branch 'master' into KERML-204
seidewitz Dec 13, 2023
87a275b
Corrected type mismatches in some features typing features.
conradbock Dec 13, 2023
cbefd49
Added comments on CC2 from call.
conradbock Dec 14, 2023
f4ad893
Correction to CC2::x
conradbock Dec 14, 2023
d274f98
Trying featured by snapshots (see "FB" versions)
conradbock Dec 15, 2023
beb96a5
Behavior feature examples
conradbock Dec 26, 2023
5533342
Added examples relating snapshots/timeslices to steps.
conradbock Jan 3, 2024
7aa9566
Added comments on featured-by examples.
conradbock Jan 3, 2024
c367aad
Merge branch 'KERML-204' into KERML_-57
seidewitz Aug 19, 2024
55ecfda
KERML_-57 Added additional examples on time varying features and steps.
seidewitz Aug 20, 2024
a826e28
Added ExtendedOccurrence to prototype moments
vincemolnar Aug 28, 2024
cafd9af
Extended time varying features and experimented with variable bindings
vincemolnar Aug 28, 2024
3c0a516
Moments, etc, from slides, corrected.
conradbock Aug 29, 2024
8d92aed
Fixed some errors in varying feature example and extended occurrence …
vincemolnar Aug 29, 2024
ec7ed36
Added Period (timeslices of UniversalEternity).
conradbock Aug 29, 2024
7aa1b2b
Corrected coincidentPortion.
conradbock Aug 29, 2024
91f4965
KERML_-57 Added VariableFeatureMembership to abstract syntax metamodel.
seidewitz Aug 30, 2024
b0bff71
KERML_-57 Added textual notation for variable features to KerML grammar.
seidewitz Aug 30, 2024
b30dfc8
KERML_-57 Prototyped adding implicit featuring types for var features.
seidewitz Aug 30, 2024
61af235
KERML_-57 Added SuccessionAsUsageAdapter.
seidewitz Aug 30, 2024
db2fe32
Switched to 'var' notation, prototyped 'activePerformaces' in Extende…
vincemolnar Sep 4, 2024
515db3d
Merge branch 'master' into KERML_-57
seidewitz Sep 6, 2024
00b417f
KERML_-57 Added visibility to imports in Portion Examples.
seidewitz Sep 6, 2024
fc458bf
KERML_-57 Added Feature::isVariable, removed VariableFeatureMembership.
seidewitz Sep 6, 2024
6ce744a
KERML_-57 Separated TimeVaryingCarDriver model into separate file.
seidewitz Sep 11, 2024
aa8f8df
KERML_-57 Updated outline tree provider to show "var" variable features.
seidewitz Sep 11, 2024
36d1a3f
KERML_-57 Temporarily named features added in implied type featuring.
seidewitz Sep 11, 2024
74043b7
KERML_-57 Regenerated org.omg.sysml.edit project.
seidewitz Sep 15, 2024
99f6109
Merge release 2024-09 into KERML_-57
seidewitz Nov 28, 2024
08de542
ST6RI-815 Updated metamodel for KERML_-57 and SYSML2_-158.
seidewitz Jan 18, 2025
393dca0
ST6RI-815 Updated grammars for isReadOnly to isConstant change.
seidewitz Jan 18, 2025
966f123
ST6RI-815 Fixed SysMLBinaryRelationTest and SysMLImpliedRelationsTest.
seidewitz Jan 18, 2025
c33b0d3
Merge branch 'KERML_-57' into ST6RI-815-1
seidewitz Jan 24, 2025
367ebbc
ST6RI-815 Renamed KerML Portion Examples to Variable Feature Examples.
seidewitz Jan 19, 2025
abc8399
KERML_-57 Updated Feature and Connector adapter functionality.
seidewitz Jan 20, 2025
77cfca1
KERML_-57 Allowed variable features to connect to non-variable features.
seidewitz Jan 22, 2025
537f825
ST6RI-815 Updated Xpect Kernel library models.
seidewitz Jan 24, 2025
1780b5b
ST6RI-815 Revised handling of subsetted variable features.
seidewitz Jan 27, 2025
a4d3e12
ST6RI-178 Updated project versioning capability
TheKorpos Feb 12, 2025
36eae48
Merge branch 'master' into ST6RI-815
seidewitz Feb 12, 2025
3858341
KERML_-57 Simplified featuring types for variable features.
seidewitz Feb 13, 2025
9318d4d
KERML_-57 Made certain features variable in Clocks and Occurrences.
seidewitz Feb 13, 2025
a1ecd7c
Initial commit of quantities_lib_generator tool on SysML-v2-Pilot-Imp…
hpdekoning Feb 15, 2025
d4f54a2
Updated iso_iec_80000_references.py to used set of ISO/IEC 80000 edit…
hpdekoning Feb 15, 2025
1611aae
Added README.adoc with basic usage info
hpdekoning Feb 15, 2025
b51dcb2
Added output of final test run to reproduce SysML release 2024-12 lib…
hpdekoning Feb 15, 2025
b26b78b
Added generated_output_reference_release-2024-12 folder with referenc…
hpdekoning Feb 15, 2025
8136464
Renamed output and reference folders to libs_generated and libs_basel…
hpdekoning Feb 15, 2025
00644ca
SYSML2_-510 Changed the name of Usage::isTimeVarying to mayTimeVary.
seidewitz Feb 17, 2025
6d05df3
SYSML2_-510 Implemented the derivation for Usage::mayTimeVary.
seidewitz Feb 17, 2025
b536d6f
SYSML2_-510 Updated Cause and Effect library model CausationConnections.
seidewitz Feb 18, 2025
7bfb09a
SYSML2_-510 Added implicit featuring typing to variant usages.
seidewitz Feb 18, 2025
c2a6afb
KERML_-57 Revised FeatureUtil.isAccessibleFrom using isFeaturedWithin.
seidewitz Feb 18, 2025
14c90d5
SYSML_-510 Cached Usage::mayTimeVary to improve efficiency.
seidewitz Feb 18, 2025
ffdf014
ST6RI-815 Regnerated the libary index.
seidewitz Feb 19, 2025
09a120d
ST6RI-178 WIP - pushing incremental changes
TheKorpos Feb 18, 2025
af9dfb1
ST6RI-178 Cleaned up imports and simplified class name
TheKorpos Feb 24, 2025
fe8ecfd
ST6RI-178 Added workarounds to fix upload/download in Jupyter
TheKorpos Feb 25, 2025
5f37567
ST6RI-178 Added missing change to fix CI build
TheKorpos Feb 26, 2025
4a4449e
ST6RI-178 Added basic branching capability
TheKorpos Mar 5, 2025
0acae02
Merge branch 'ST6RI-828' into ST6RI-815
seidewitz Mar 5, 2025
00832fb
KERML_-75 Implemented delegates for isCompatibleWith and canAccess opns.
seidewitz Mar 5, 2025
6e61024
ST6RI-178 Added missing javadoc
TheKorpos Mar 7, 2025
e6ef364
ST6RI-178 Added model load from branches to Eclipse
TheKorpos Mar 7, 2025
2279fac
ST6RI-815 Renamed TypeUtil::conforms to "specializes".
seidewitz Mar 6, 2025
b6630a1
KERML_-57 Added new constraints per the resolution.
seidewitz Mar 6, 2025
ce856e5
SYSML2_-510 Restored SuccessionAsUsage as always referential.
seidewitz Mar 6, 2025
d138acf
KERML_-57 Corrected validation checks introduced in the resolution.
seidewitz Mar 7, 2025
0000d61
ST6RI-815 Updated Xpect tests.
seidewitz Mar 7, 2025
f09c0f2
Merge branch 'master' into ST6RI-815
seidewitz Mar 7, 2025
5f0b46c
SYSML2_-510 Made usages constant if they are time varying end features.
seidewitz Mar 8, 2025
2c7efac
KERML_-57 Added Xpect tests.
seidewitz Mar 8, 2025
7ccc36a
ST6RI-815 Fixed implicit redefinition for view rendering usages.
seidewitz Mar 8, 2025
97bade2
ST6RI-815 Updated simple ConnectionTest.
seidewitz Mar 9, 2025
bc53c31
ST6RI-815 Used hash maps for distinguishibility check for performance.
seidewitz Mar 9, 2025
511ac91
KERML_-57 Updated Arrowhead Framework Example model AHFSequences.
seidewitz Mar 10, 2025
f356fa6
Merge branch 'ST6RI-682' into ST6RI-178
TheKorpos Mar 10, 2025
e4ab324
ST6RI-815 Regenerated keywords for syntax highlighting.
seidewitz Mar 10, 2025
f39fbda
ST6RI-178 Added description to KerMLRepositorySave util args
TheKorpos Mar 10, 2025
def88e4
KERML_-57/SYSML2_-510 Updated reflective model generation per resolution
seidewitz Mar 10, 2025
00df604
ST6RI-815 Revised adding implicit redefinition in PayloadFeatureAdapter.
seidewitz Mar 11, 2025
8cadb3a
KERML_-132 Limited when result parameters are physically added.
seidewitz Feb 12, 2025
2bc6fe5
KERML_-132/SYSML2_-766 Implemented delegates for instantiation exprs.
seidewitz Mar 10, 2025
e17c9e6
KERML_-132 Implemented semantic constraints for invocation/constructor
seidewitz Mar 11, 2025
ba51dff
KERML_-132 Added constructor notation to expressions grammar.
seidewitz Feb 25, 2025
79ec8a6
KERML_-132 Corrected computing value bindings and operand mechanism.
seidewitz Mar 11, 2025
64068f1
KERML_-132/SYSML2_-766 Updated libs/examples for constructor notation.
seidewitz Feb 25, 2025
b12c67c
KERML_-132 Added validation checks.
seidewitz Mar 12, 2025
4cfdf54
KERML_-132 Corrected computing redefs for constructor result features.
seidewitz Mar 12, 2025
2b84db1
KERML_-132 Updated "type" parameter for metacast and type check fns.
seidewitz Mar 12, 2025
e022f7e
KERML_-132 Allowed constructor expressions to be model-level evaluable.
seidewitz Mar 12, 2025
9fee455
SYSML2_-766 Updated SysML examples for constructor notation.
seidewitz Mar 12, 2025
eb3e26d
KERML_-132 Used InstantiationExpression for computing non-expr namespace
seidewitz Mar 12, 2025
859d4ba
ST6RI-818 Updated KerML and SysML Xpect tests.
seidewitz Mar 12, 2025
f669790
ST6RI-818 Revised ExpressionEvaluator to get instantiatedType.
seidewitz Mar 12, 2025
d1eb8f7
ST6RI-831 Changed "item flow" to flow in some comments and names.
seidewitz Mar 12, 2025
63dc08b
KERML_-107 Updated Kernel Semantic Library for item flow name change.
seidewitz Mar 12, 2025
e598b03
SYSML2_-417 Replace library model FlowConnections model with Flows.
seidewitz Mar 12, 2025
16bd9ae
SYSML2_-417 Updated SysML Xpect tests.
seidewitz Mar 12, 2025
b85da98
SYSML2_-417 Updated the semantic tests.
seidewitz Mar 12, 2025
7f17d48
SYSML2_-417 Change FlowConnection to Flow in validations check names.
seidewitz Mar 12, 2025
0759b0f
KERML_-107, SYSML2_-417 Updated production names in Xtext grammars.
seidewitz Mar 12, 2025
f020c1c
SYSML2_-158 Implemented semantic/validation constraints per resolution.
seidewitz Mar 12, 2025
7c45184
Updated README.adoc with instructions to install module openpyxl and …
hpdekoning Mar 12, 2025
3c67c21
SYSML2_-158 Updated SysML grammar for new individuals abstract syntax.
seidewitz Mar 12, 2025
dd99df3
SYSML2_-158 Updated SysML examples on individuals/snapshots/timeslices.
seidewitz Mar 12, 2025
1a1bc40
Merge pull request #621 from Systems-Modeling/ST6RI-606
seidewitz Mar 13, 2025
84db848
SYSML2_-158 Updated SysML Xpect tests related to individuals/portions.
seidewitz Mar 13, 2025
8782b34
ST6RI-824 Regenerated model library index.
seidewitz Mar 13, 2025
3fa7f0f
Fix - removed obsolete data query sources from iso_iec_80000_quantiti…
hpdekoning Mar 13, 2025
7d67084
Updated proper column width in Sources worksheet in iso_iec_80000_qua…
hpdekoning Mar 13, 2025
b12feee
Fixed quantities_lib_generator to produce ISQ libraries that correctl…
hpdekoning Mar 13, 2025
afe2d8e
Removed readonly from attribute universalCartesianSpatial3dCoordinate…
hpdekoning Mar 13, 2025
2c9307b
Merge pull request #634 from Systems-Modeling/ST6RI-606
seidewitz Mar 13, 2025
1f25f83
Merge branch 'master' into ST6RI-834
seidewitz Mar 13, 2025
471129b
ST6RI-834 Updated Quantities and Units Library w/newly generated models.
seidewitz Mar 13, 2025
58f8a0e
ST6RI-834 Updated .meta.json and .project.json files for std model libs.
seidewitz Mar 13, 2025
2ecea07
ST6RI-830 Added global name qualifier to the KerMLExpression grammar
TheKorpos Mar 14, 2025
d807f93
ST6RI-830 Re-generated xtext infrastructure for kerml and kerml
TheKorpos Mar 14, 2025
9e0cc17
ST6RI-830 Increased the number of split parsers to fit in the byte limit
TheKorpos Mar 14, 2025
c15a0d7
ST6RI-830 Re-generated sysml xtext infrastructure
TheKorpos Mar 14, 2025
7876769
ST6RI-830 Added resolution for global qualification
TheKorpos Mar 14, 2025
e9bcf65
ST6RI-830 Added xpect tests for global qualification
TheKorpos Mar 14, 2025
6991a4f
Merge remote-tracking branch 'origin/master' into ST6RI-830
TheKorpos Mar 14, 2025
14ecae5
ST6RI-178 Fixed erroneous root elements
TheKorpos Mar 14, 2025
f27f22e
ST6RI-829 Implemented the path() operation Element and subclasses.
seidewitz Mar 14, 2025
d37a245
ST6RI-829 Implemented stable IDs for all standard library elements.
seidewitz Mar 14, 2025
a9a818b
ST6RI-829 Updated qualifiedName derivation per resolution to KERML_-36.
seidewitz Mar 15, 2025
8367828
ST6RI-830 Updated global qualification Xpect tests.
seidewitz Mar 16, 2025
0b84200
ST6RI-830 Updated to use a specific global scope symbol marker string.
seidewitz Mar 16, 2025
cd8c061
ST6RI-824 Committed missing Xpect test for PortionUsage.
seidewitz Mar 16, 2025
38a0ebb
ST6RI-823 Updates help text repository commands
ujhelyiz Mar 18, 2025
2cc5447
ST6RI-178 Fixed non-stanrad library download in Jupyter
TheKorpos Mar 20, 2025
10fa86f
ST6RI-178 Updated Jupyter %publish not to upload derived fields by
TheKorpos Mar 20, 2025
c042d65
ST6RI-830 Revised QualifiedNameUtil to abstract global scoping impl.
seidewitz Mar 22, 2025
8d6e13e
ST6RI-830 Added simple test for Scoping, including global scoping.
seidewitz Mar 22, 2025
2a6d146
Merge pull request #635 from Systems-Modeling/ST6RI-830
seidewitz Mar 22, 2025
57402a0
Merge pull request #636 from Systems-Modeling/ST6RI-829
seidewitz Mar 22, 2025
6e4cb8a
ST6RI-815 Made minor editorial corrections.
seidewitz Mar 25, 2025
798f141
Merge pull request #637 from Systems-Modeling/ST6RI-815
seidewitz Mar 25, 2025
a0a626a
ST6RI-818 Corrected comments in State-based Behavior validation models.
seidewitz Mar 26, 2025
574b6c2
ST6RI-818 Removed adding of result param for calcs and constraints.
seidewitz Mar 27, 2025
a8a7d2f
Merge pull request #638 from Systems-Modeling/ST6RI-818
seidewitz Mar 27, 2025
5be9a71
Merge pull request #639 from Systems-Modeling/ST6RI-831
seidewitz Mar 28, 2025
3661b25
Merge pull request #640 from Systems-Modeling/ST6RI-824
seidewitz Mar 28, 2025
9b7abbf
Merge pull request #641 from Systems-Modeling/ST6RI-834
seidewitz Mar 28, 2025
83c0a0d
Adds missing generated parser code
ujhelyiz Mar 29, 2025
fe93687
Updated max heap size to 10g in Gen SyML Lang Infrastructure launcher.
seidewitz Apr 21, 2025
7af297f
Merge branch 'ST6RI-682' into ST6RI-178
TheKorpos Apr 24, 2025
99b2f62
ST6RI-178 Fixed non-standard library upload and some typos
TheKorpos Apr 25, 2025
1d4668c
ST6RI-178 Overrode hasCode for LocalReference class
TheKorpos Apr 25, 2025
15d4715
Renamed training "flow connection" examples to "flow".
seidewitz Apr 28, 2025
b65a823
Updated to version 0.49.0.
seidewitz Apr 29, 2025
7c4a6fc
SYSML2_-262 Updated control node syntax with full action bodies.
seidewitz Apr 29, 2025
ab7d35e
ST6RI-839 Updated syntax highlighting with "new" keyword.
seidewitz Apr 30, 2025
c365ffb
Merge pull request #643 from Systems-Modeling/ST6RI-839
seidewitz Apr 30, 2025
b1d5b81
ST6RI-840 Added model-level evaluation test for constructor expressions.
seidewitz Apr 30, 2025
a405a74
ST6RI-840 Updated ModelLevelEvaluator for constructor expressions.
seidewitz Apr 30, 2025
4164bed
ST6RI-840 Fixed recording visited elements for feature ref expr eval.
seidewitz Apr 30, 2025
750ebb3
Merge pull request #645 from Systems-Modeling/ST6RI-840
seidewitz May 1, 2025
33d60a4
Merge pull request #642 from Systems-Modeling/ST6RI-838
seidewitz May 2, 2025
a0f8c62
* SysML2PlantUMLStyle (appendVariation): Do not render <<variation>>
himi May 3, 2025
8d7efe3
Merge pull request #646 from Systems-Modeling/ST6RI-837
seidewitz May 4, 2025
6029184
* Visitor, SysML2PlantUMLStyle (isReferred): Added.
himi May 5, 2025
93249d2
* VDefault (isEmptySubject): Moved from VCompartment.
himi May 5, 2025
045e1af
Merge branch 'ST6RI-682' into ST6RI-178
TheKorpos May 5, 2025
d232884
* VMixed (process): Do not use the target element itself as a
himi May 5, 2025
a11b968
* VDefault (addShorthandRelation): If the target of the relation does
himi May 6, 2025
e86b617
* SysML2PlantUMLText, Visitor (toBeRendered): Added
himi May 7, 2025
4b08946
Added a comment
himi May 7, 2025
e09a1dd
* SysML2PlantUMLStyle.StyleStereotypeDefaultSwitch (caseEventOccurren…
himi May 7, 2025
03c4054
ST6RI-841 Added Boolean return type to isCompatibleWith.
seidewitz May 8, 2025
7ea383a
* Visitor (getSpecialReference): Added, which relaces
himi May 8, 2025
3f021fe
* SysML2PlantUMLStyle (StyleRelDefaultSwitch): Use solid arrows for
himi May 9, 2025
9ef400e
* SysML2PlantUMLStyle (StyleStereotypeDefaultSwitch): Bug fix.
himi May 9, 2025
fff3626
Merge pull request #648 from Systems-Modeling/ST6RI-841
seidewitz May 9, 2025
3f310b6
Support the shorthand notation for AssertConstraintUsage as well.
himi May 9, 2025
949e4ff
* VStructure, VDefault: (caseSatisfyRequirementUsage): Refactored it
himi May 9, 2025
14f1d77
Merge pull request #647 from Systems-Modeling/ST6RI-842
seidewitz May 11, 2025
131f3ab
Merge branch 'master' into ST6RI-178
seidewitz May 11, 2025
94738d0
ST6RI-178 Revised help messages for %load, %projects and %publish.
seidewitz May 12, 2025
9a7f29e
ST6RI-178 Owner derived feature is always included in the uploaded model
TheKorpos May 12, 2025
0a4d336
ST6RI-178 Removed timestamp from project name and minor correction in
TheKorpos May 13, 2025
c5cf3cd
ST6RI-178 Added error message for missing branches in load command
TheKorpos May 13, 2025
16b95d6
ST6RI-178 Changed messages of SysMLRepositoryLoadUtil to match more with
TheKorpos May 13, 2025
b945136
ST6RI-178 isLibraryElement derived feature is always included in the
TheKorpos May 14, 2025
7a9da0d
ST6RI-849 Initialize Github Actions based build
ujhelyiz May 15, 2025
97c6ead
Merge remote-tracking branch 'origin/master' into ST6RI-178
TheKorpos May 15, 2025
bf1bfea
ST6RI-178 Revert unplanned line ending changes to ease review
ujhelyiz May 15, 2025
7a7312f
ST6RI-178 Added alphabetic ordering of projects listed by %projects
TheKorpos May 15, 2025
032af54
ST6RI-178 Reworked project load interface in SysMLInteractive
TheKorpos May 16, 2025
957cfe8
ST6RI-178 Added --branchid to %load magic command
TheKorpos May 16, 2025
c602522
ST6RI-178 Added %projects and %load to SysMLInteractive::run().
seidewitz May 18, 2025
67e7173
ST6RI-178 Revised load(RemoteBranch) to not use the "next" method.
seidewitz May 18, 2025
6fa6377
ST6RI-178 Fixed root namespace insertion in model loading
TheKorpos May 19, 2025
d73ece4
ST6RI-178 Added base path and branch ID to messages for %load.
seidewitz May 19, 2025
dd437c3
ST6RI-178 Updated EMFModelDelta to use root element name for file name,
seidewitz May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: '**'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw -B clean verify --file pom.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'
include_passed: true
- name: Verify index generation
run: echo $(git diff -- sysml.library/.index.json) | grep -e '^$' || (echo "Library index in the git repository is not up to date. Please re-generate it and push changes to the repository."; exit 1)
- name: Publish to Github Packages
if: github.event_name != 'pull_request'
run: ./mvnw -B deploy -DskipTests=true
env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ package ChangingFeatureValuesModelToBeExecuted {
}

struct Product {
feature isPainted : Boolean [1] := false;
feature isDry : Boolean [1] := true;
feature isShipped : Boolean [1] := false;
var feature isPainted : Boolean [1] := false;
var feature isDry : Boolean [1] := true;
var feature isShipped : Boolean [1] := false;
}

behavior Paint {
Expand Down Expand Up @@ -80,9 +80,9 @@ package ChangingFeatureValuesExecution {
private import FeatureReferencingPerformances::FeatureWritePerformance;

struct ProductTimeSlice specializes Product {
readonly feature redefines isPainted;
readonly feature redefines isDry;
readonly feature redefines isShipped;
feature redefines isPainted;
feature redefines isDry;
feature redefines isShipped;
}

#atom
Expand Down
2 changes: 1 addition & 1 deletion kerml/src/examples/Simple Tests/ArgumentResolution.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package ArgumentResolutionBug {

behavior B {
in feature x;
out feature : A = A(x);
out feature : A = new A(x);
}

class C {
Expand Down
7 changes: 6 additions & 1 deletion kerml/src/examples/Simple Tests/Behaviors.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ package Behaviors {
}
behavior B specializes A {
in x1;
out y1;
out var y1;
}
class C {
var z = A().y;
step a : A;
binding z = a.y;
}
}
4 changes: 2 additions & 2 deletions kerml/src/examples/Simple Tests/Expressions.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ package Expressions {
bb : Boolean = f.s(1);

class C {
count : ScalarValues::Integer := 0;
var count : ScalarValues::Integer := 0;
}

feature obj1 : C;
Expand All @@ -70,6 +70,6 @@ package Expressions {
feature count : ScalarValues::Integer = c#(1).count;
}

feature l = L();
feature l = new L();
feature w1 = w(xx);
}
24 changes: 15 additions & 9 deletions kerml/src/examples/Simple Tests/Features.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,24 @@ package Features {
feature guardian[1];
}

classifier RegisteredAsset {
composite readonly feature identifier[0..1];
}

classifier Vehicle :> RegisteredAsset {
derived feature vin[1] = identifier;
}

class RegisteredAsset {
composite var feature identifier[0..1];
}

classifier Vehicle :> RegisteredAsset {
derived var feature vin[1] = identifier;

var feature v : Vehicle;
binding vin = v.vin;
var feature w = v.vin;

feature x = vin;
binding x = vin;
}
feature legalIdentification;

specialization Redef redefinition LegalRecord::guardian redefines parent;
specialization redefinition Vehicle::vin redefines RegisteredAsset::identifier;
specialization redefinition Vehicle::vin redefines RegisteredAsset::identifier;

redefinition Vehicle::vin redefines legalIdentification;
}
40 changes: 40 additions & 0 deletions kerml/src/examples/Simple Tests/Scoping.kerml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package Scoping {
package P1 {
class A {
feature f;
}
package P2 {
class A {
feature g;
}
package P3 {
class B :> A {
feature :>> g;
}
}
}
package Objects {
class Object {
feature test1;
}
}
package '$' {
class Objects {
class Object {
feature test2;
}
}
}
package P4 {
class C :> Objects::Object {
feature :>> test1;
}
class D :> '$'::Objects::Object {
feature :>> test2;
}
class E :> $::Objects::Object {
feature :>> subobjects;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package ExtendedOccurrences {
class Interval;
class Moment :> Interval;
class Timeslice {
feature interval : Interval;
:>> self : Timeslice;
}
class Snapshot :> Timeslice {
feature moment :>> interval : Moment;
:>> self : Snapshot;
}
class Life :> Timeslice;
class ExtendedOccurrence :> Life {
:>> timeSlices : Timeslice [1..*];
:>> snapshots :> timeSlices : Snapshot [1..*];
expr at {
:>> that : Timeslice;
in interval : Interval;
return result : Timeslice;

binding result.portionOf = that;
binding result.interval = interval;
}

expr while {
in timeslice : Timeslice;
return result : Timeslice = at(timeslice.interval);
}

var feature activeOccurrences :> Occurrences::occurrences {
connector : Occurrences::HappensDuring from [1] that to [1] self;
}

var feature activeSuboccurrences :> Occurrences::occurrences {
connector : Occurrences::HappensDuring from [1] that to [1] self;
}

// occurrences and performances are abstract package-level features.
// It would be nice to put the variable next to them, but they cannot
// be package-level, or featured by Anything. Nevertheless, since
// Occurrence is a specialization of Anything, it will have these
// features (might be worth redefining them explicitly), so the
// variables can subset them. In the case below, performances will
// contain every step in the occurrence, which is the correct domain
// for the variable.
var feature activePerformances :> Performances::performances {
connector : Occurrences::HappensDuring from [1] that to [1] self;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package Moments {
private import Occurrences::Life;
private import Occurrences::Occurrence;

class Eternity specializes Life {
// Nothing before/after or outside.
// Could be many of these, see universal below.
redefines predecessors [0];
redefines successors [0];
redefines outsideOfOccurrences [0];
}

class UniversalEternity [1] specializes Eternity {
redefines timeSlices: Period; //Includes life.
redefines snapshots : Moment;
}

feature universalEternity : UniversalEternity [1];

class Period { //Includes life and snapshots.
//↓↓ With UE redef, exactly UE timeslices.
redefines timeSliceOf : UniversalEternity [1];
}

class all InstantOccurrence specializes Occurrence {
// Probly useful elsewhere, eg, to type snapshots.
redefines snapshots [1]; // Or startShot subsets endShot;
} // Or middleTimeslice [0];

class Moment specializes Period, InstantOccurrence {
//↓↓ With UE redef, exactly UE snapshots.
redefines snapshotOf : UniversalEternity [1]; }

private import Occurrence::spaceTimeCoincidentOccurrences;
//UE portion "corresponding" to an occurrence.
feature coincidentUEPortion : Occurrence [1] subsets spaceTimeCoincidentOccurrences,
universalEternity.portions
featured by Occurrence;
}
Loading