FUNCTION acyclic_printed_part_template_material_link
(relation : Printed_part_template_material_link; relatives : SET [1:?] OF Template_material_cross_section_boundary; specific_relation : STRING) : BOOLEAN;
LOCAL x : SET OF Printed_part_template_material_link := []; END_LOCAL;
IF relation.precedent_material IN relatives THEN RETURN (FALSE); END_IF; x := QUERY(pd <* bag_to_set(USEDIN(relation.precedent_material, 'PRINTED_PHYSICAL_LAYOUT_TEMPLATE_ARM.' + 'PRINTED_PART_TEMPLATE_MATERIAL_LINK.' + 'SUBSEQUENT_MATERIAL')) | specific_relation IN TYPEOF(pd)); REPEAT i := 1 TO HIINDEX(x); IF NOT acyclic_printed_part_template_material_link(x[i], relatives + relation.precedent_material, specific_relation) THEN RETURN (FALSE); END_IF; END_REPEAT; RETURN (TRUE); END_FUNCTION; -- acyclic_printed_part_template_material_link
|