function getNthComponent input TypeName className; input Integer n; output Expression result; end getNthComponent;