Changes between Version 6 and Version 7 of IpaacaTutorial


Ignore:
Timestamp:
12/10/13 12:02:58 (6 years ago)
Author:
yaghoubzadeh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IpaacaTutorial

    v6 v7  
    4949import time 
    5050 
     51# First we define our IU event handler function 
     52# The arguments are: 
     53#       iu: the IU object 
     54#       event_type: one of ADDED, UPDATED, RETRACTED (for IUs proper) or MESSAGE (for Message-type IUs) 
     55#       own: whether the IU is an objects of this process or a remote object (always False in this example) 
    5156def my_first_iu_handler(iu, event_type, local): 
    52         # event_type is one of ADDED, UPDATED, RETRACTED, MESSAGE 
    5357        if event_type == 'ADDED': 
    5458                # you can also branch iu.category if you have more than one interest for the buffer