(* SCHEMA ship_structures_schema; *)
RULE revision_with_context_referenced_for_context_of_revision FOR (
applied_group_assignment, group);
LOCAL
violate : LOGICAL := FALSE;
t1_set : SET OF group := [];
a_set : SET OF applied_group_assignment := [];
END_LOCAL;
t1_set := QUERY ( a <* group | VALUE_IN(which_class(a),
'revision with context') );
REPEAT i := 1 TO HIINDEX(t1_set) BY 1 WHILE NOT violate;
a_set := QUERY ( b <* applied_group_assignment | ((b.assigned_group
= t1_set[i]) AND (b.role.name = 'context of revision')) );
violate := SIZEOF(a_set) <> 1;
END_REPEAT;
WHERE
wr1: (NOT violate);
END_RULE; -- revision_with_context_referenced_for_context_of_revision
Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:17:03-04:00