uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Holmberg (JIRA)" <uima-...@incubator.apache.org>
Subject [jira] Commented: (UIMA-25) Implement better support for arrays of Feature Structures
Date Wed, 06 Dec 2006 20:09:22 GMT
    [ http://issues.apache.org/jira/browse/UIMA-25?page=comments#action_12456189 ] 
            
Greg Holmberg commented on UIMA-25:
-----------------------------------

This may not be exactly what Marshall is referring to, but I found it surprising that FSArray
doesn't provide or implement FSIterator.

An FSArrayIterator class would be easy to implement.  Keep an int that indexes the array.
 hasNext() checks if the index is less than the size, next() does an array.get() on the index
and increments it.  And so on.

In general, it would be nice if all the arrays, lists, iterators, etc in UIMA implemented
the standard Java Collection package interfaces.  Even better if UIMA moved to Java 5 and
parameterized its collection classes with the member type (i.e. use generics).

> Implement better support for arrays of Feature Structures
> ---------------------------------------------------------
>
>                 Key: UIMA-25
>                 URL: http://issues.apache.org/jira/browse/UIMA-25
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>
> The code for subsumes treats FSArray special:
>        // Yes, the code below is intentional. Until we actually support real
>         // arrays of some
>         // particular fs,
>         // we have FSArray is the supertype of xxxx[] AND
>         // xxx[] is the supertype of FSArray
>         // (this second relation because all we can generate are instances of
>         // FSArray
>         // and we must be able to assign them to xxx[] )
> This is illogical, and should be fixed somehow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message