Overview Schemas Index

Geometric_model_relationship_arm (jsdai.SGeometric_model_relationship_arm)


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, 'FOUNDATION_REPRESENTATION_ARM.' + '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 (TRUE);

END_FUNCTION; -- acyclic_representation_relationship

public class FAcyclic_representation_relationship
          public static Value run(SdaiContext _context, Value relation, Value relatives, Value specific_relation)