Changes between Version 4 and Version 5 of Notifications


Ignore:
Timestamp:
Jun 19, 2015, 5:16:04 PM (10 years ago)
Author:
Eric Pettersen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Notifications

    v4 v5  
    1616Again, this will be similar in many ways to Chimera 1.  Changing the color of an Atom will put that Atom in the "modified" set of Atoms and add "color changed" to the list of Atom reasons.  A significant difference from Chimera 1 is that instead of firing individual Atom/Residue/Chain/etc. triggers, one "atomic data" trigger will fire whose associated data is a dictionary that has keys of Atom/Residue/Chain/etc. and values that contain the reasons, the sets of create/modified items, and possibly the set of deleted items.  This eliminates timing issues of which trigger should fire first and eliminates the possibility of changes by trigger handlers "infiltrating" later single-class triggers.  Such changes will instead accumulate into the next firing of the atomic-data trigger.
    1717
     18The atomic-data trigger will fire when no user/tool code is executing, though like Chimera 1's checkForChanges() it will be possible to explicitly force the trigger to fire if needed.
     19
    1820The sets of created/modified items are collections, not lists of individual Python objects.
    1921