FUNCTION type_check_function
(* SCHEMA Ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf; *)
FUNCTION type_check_function
(the_type: GENERIC; sub_names: SET [0:?] OF STRING; criterion: INTEGER) : LOGICAL;
IF ((NOT EXISTS(the_type)) OR (NOT ({0 <= criterion <= 3})) OR (SIZEOF(sub_names) = 0)) THEN
RETURN (UNKNOWN);
ELSE
CASE criterion OF
0:
RETURN (SIZEOF(sub_names * TYPEOF(the_type)) > 0);
1:
RETURN (SIZEOF(sub_names * TYPEOF(the_type)) = 0);
2:
RETURN (SIZEOF(sub_names * TYPEOF(the_type)) = 1);
3:
RETURN (SIZEOF(sub_names * TYPEOF(the_type)) <= 1);
END_CASE;
END_IF;
END_FUNCTION;
Referenced By
Defintion type_check_function is references by the following definitions:
[Top Level Definitions] [Exit]Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:15:33-04:00