Skip to content

Commit cf123f0

Browse files
committed
ST6RI-921 Updated examples with validation errors due to previous change
1 parent 9017257 commit cf123f0

7 files changed

Lines changed: 12 additions & 10 deletions

File tree

kerml/src/examples/Simple Tests/Filtering.kerml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ package Filtering {
2323

2424
package UpperLevelApprovals {
2525
private import DesignModel::**;
26-
filter Annotations::ApprovalAnnotation::approved and
27-
Annotations::ApprovalAnnotation::level > 1;
26+
filter (as Annotations::ApprovalAnnotation).approved and
27+
(as Annotations::ApprovalAnnotation).level > 1;
2828

2929
struct Test :> System;
3030
}
3131

3232
package UpperLevelApprovals1 {
3333
private import Annotations::**;
34-
private import DesignModel::**[@Structure][approved and level > 1];
34+
private import DesignModel::**[@Structure]
35+
[(as Annotations::ApprovalAnnotation).approved and
36+
(as Annotations::ApprovalAnnotation).level > 1];
3537

3638
struct Test :> System;
3739
}

sysml/src/examples/Vehicle Example/SysML v2 Spec Annex A SimpleVehicleModel.sysml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ package SimpleVehicleModel{
15361536
package MandatorySafetyGroup {
15371537
/* Parts that contribute to safety AND are mandatory. */
15381538
public import vehicle_b::**;
1539-
filter @Safety and Safety::isMandatory;
1539+
filter (as Safety).isMandatory;
15401540
}
15411541
}
15421542
package Views_Viewpoints{

sysml/src/training/40. Filtering/Filtering Example-1.sysml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ package 'Filtering Example-1' {
3232
package 'Mandatory Safety Features' {
3333
/* Parts that contribute to safety AND are mandatory. */
3434
public import vehicle::**;
35-
filter @Safety and Safety::isMandatory;
35+
filter @Safety and (as Safety).isMandatory;
3636
}
3737
}

sysml/src/training/40. Filtering/Filtering Example-2.sysml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ package 'Filtering Example-2' {
3030

3131
package 'Mandatory Safety Features' {
3232
/* Parts that contribute to safety AND are mandatory. */
33-
public import vehicle::**[@Safety and Safety::isMandatory];
33+
public import vehicle::**[@Safety and (as Safety).isMandatory];
3434
}
3535
}

sysml/src/validation/11-View and Viewpoint/11b-Safety and Security Feature Views.sysml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ package '11b-Safety and Security Feaure Views' {
5454

5555
view vehicleMandatorySafetyFeatureView :> vehicleSafetyFeatureView {
5656
expose vehicle::*::**;
57-
filter Safety::isMandatory;
57+
filter (as Safety).isMandatory;
5858
}
5959

6060
view vehicleMandatorySafetyFeatureViewStandalone {
61-
expose vehicle::**[@Safety and Safety::isMandatory];
61+
expose vehicle::**[(as Safety).isMandatory];
6262
render asElementTable;
6363
}
6464
}

sysml/src/validation/13-Model Containment/13b-Safety and Security Features Element Group-1.sysml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ package '13b-Safety and Security Features Element Group-1' {
5151
package 'Mandatory Safety Features' {
5252
/* Parts that contribute to safety AND are mandatory. */
5353
public import vehicle::**;
54-
filter @Safety and Safety::isMandatory;
54+
filter @Safety and (as Safety).isMandatory;
5555
}
5656
}

sysml/src/validation/13-Model Containment/13b-Safety and Security Features Element Group-2.sysml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ package '13b-Safety and Security Features Element Group-2' {
4747

4848
package 'Mandatory Saftey Features' {
4949
/* Parts that contribute to safety AND are mandatory. */
50-
public import vehicle::**[@Safety and Safety::isMandatory];
50+
public import vehicle::**[@Safety and (as Safety).isMandatory];
5151
}
5252
}

0 commit comments

Comments
 (0)