|
FUNCTION acyclic_general_property_relationship (relation : general_property_relationship, relatives : SET [1:?] OF general_property, specific_relation : STRING) : BOOLEAN; LOCAL x : SET OF general_property_relationship ; END_LOCAL ; IF relation . relating_property IN relatives THEN RETURN ( FALSE ) ; END_IF ; x := QUERY ( genp <* bag_to_set ( USEDIN ( relation . relating_property , 'product_property_definition_schema.' + 'general_property_relationship.' + 'related_property' ) ) | specific_relation IN TYPEOF ( genp ) ) ; REPEAT i := 1 TO HIINDEX ( x ) ; IF NOT acyclic_general_property_relationship ( x [ i ] , relatives + relation . relating_property , specific_relation ) THEN RETURN ( FALSE ) ; END_IF ; END_REPEAT ; RETURN ( TRUE ) ; END_FUNCTION; -- acyclic_general_property_relationship |
|
public class FAcyclic_general_property_relationship public static Value run(SdaiContext _context, Value relation, Value relatives, Value specific_relation) |