RULE hull_cross_section_design_definition_for_representation_items

(* SCHEMA ship_structures_schema; *)
  RULE hull_cross_section_design_definition_for_representation_items FOR (
             property_definition_representation, representation);

    LOCAL
      violation : LOGICAL := FALSE;
      reps      : BAG OF representation := [];
    END_LOCAL;
    reps := QUERY ( temp_rep <* representation | (SIZEOF(
        QUERY ( temp_prop_def_rep <* bag_to_set(USEDIN(temp_rep,
        'SHIP_STRUCTURES_SCHEMA.PROPERTY_DEFINITION_REPRESENTATION.' + 
        'USED_REPRESENTATION')) | (temp_prop_def_rep.name = 
        'hull cross section design definition parameters') )) > 0) );
    REPEAT i := 1 TO HIINDEX(reps) BY 1 WHILE NOT violation;
      violation := SIZEOF(reps[i].items) > 1;
    END_REPEAT;

  WHERE
    wr1: (NOT violation);

  END_RULE; -- hull_cross_section_design_definition_for_representation_items

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:17:03-04:00