Skip to content

Commit be66d9a

Browse files
committed
Merge branch 'SYSML2_-159' into ST6RI-825
2 parents 5ff37e2 + 81bbb1d commit be66d9a

21 files changed

Lines changed: 21503 additions & 20651 deletions

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ XPECT_SETUP org.omg.sysml.xpect.tests.simpletests.SysMLTests
2121
File {from ="/library.systems/Ports.sysml"}
2222
File {from ="/library.systems/Actions.sysml"}
2323
File {from ="/library.systems/Calculations.sysml"}
24+
File {from ="/library.systems/Connections.sysml"}
25+
File {from ="/library.systems/FlowConnections.sysml"}
2426
File {from ="/library.domain/Quantities and Units/Quantities.sysml"}
2527
File {from ="/library.domain/Quantities and Units/MeasurementReferences.sysml"}
2628
File {from ="/library.domain/Quantities and Units/ISQ.sysml"}
@@ -51,6 +53,8 @@ XPECT_SETUP org.omg.sysml.xpect.tests.simpletests.SysMLTests
5153
File {from ="/library.systems/Ports.sysml"}
5254
File {from ="/library.systems/Actions.sysml"}
5355
File {from ="/library.systems/Calculations.sysml"}
56+
File {from ="/library.systems/Connections.sysml"}
57+
File {from ="/library.systems/FlowConnections.sysml"}
5458
File {from ="/library.domain/Quantities and Units/Quantities.sysml"}
5559
File {from ="/library.domain/Quantities and Units/MeasurementReferences.sysml"}
5660
File {from ="/library.domain/Quantities and Units/ISQ.sysml"}
@@ -90,6 +94,19 @@ package ActionTest {
9094
else done;
9195
}
9296

97+
action a2 {
98+
in s : S;
99+
action aa {
100+
out part target;
101+
}
102+
flow aa.target to snd1.receiver;
103+
action snd1 send {
104+
:>> payload = s;
105+
}
106+
action snd2 send via this to aa.target;
107+
bind s = snd2.payload;
108+
}
109+
93110
action b {
94111
attribute f : ScalarValues::Boolean;
95112
ref action a : A;

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

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,40 @@ XPECT_SETUP org.omg.sysml.xpect.tests.simpletests.SysMLTests
33
ResourceSet {
44
ThisFile {}
55
File {from ="/library.kernel/Base.kerml"}
6+
File {from ="/library.kernel/Links.kerml"}
67
File {from ="/library.kernel/Occurrences.kerml"}
78
File {from ="/library.kernel/Objects.kerml"}
9+
File {from ="/library.kernel/Performances.kerml"}
10+
File {from ="/library.kernel/StatePerformances.kerml"}
11+
File {from ="/library.kernel/Transfers.kerml"}
812
File {from ="/library.systems/Attributes.sysml"}
913
File {from ="/library.systems/Items.sysml"}
1014
File {from ="/library.systems/Parts.sysml"}
1115
File {from ="/library.systems/Ports.sysml"}
16+
File {from ="/library.systems/Connections.sysml"}
17+
File {from ="/library.systems/FlowConnections.sysml"}
18+
File {from ="/library.systems/Actions.sysml"}
19+
File {from ="/library.systems/States.sysml"}
1220
}
1321
Workspace {
1422
JavaProject {
1523
SrcFolder {
1624
ThisFile {}
1725
File {from ="/library.kernel/Base.kerml"}
26+
File {from ="/library.kernel/Links.kerml"}
1827
File {from ="/library.kernel/Occurrences.kerml"}
1928
File {from ="/library.kernel/Objects.kerml"}
29+
File {from ="/library.kernel/Performances.kerml"}
30+
File {from ="/library.kernel/StatePerformances.kerml"}
31+
File {from ="/library.kernel/Transfers.kerml"}
2032
File {from ="/library.systems/Attributes.sysml"}
2133
File {from ="/library.systems/Items.sysml"}
2234
File {from ="/library.systems/Parts.sysml"}
2335
File {from ="/library.systems/Ports.sysml"}
36+
File {from ="/library.systems/Connections.sysml"}
37+
File {from ="/library.systems/FlowConnections.sysml"}
38+
File {from ="/library.systems/Actions.sysml"}
39+
File {from ="/library.systems/States.sysml"}
2440
}
2541
}
2642
}
@@ -34,20 +50,41 @@ package PartTest {
3450
public part def A {
3551
part <'1'> b: B;
3652
protected port c: C;
37-
readonly attribute x;
53+
readonly attribute x[0..2];
3854
derived ref attribute y :> x;
55+
ref z;
3956
}
4057

58+
item def S;
59+
4160
abstract part def <xx> B {
4261
public abstract part a: A;
43-
port x: ~C;
62+
public abstract part b subsets a;
63+
public abstract part c subsets a;
64+
port x: ~C {
65+
port p;
66+
ref port q;
67+
}
4468
package P { }
69+
70+
succession flow x.p to a1.aa.receiver;
71+
72+
action a1 {
73+
accept S via x;
74+
action aa accept S;
75+
}
76+
perform action a2;
77+
78+
state s1;
79+
exhibit state s2;
4580
}
4681

4782
private port def C {
4883
private in ref y: A, B;
4984
alias z1 for y;
5085
alias z2 for y;
86+
port c1 : C;
87+
ref port c2 : C;
5188
}
5289

5390
part p1 :> p2;
@@ -56,4 +93,4 @@ package PartTest {
5693

5794
part p4 :> p4;
5895

59-
}
96+
}
192 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)