Overview Schemas Index

PRINTED_PHYSICAL_LAYOUT_TEMPLATE_XIM (jsdai.SPrinted_physical_layout_template_xim)


FUNCTION acyclic_printed_part_template_material_link
          (relation : printed_part_template_material_link_armx, relatives : SET [1:?] OF template_material_cross_section_boundary_armx, specific_relation : STRING) : BOOLEAN;

LOCAL
     x : SET OF Printed_part_template_material_link_armx := [];
  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_XIM.' +
      'PRINTED_PART_TEMPLATE_MATERIAL_LINK_ARMX.' +
      '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

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