FUNCTION acyclic_representation_relationship

(* SCHEMA step_merged_ap_schema; *)
-- DIFF IN AP203e2
-- DIFF IN AP238 STEP-NC
-- IN AP203e2/AP238 STEP-NC/AP242
FUNCTION acyclic_representation_relationship
      (relation : representation_relationship;
       relatives : SET [1:?] OF representation;
       specific_relation : STRING ) : BOOLEAN;
   LOCAL
      x : SET OF representation_relationship;
   END_LOCAL;
      IF relation.rep_1 IN relatives THEN
         RETURN (FALSE);
      END_IF;
      x := QUERY (r <* bag_to_set(USEDIN(relation.rep_1, 'STEP_MERGED_AP_SCHEMA.REPRESENTATION_RELATIONSHIP.REP_2'))| specific_relation IN TYPEOF(r));
      REPEAT i := 1 TO HIINDEX(x);
         IF NOT acyclic_representation_relationship(x[i], (relatives + relation.rep_1), specific_relation) THEN
            RETURN (FALSE);
         END_IF;
      END_REPEAT;
      RETURN (FALSE);
END_FUNCTION;

Referenced By

Defintion acyclic_representation_relationship is references by the following definitions:
DefinitionType
 definitional_representation_relationship ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00