FUNCTION acyclic_linear_array_placement_group_component_link
(relation : linear_array_placement_group_component_link, relatives : SET [1:?] OF linear_array_placement_group_component_armx, specific_relation : STRING) : BOOLEAN;
LOCAL x : SET OF Linear_array_placement_group_component_link; END_LOCAL;
IF relation.precedent_element IN relatives THEN RETURN (FALSE); END_IF; x := QUERY(pd <* bag_to_set(USEDIN(relation.precedent_element, 'COMPONENT_GROUPING_XIM.' + 'LINEAR_ARRAY_PLACEMENT_GROUP_COMPONENT_LINK.' + 'SUBSEQUENT_ELEMENT')) | specific_relation IN TYPEOF(pd)); REPEAT i := 1 TO HIINDEX(x); IF NOT acyclic_linear_array_placement_group_component_link(x[i], relatives + relation.precedent_element, specific_relation) THEN RETURN (FALSE); END_IF; END_REPEAT; RETURN (TRUE); END_FUNCTION; -- acyclic_linear_array_placement_group_component_link
|