Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
research:scope:levels:classpects-loops [2013/04/26 13:21] ifigueroresearch:scope:levels:classpects-loops [2013/04/26 13:23] (current) ifiguero
Line 2: Line 2:
  
 The code for the Activity classspect that provokes an aspect loop is: The code for the Activity classspect that provokes an aspect loop is:
 +
 +<code>
 +using System;
 +using Eos.Runtime;
 +
 +public class ActivityAspect
 +{
 +    
 +    public object LogActivity(Eos.Runtime.AroundADP adp, Point p)
 + {
 +       object result = null;
 +       Console.WriteLine("Loop");  
 +       Console.WriteLine("execution on point " + p.ToString()) ;
 +       result = adp.InnerInvoke();       
 +       return result;
 + }
 +
 +
 + static object around execution(any any(..)) || initialization(any(..)) 
 +              && !within(ActivityAspect) && aroundptr(adp) && target(p): 
 +              call LogActivity(Eos.Runtime.AroundADP adp, Point p);
 +}
 +</code>
 +