(* SCHEMA ship_structures_schema; *)
RULE lightship_definition_has_properties FOR (product_definition,
property_definition, property_definition_representation,
applied_classification_assignment);
LOCAL
t3_set : SET OF property_definition := [];
violation : LOGICAL := FALSE;
t4_set : SET OF product_definition := [];
t1_set : SET OF product_definition := [];
c_a_set : SET OF applied_classification_assignment := [];
t2_set : SET OF property_definition_representation := [];
END_LOCAL;
c_a_set := QUERY ( i <* applied_classification_assignment | (i.
assigned_class.name = 'lightship_definition') );
REPEAT i := 1 TO HIINDEX(c_a_set) BY 1;
REPEAT j := 1 TO HIINDEX(c_a_set[i].items) BY 1;
t1_set := t1_set + c_a_set[i].items[j];
END_REPEAT;
END_REPEAT;
t2_set := QUERY ( i <* property_definition_representation | (i.name =
'lightship_definition') );
REPEAT i := 1 TO HIINDEX(t2_set) BY 1;
t3_set := t3_set + t2_set[i].definition;
END_REPEAT;
REPEAT i := 1 TO HIINDEX(t3_set) BY 1;
t4_set := t4_set + t3_set[i].definition;
END_REPEAT;
violation := t1_set <> t4_set;
WHERE
wr1: (NOT violation);
END_RULE; -- lightship_definition_has_properties
Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:17:03-04:00