(* SCHEMA Ship_arrangement_schema; *)
RULE global_axis_placement_has_properties FOR (property_definition_representation, group, applied_classification_assignment );
LOCAL
c_a_set : SET OF applied_classification_assignment := [];
t1_set : LIST OF product_definition := [];
t2_set : SET OF property_definition_representation := [];
t3_set : LIST OF property_definition := [];
t4_set : LIST OF product_definition := [];
violation : LOGICAL := FALSE;
END_LOCAL;
c_a_set := QUERY (i <* applied_classification_assignment| i.assigned_class.NAME = 'global axis placement');
REPEAT i := 1 TO HIINDEX(c_a_set);
REPEAT j := 1 TO HIINDEX(c_a_set[i].items);
t1_set := t1_set + c_a_set[i].items[j];
END_REPEAT;
END_REPEAT;
t2_set := QUERY (i <* property_definition_representation| i.NAME = 'global axis placement');
REPEAT i := 1 TO HIINDEX(t2_set);
t3_set := t3_set + t2_set[i].definition;
END_REPEAT;
REPEAT i := 1 TO HIINDEX(t3_set);
t4_set := t4_set + t3_set[i].definition;
END_REPEAT;
violation := t1_set <> t4_set;
WHERE
WR1:
NOT violation;
END_RULE;
Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:16:37-04:00