Skip to content

Commit 1cc766e

Browse files
committed
Merge remote-tracking branch 'origin/master' into ST6RI-682
2 parents 0da922a + c3f455e commit 1cc766e

397 files changed

Lines changed: 173373 additions & 155075 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

kerml/src/examples/Behavior Examples/TakePicture.kerml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ behavior TakePicture {
1111
step step1: Focus[1];
1212
step step2: Shoot[1];
1313

14-
succession flow exposure[1] from step1.xrsl to step2.xsf;
14+
succession flow exposure[1] of Exposure from step1.xrsl to step2.xsf;
1515

1616
succession step1 then camera.focusedState;
1717
succession step2 then camera.shotState;

kerml/src/examples/KerML Spec Annex A Examples/A-3-5-TimingForStructures.kerml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ package TimingForStructuresExecution2 {
6262
private import Atoms::*;
6363
private import TimingForStructuresModelToBeExecuted2::*;
6464
private import Occurrences::HappensDuring;
65-
private import OneToOneConnectorsExecution::MyWheel1;
66-
private import OneToOneConnectorsExecution::MyWheel2;
6765
private import OneToOneConnectorsExecution::MyWheel;
68-
private import OneToOneConnectorsExecution::MyBikeFork1;
69-
private import OneToOneConnectorsExecution::MyBikeFork2;
7066
private import OneToOneConnectorsExecution::MyBikeFork;
67+
68+
struct MyWheel1 specializes OneToOneConnectorsExecution::MyWheel1;
69+
struct MyWheel2 specializes OneToOneConnectorsExecution::MyWheel2;
70+
struct MyBikeFork1 specializes OneToOneConnectorsExecution::MyBikeFork1;
71+
struct MyBikeFork2 specializes OneToOneConnectorsExecution::MyBikeFork2;
7172

7273
#atom
7374
assoc MyBike_During_Wheel1_Link specializes HappensDuring {

kerml/src/examples/Simple Tests/Expressions.kerml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ package Expressions {
2121
behavior w { inout v : Integer;
2222
step : ControlPerformances::LoopPerformance {
2323
in expr whileTest {v > 3}
24-
in expr untilTest;
2524
in step body {
2625
step decrement {
2726
out v_decr : Integer = v - 1;
2827
}
2928
succession decrement then update;
3029
step update : FeatureReferencingPerformances::FeatureWritePerformance {
31-
in redefines onOccurrence = w::self {
30+
in onOccurrence = w::self {
3231
feature redefines startingAt : w {
3332
inout feature redefines accessedFeature redefines v;
3433
}
Binary file not shown.

org.omg.kerml.expressions.xtext/src-gen/org/omg/kerml/expressions/xtext/parser/antlr/internal/InternalKerMLExpressions.g

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,15 +1832,18 @@ ruleMetadataReference returns [EObject current=null]
18321832
(
18331833
(
18341834
{
1835-
if ($current==null) {
1836-
$current = createModelElement(grammarAccess.getMetadataReferenceRule());
1837-
}
1838-
}
1839-
{
1840-
newCompositeNode(grammarAccess.getMetadataReferenceAccess().getReferencedElementElementCrossReference_0());
1835+
newCompositeNode(grammarAccess.getMetadataReferenceAccess().getOwnedRelationshipElementReferenceMemberParserRuleCall_0());
18411836
}
1842-
ruleQualifiedName
1837+
lv_ownedRelationship_0_0=ruleElementReferenceMember
18431838
{
1839+
if ($current==null) {
1840+
$current = createModelElementForParent(grammarAccess.getMetadataReferenceRule());
1841+
}
1842+
add(
1843+
$current,
1844+
"ownedRelationship",
1845+
lv_ownedRelationship_0_0,
1846+
"org.omg.kerml.expressions.xtext.KerMLExpressions.ElementReferenceMember");
18441847
afterParserOrEnumRuleCall();
18451848
}
18461849
)
@@ -3792,15 +3795,18 @@ ruleMetadataAccessExpression returns [EObject current=null]
37923795
(
37933796
(
37943797
{
3795-
if ($current==null) {
3796-
$current = createModelElement(grammarAccess.getMetadataAccessExpressionRule());
3797-
}
3798-
}
3799-
{
3800-
newCompositeNode(grammarAccess.getMetadataAccessExpressionAccess().getReferencedElementElementCrossReference_0_0());
3798+
newCompositeNode(grammarAccess.getMetadataAccessExpressionAccess().getOwnedRelationshipElementReferenceMemberParserRuleCall_0_0());
38013799
}
3802-
ruleQualifiedName
3800+
lv_ownedRelationship_0_0=ruleElementReferenceMember
38033801
{
3802+
if ($current==null) {
3803+
$current = createModelElementForParent(grammarAccess.getMetadataAccessExpressionRule());
3804+
}
3805+
add(
3806+
$current,
3807+
"ownedRelationship",
3808+
lv_ownedRelationship_0_0,
3809+
"org.omg.kerml.expressions.xtext.KerMLExpressions.ElementReferenceMember");
38043810
afterParserOrEnumRuleCall();
38053811
}
38063812
)
@@ -3816,6 +3822,39 @@ ruleMetadataAccessExpression returns [EObject current=null]
38163822
)
38173823
;
38183824

3825+
// Entry rule entryRuleElementReferenceMember
3826+
entryRuleElementReferenceMember returns [EObject current=null]:
3827+
{ newCompositeNode(grammarAccess.getElementReferenceMemberRule()); }
3828+
iv_ruleElementReferenceMember=ruleElementReferenceMember
3829+
{ $current=$iv_ruleElementReferenceMember.current; }
3830+
EOF;
3831+
3832+
// Rule ElementReferenceMember
3833+
ruleElementReferenceMember returns [EObject current=null]
3834+
@init {
3835+
enterRule();
3836+
}
3837+
@after {
3838+
leaveRule();
3839+
}:
3840+
(
3841+
(
3842+
{
3843+
if ($current==null) {
3844+
$current = createModelElement(grammarAccess.getElementReferenceMemberRule());
3845+
}
3846+
}
3847+
{
3848+
newCompositeNode(grammarAccess.getElementReferenceMemberAccess().getMemberElementElementCrossReference_0());
3849+
}
3850+
ruleQualifiedName
3851+
{
3852+
afterParserOrEnumRuleCall();
3853+
}
3854+
)
3855+
)
3856+
;
3857+
38193858
// Entry rule entryRuleInvocationExpression
38203859
entryRuleInvocationExpression returns [EObject current=null]:
38213860
{ newCompositeNode(grammarAccess.getInvocationExpressionRule()); }

0 commit comments

Comments
 (0)