Nice suggestion. I didn't know you could do that. I'll try it out. Thanks, _______________ Girish Chavan, MSIS Department of Biomedical Informatics (DBMI) University of Pittsburgh
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Adam Lally Sent: Wednesday, July 22, 2009 11:42 AM To: [email protected] Subject: Re: getDelegateAnalysisEngineMetadata returns null On Wed, Jul 22, 2009 at 10:58 AM, Chavan, Girish<[email protected]> wrote: > Thanks for the reply. That did work and I can get the names of all the > delegates. > > The real problem I am trying to solve is to update the configuration params > of the aggregate analysis engine and any of its delegates before it is run. > > With this method I do get the resource specifiers but I am not quite sure how > I am supposed to change the configuration parameter values. > > I was planning to use the ResourceMetaData.setConfigurationParameterSettings > method to do so and that is why I was looking for a way to get to the > AnalysisEngineMetadata of the delegate engines. > > Can someone suggest how I could go about solving my problem? > AnalysisEngineDescription.getDelegateAnalysisEngineSpecifiers() gives you more than just the names. It returns a map whose values are AnalysisEngineDescription objects. From an AnalysisEngineDescription object you can get the AnalysisEngineMetadata. However, I think the best way to allow setting delegate parameters is for your aggregate descriptor to declare parameter overrides. Then you can just set parameter values on the aggregate's parameters and you don't need to mess with the values for individual delegates; they'll be overridden automatically. -Adam
