Overview Schemas Index

KINEMATIC_STRUCTURE_SCHEMA (jsdai.SKinematic_structure_schema)


FUNCTION sort_link_associations
          (aprr : SET [1:?] OF pair_representation_relationship; one_not_two : BOOLEAN) : SET [0:?] OF kinematic_link_representation;

LOCAL
  result : SET OF kinematic_link_representation := [];
END_LOCAL;
  IF one_not_two THEN
    REPEAT  i := 1 TO  HIINDEX(aprr);
      result := result + aprr[i].rep_1;
    END_REPEAT;
  ELSE  
    REPEAT i := 1 TO HIINDEX(aprr);
      result := result + aprr[i].rep_2;
    END_REPEAT;
  END_IF;
  RETURN(result);

END_FUNCTION; -- sort_link_associations

public class FSort_link_associations
          public static Value run(SdaiContext _context, Value aprr, Value one_not_two)