Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9073F9A41 for ; Thu, 23 Feb 2012 17:49:09 +0000 (UTC) Received: (qmail 89051 invoked by uid 500); 23 Feb 2012 17:49:09 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 88938 invoked by uid 500); 23 Feb 2012 17:49:08 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 88927 invoked by uid 99); 23 Feb 2012 17:49:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 17:49:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_IMAGE_ONLY_32,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uimaee@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-ww0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 17:49:00 +0000 Received: by wgbdt13 with SMTP id dt13so1031308wgb.30 for ; Thu, 23 Feb 2012 09:48:40 -0800 (PST) Received-SPF: pass (google.com: domain of uimaee@gmail.com designates 10.180.82.227 as permitted sender) client-ip=10.180.82.227; Authentication-Results: mr.google.com; spf=pass (google.com: domain of uimaee@gmail.com designates 10.180.82.227 as permitted sender) smtp.mail=uimaee@gmail.com; dkim=pass header.i=uimaee@gmail.com Received: from mr.google.com ([10.180.82.227]) by 10.180.82.227 with SMTP id l3mr5087624wiy.1.1330019320208 (num_hops = 1); Thu, 23 Feb 2012 09:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+K/0oOR8KDe7tOpnnLyRYJihsHg+cnGcB80+V0DQp5M=; b=wJhTvAofndJRQiovb57EvHDshuHufKk4/P2BCybeEwr96Wizk9XRC6s26oT+KRUfxe 3rOZcUJW+5Newvk/fwDYyt6FYyz2O5llEOkYE98/3qhwPG85aSwAqXTU6nognJ8iw94j 8zZHSAtIQY6/6vNTt8+BwbXdI64OdbF3bWy6Y= MIME-Version: 1.0 Received: by 10.180.82.227 with SMTP id l3mr4158849wiy.1.1330019320145; Thu, 23 Feb 2012 09:48:40 -0800 (PST) Received: by 10.223.159.142 with HTTP; Thu, 23 Feb 2012 09:48:40 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Feb 2012 12:48:40 -0500 Message-ID: Subject: Re: programmatically setting parameters on CpeCasProcessor objects From: Jaroslaw Cwiklik To: user@uima.apache.org Content-Type: multipart/alternative; boundary=f46d0444040a1f255004b9a541e4 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444040a1f255004b9a541e4 Content-Type: text/plain; charset=ISO-8859-1 Seems like a bug, as a workaround can you try the following: mCPE = UIMAFramework.produceCollectionProcessingEngine(); ConfigurationParameterSettings settings = mCPE.getCollectionReader().getProcessingResourceMetaData().getConfigurationParameterSettings(); You should be able to change param values as needed. Just make that you do this before calling mCPE.process(); Jerry C On Wed, Feb 22, 2012 at 11:28 AM, Joel Dubbels wrote: > I'm trying to launch a collection reader programmatically (from java) and > am able to do the following: > > 1. instantiate a CpeDescription object from a descriptor file > 2. get all the collection readers for that CpeDescription using the > getAllCollectionCollectionReaders() method > 3. for each reader, get the collection iterator using the > getCollectionIterator() method > 4. for each iterator, get a reader descriptor and modify its parameter > values using > iterator.getConfigurationParameterSettings().setParameterValue(String,Object) > > However, when I get the CpeCasProcessors from the CpeDescription object > using the getCpeCasProcessors.getAllCpeCasProcessors() method, I don't see > a way to get at the configuration > parameters for the CpeCasProcessors and modify them. (I try using the > getConfigurationParameterSettings() method and it comes back as null). > > Any help is appreciated. Thanks. > ------------------------------ > *Joel Dubbels* > Senior Software Engineer | Software Group > email: dubbels@us.ibm.com | Tel: 507-253-1165 > ------------------------------ > > --f46d0444040a1f255004b9a541e4--