Skip to content

Commit c094853

Browse files
committed
ST6RI-914 Added "binaryObject" implied rel target for SuccessionAsUsage.
-- Also for BindingConnectorAsUsage, BindingConnector and Succession.
1 parent a5a602d commit c094853

4 files changed

Lines changed: 44 additions & 4 deletions

File tree

kerml/src/examples/Simple Tests/Connectors.kerml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,27 @@ package Connectors {
1717
end feature references a;
1818
end feature references b;
1919
}
20+
binding ab1 : AS of a = b;
2021

2122
succession a then b;
2223
succession s first a then b;
2324
succession {
2425
end feature references a;
2526
end feature references b;
2627
}
28+
succession s1 : AS first a then b;
29+
2730
}
2831

2932
class B {
30-
feature a : A;
33+
feature a : A;
3134
connector :> a.c1 from a.a to a.b;
3235
}
36+
37+
assoc struct AS {
38+
end a;
39+
end b;
40+
}
41+
42+
3343
}

org.omg.sysml.xpect.tests/src/org/omg/sysml/xpect/tests/simpletests/ConnectionTest.sysml.xt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,21 @@ package ConnectionTest {
5454

5555
connect p1.x to y;
5656
connect p1.x.x1 to y;
57+
58+
part a;
59+
part b;
60+
61+
bind a = b;
62+
binding ab bind a = b;
63+
binding ab1 : AB bind a = b;
64+
65+
first a then b;
66+
succession s first a then b;
67+
succession s1 : AB first a then b;
5768
}
5869

5970
abstract connection def C {
71+
part p;
6072
end end1;
6173
end end2;
6274
end end3;
@@ -77,7 +89,7 @@ package ConnectionTest {
7789

7890
connection {
7991
part q;
80-
end [2] ref end1 ::> d1 :> q;
92+
end ref end1 ::> d1 :> q;
8193
end end2 ::> d2;
8294
}
8395

@@ -92,7 +104,8 @@ package ConnectionTest {
92104
part def B;
93105

94106
connection def AB {
95-
end a : A;
96-
end b : B crosses a.b;
107+
end [1] item a : A;
108+
end b : B;
97109
}
110+
98111
}

org.omg.sysml/src/org/omg/sysml/util/ImplicitGeneralizationMap.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ protected ImplicitGeneralizationMap() {
5959

6060
//checkBindingConnectorSpecialization
6161
put(BindingConnectorImpl.class, "binary", "Links::selfLinks");
62+
put(BindingConnectorImpl.class, "binaryObject", "Links::selfLinks");
6263

6364
//checkBooleanExpressionSpecialization
6465
put(BooleanExpressionImpl.class, "base", "Performances::booleanEvaluations");
@@ -202,6 +203,7 @@ protected ImplicitGeneralizationMap() {
202203

203204
//checkSuccessionSpecialization
204205
put(SuccessionImpl.class, "binary", "Occurrences::happensBeforeLinks");
206+
put(SuccessionImpl.class, "binaryObject", "Occurrences::happensBeforeLinks");
205207

206208
//checkSuccessionSpecialization
207209
put(SuccessionFlowImpl.class, "base", "Transfers::flowTransfersBefore");
@@ -285,6 +287,7 @@ protected ImplicitGeneralizationMap() {
285287
put(BindingConnectorAsUsageImpl.class, "base", "Links::selfLinks");
286288
//checkBindingConnectorSpecialization
287289
put(BindingConnectorAsUsageImpl.class, "binary", "Links::selfLinks");
290+
put(BindingConnectorAsUsageImpl.class, "binaryObject", "Links::selfLinks");
288291

289292
//checkCalculationDefinitionSpecialization
290293
put(CalculationDefinitionImpl.class, "base", "Calculations::Calculation");
@@ -511,6 +514,7 @@ protected ImplicitGeneralizationMap() {
511514
put(SuccessionAsUsageImpl.class, "base", "Occurrences::happensBeforeLinks");
512515
//checkSuccessionSpecialization
513516
put(SuccessionAsUsageImpl.class, "binary", "Occurrences::happensBeforeLinks");
517+
put(SuccessionAsUsageImpl.class, "binaryObject", "Occurrences::happensBeforeLinks");
514518
//checkDecisionNodeOutgoingSuccessionSpecialization
515519
put(SuccessionAsUsageImpl.class, "decision", "ControlPerformances::DecisionPerformance::outgoingHBLink");
516520
//checkMergeNodeIncomingSuccessionSpecialization

sysml/src/examples/Simple Tests/ConnectionTest.sysml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ package ConnectionTest {
1515

1616
connect p1.x to y;
1717
connect p1.x.x1 to y;
18+
19+
part a;
20+
part b;
21+
22+
bind a = b;
23+
binding ab bind a = b;
24+
binding ab1 : AB bind a = b;
25+
26+
first a then b;
27+
succession s first a then b;
28+
succession s1 : AB first a then b;
1829
}
1930

2031
abstract connection def C {
@@ -61,4 +72,6 @@ package ConnectionTest {
6172
}
6273

6374
metadata def M;
75+
76+
6477
}

0 commit comments

Comments
 (0)