|
FUNCTION get_assemblies (input : assembly_component_armx) : SET [0:?] OF product_view_definition; LOCAL acr : SET OF assembly_component_usage := input . occurrence_contexts ; pvd : SET OF product_view_definition := [ ] ; END_LOCAL ; REPEAT i := 1 TO HIINDEX ( acr ) BY 1 ; IF NOT ( 'layered_interconnect_module_design_xim.' + 'structured_layout_component_armx' IN TYPEOF ( acr [ i ] \ product_definition_relationship . relating_product_definition ) ) THEN pvd := pvd + acr [ i ] \ product_definition_relationship . relating_product_definition ; ELSE pvd := pvd + get_assemblies ( acr [ i ] \ product_definition_relationship . relating_product_definition ) ; END_IF ; END_REPEAT ; RETURN ( pvd ) ; END_FUNCTION; -- get_assemblies |
|
public class FGet_assemblies public static Value run(SdaiContext _context, Value input) |