Overview Schemas Index

GROUP_SCHEMA (jsdai.SGroup_schema)


FUNCTION acyclic_group_relationship
          (relation : group_relationship, relatives : SET [1:?] OF group, specific_relation : STRING) : BOOLEAN;

 LOCAL x : SET OF group_relationship ; END_LOCAL ; IF  relation . relating_group IN  relatives THEN  RETURN  ( FALSE  ) ; END_IF  ; x := QUERY ( grp <* bag_to_set ( USEDIN ( relation . relating_group , 'group_schema.' + 'group_relationship.' + 'related_group' ) ) | specific_relation IN TYPEOF ( grp ) ) ; REPEAT i := 1 TO HIINDEX ( x ) ; IF NOT acyclic_group_relationship ( x [ i ] , relatives + relation . relating_group , specific_relation ) THEN RETURN  ( FALSE ) ; END_IF ; END_REPEAT ; RETURN ( TRUE ) ; 

END_FUNCTION; -- acyclic_group_relationship

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