Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 91004 invoked from network); 11 Jul 2007 21:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 21:08:55 -0000 Received: (qmail 40502 invoked by uid 500); 11 Jul 2007 21:08:43 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 40423 invoked by uid 500); 11 Jul 2007 21:08:43 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 40138 invoked by uid 99); 11 Jul 2007 21:08:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 14:08:42 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=DNS_FROM_AHBL_RHSBL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of eaepstein@gmail.com designates 209.85.132.249 as permitted sender) Received: from [209.85.132.249] (HELO an-out-0708.google.com) (209.85.132.249) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 14:08:38 -0700 Received: by an-out-0708.google.com with SMTP id b33so319538ana for ; Wed, 11 Jul 2007 14:08:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LUr7CDKkPyjVvqVlSlQtuuY/kVsPZjUmrQiLs8FLco21xia1ECO3suyarAtckTdjWmhaxUVehDMrXN9lW14z+H5/FneVIYY6aQuAw2ntLjTFSRDret6taYuf6fkL+HXPmb1JgAQLV7abSdLneLmYi7bXjxA/urtuszAfmB4nwGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dqBEMi2T94sirdGmnfEmXN3J6gfuHdbyaA11TXgVv/GZVrIOfp1r5DLUimgMDRv1iYAwIhrJicBaAiuuW8r9+f4fMr/ijsUkdmg/4yTD3G419wNTbQx6tiPy1oa22UEbWUs5fFsxn16nnWwZKPjI9Pe/qfC5t1MfgI/i8EN+sY4= Received: by 10.100.44.13 with SMTP id r13mr3008208anr.1184188097380; Wed, 11 Jul 2007 14:08:17 -0700 (PDT) Received: by 10.100.47.15 with HTTP; Wed, 11 Jul 2007 14:08:17 -0700 (PDT) Message-ID: Date: Wed, 11 Jul 2007 17:08:17 -0400 From: "Eddie Epstein" To: uima-user@incubator.apache.org, kano@is.s.u-tokyo.ac.jp Subject: Re: how to get views list of multi-views In-Reply-To: <2f7f092c0707111115v1eb346e1w75734915c72c9f32@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2f7f092c0707111115v1eb346e1w75734915c72c9f32@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Kano-san, In version 2.1 one would use cas.getSofaIterator() to get an FSIterator for all Sofas in cas, then use cas.getView(sofa) for each Sofa. Version 2.2 has a new API, cas.getViewIterator(), which returns an Iterator for all Views in the cas. Sofa name mapping is static. If the view(s) to be processed need to be determined dynamically, here are two recommended approaches: A. create an FS in the CAS pointing at the desired View(s), and program the annotator to access the view from the FS. B. use a specific name prefix for the Views, and filter the Views based on the prefix (version 2.1) or use the new cas.getViewIterator(prefix) in version 2.2. Regards, Eddie On 7/11/07, KANO, Yoshinobu wrote: > Hi, > > Are there any way to get a list of contained views (or list of > SofaIDs) in a multi-view CAS > from Java codes? > And is it possible to make sofa name mappings at runtime? > For example, before a FlowController launch next AE, can we make and > assign a new name mapping to that AE? > > I read through the document but could not find any information. > > Thank you, > > -Yoshinobu > -- > Yoshinobu KANO > kano@is.s.u-tokyo.ac.jp > Tsujii Laboratory, the University of Tokyo > http://www-tsujii.is.s.u-tokyo.ac.jp/ >