Skip to content

Commit 1735c5d

Browse files
committed
ST6RI-921 Revised some examples to restore type checks in filters.
1 parent 180c0b7 commit 1735c5d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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 (as Safety).isMandatory;
1539+
filter @Safety and (as Safety).isMandatory;
15401540
}
15411541
}
15421542
package Views_Viewpoints{

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 (as Safety).isMandatory;
57+
filter @Safety and (as Safety).isMandatory;
5858
}
5959

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

0 commit comments

Comments
 (0)