RULE representation_has_references_with_name_moment_3d

(* SCHEMA ship_structures_schema; *)
  RULE representation_has_references_with_name_moment_3d FOR (
             representation, property_definition_representation, 
             applied_classification_assignment);

    LOCAL
      violation : LOGICAL := FALSE;
      t1_set    : SET OF representation := [];
      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 = 'weight and centre of gravity') );
    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;
    REPEAT i := 1 TO HIINDEX(t1_set) BY 1 WHILE NOT violation;
      t2_set := bag_to_set(USEDIN(t1_set[i],'SHIP_STRUCTURES_SCHEMA.' + 
          'PROPERTY_DEFINITION_REPRESENTATION.USED_REPRESENTATION'));
      violation := NOT (SIZEOF(QUERY ( t2_inst <* t2_set | (t2_inst.name =
           'moment 3d') )) = 1);
    END_REPEAT;

  WHERE
    wr1: (NOT violation);

  END_RULE; -- representation_has_references_with_name_moment_3d

[Top Level Definitions] [Exit]

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