FUNCTION using_representations
(* SCHEMA associative_draughting; *)
FUNCTION using_representations(
item: representation_item
): SET OF representation;
LOCAL
results : SET OF representation;
i : INTEGER;
intermediate_items : SET OF representation_item;
result_bag : BAG OF representation;
END_LOCAL;
result_bag := USEDIN(item,
'ASSOCIATIVE_DRAUGHTING.REPRESENTATION.ITEMS');
IF SIZEOF(result_bag) > 0 THEN
REPEAT i := 1 TO HIINDEX(result_bag) BY 1;
results := results + result_bag[i];
END_REPEAT;
END_IF;
intermediate_items := QUERY ( z <* bag_to_set(USEDIN(item,'')) | (
'ASSOCIATIVE_DRAUGHTING.REPRESENTATION_ITEM' IN TYPEOF(z)) );
IF SIZEOF(intermediate_items) > 0 THEN
REPEAT i := 1 TO HIINDEX(intermediate_items) BY 1;
results := results + using_representations(intermediate_items[i]);
END_REPEAT;
END_IF;
RETURN(results);
END_FUNCTION; -- using_representations
Referenced By
Defintion using_representations is references by the following definitions:
[Top Level Definitions] [Exit]Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:14:12-04:00