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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] Tsujii Laboratory, the University of Tokyo http://www-tsujii.is.s.u-tokyo.ac.jp/
