You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org> on 2007/03/26 10:09:32 UTC

[jira] Created: (UIMA-360) Add CAS change notifications

Add CAS change notifications
----------------------------

                 Key: UIMA-360
                 URL: https://issues.apache.org/jira/browse/UIMA-360
             Project: UIMA
          Issue Type: New Feature
          Components: Core Java Framework
            Reporter: Jörn Kottmann


Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Created: (UIMA-360) Add CAS change notifications

Posted by Jörn Kottmann <ko...@gmail.com>.
> Add a facility to listen to changes which are made to the CAS.

I need change notifications for the cas editor, so I would
like to restart the discussion about it.

The last comment on this was made by Adam.

Jörn



[jira] Commented: (UIMA-360) Add CAS change notifications

Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503377 ] 

Thilo Goetz commented on UIMA-360:
----------------------------------

Joern, why do you need CAS change notification?  It seems to me the CAS can change in either of two ways: either you run analytics, in which case you know the CAS has likely changed; or the CAS is changed via an explicit edit by the user, in which case you also know that a change has happened.  For performance reasons alone, I would not like to send notification for each and every CAS update.


> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-360) Add CAS change notifications

Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thilo Goetz updated UIMA-360:
-----------------------------

    Reporter: Jörn Kottmann  (was: Jörn Kottmann)

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-360) Add CAS change notifications

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503434 ] 

Adam Lally commented on UIMA-360:
---------------------------------

Change notification may also help if we want to implement "delta" responses from a service -- that is, the service replying only with the changes that it performed, rather than the entire CAS.  This could be a significant performance savings for distributed deployments, where we are currently wasting time serializing and echoing the entire CAS contents.

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-360) Add CAS change notifications

Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504907 ] 

Jörn Kottmann commented on UIMA-360:
------------------------------------

Sure, currently the Cas Editor has very simple cas change notidication, for added, removed and changed annotations. This works
fine if the user is manually modiyfing the cas. If I start an automatic tagger it fails (cause the uima code does not calls my methods to notifiy about a change). 

I think change notifications should belong to the core and not in an ui layer.
There are options to make it fast enough that it does not slows the current code.
We can check a variable which contains a set of listeners against null. 
An other option is to decorate the cas on creation with a change notifcation layer.

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-360) Add CAS change notifications

Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503435 ] 

Thilo Goetz commented on UIMA-360:
----------------------------------

Some of the more basic CAS operations only do a few operations on ints.  Just checking that the list of registered listeners is empty would require more work than the operation itself.

I understand why you need this, but why can't you implement this as part of the control layer?  Have the views not update the CAS directly, but some intermediate layer that is part of the CAS editor.  I think that would work for everybody.  It would give you the notification that you need, and it would keep this kind of UI concern out of the core.

Does that make sense?


> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-360) Add CAS change notifications

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor updated UIMA-360:
--------------------------------

    Affects Version/s: 2.3

I'm marking this as defererred to (at least) 2.3.0; please correct if not right.

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-360) Add CAS change notifications

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743300#action_12743300 ] 

Marshall Schor commented on UIMA-360:
-------------------------------------

The patches on this Jira are for adding the base documentation for the CAS Editor to the main docbooks.  This has been added under UIMA-1360, so these patches should be ignored (and maybe deleted).

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-360) Add CAS change notifications

Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann updated UIMA-360:
-------------------------------

    Attachment: images.zip

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-360) Add CAS change notifications

Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503429 ] 

Jörn Kottmann commented on UIMA-360:
------------------------------------

I need a change notification layer for the cas editor.  The different parts of the ui (editor, outline view, properties view, etc.) only know the model (CAS) and how to display it, if the model is changed the views must be updated. The problem is that the views do not know each other, so they need change notification to know how the model has changed e.g. annotation was removed/added, annotation span was adjusted, etc.

I am not sure why do say this is a performance problem. A client would implement a listener interface and adds/registers
an instance of it. Then the uima code calls the listener if a change occurred. 
Sure this slows the uima code a little bit, but the key point is that it only slows the code if there are registered listeners. 
If there are no registered listeners the code is as fast as without change notifications.

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt, images.zip
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-360) Add CAS change notifications

Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann updated UIMA-360:
-------------------------------

    Attachment: cas editor doc.txt

CAS Editor Documentation patch for the docbook project.

Note: This patch does not include the images. I attach them in a
seperate zip file.

> Add CAS change notifications
> ----------------------------
>
>                 Key: UIMA-360
>                 URL: https://issues.apache.org/jira/browse/UIMA-360
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>         Attachments: cas editor doc.txt
>
>
> Add a facility to listen to changes which are made to the CAS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.