examples:example5

Differences

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

Link to this comparison view

Next revision
Previous revision
examples:example5 [2009/10/16 22:22]
aspectscript created
examples:example5 [2009/11/06 20:43] (current)
aspectscript
Line 1: Line 1:
 +====== Identifying New Kinds of Events ======
 +
 In Facebook, a user can interact with applications, events, messages, and many other elements. When a user interacts with one of these elements, a description is added to the user wall (i.e. a single page overview of recent user activity). Wall reporting is clearly a crosscutting concern; it can be modularized using an aspect. In Facebook, a user can interact with applications, events, messages, and many other elements. When a user interacts with one of these elements, a description is added to the user wall (i.e. a single page overview of recent user activity). Wall reporting is clearly a crosscutting concern; it can be modularized using an aspect.
  
-However, specifying the appropriate pointcut is not straightforward. The standard approach is to define it as the union of all calls (or executions) of the functions "corresponding to" interactions of the user with Facebook elements. Nevertheless, this does not always work. For instance, when the user adds an already-added application, the change is discarded. Defining a pointcut that matches when an  application is {\em effectivelyadded is not straightforward. For these kinds of cases, AspectScript provides custom join points as in Ptolemy, whose underlying idea is to trade obliviousness for precision and abstraction.+However, specifying the appropriate pointcut is not straightforward. The standard approach is to define it as the union of all calls (or executions) of the functions "corresponding to" interactions of the user with Facebook elements. Nevertheless, this does not always work. For instance, when the user adds an already-added application, the change is discarded. Defining a pointcut that matches when an  application is //effectively// added is not straightforward. For these kinds of cases, AspectScript provides custom join points as in Ptolemy, whose underlying idea is to trade obliviousness for precision and abstraction.
  
 The implementation follows: The implementation follows:
 +
  
 <html> <html>
-    <iframe src="/aspectscript/external/aspectscript/paperExamples/example5" width="800" height="300"></iframe>+<link href="/aspectscript/external/aspectscript/paperExamples/style.css" rel="stylesheet" type="text/css"/> 
 +  <script type="text/javascript" language="javascript" src="/aspectscript/external/aspectscript/paperExamples/lib.js"> </script> 
 +   <iframe id="example" src="/aspectscript/external/aspectscript/paperExamples/example5" width="810" height="370"></iframe>     
 +    <iframe id="code" style="display:none" src="/aspectscript/external/aspectscript/paperExamples/example5/script.js" width="810" height="370"></iframe> 
 +   <a id="button" class="button" onclick="toggle('code','example')"> <span>Toggle between the code and example </span></a>
 </html> </html>
  
  • examples/example5.1255731769.txt.gz
  • Last modified: 2009/10/16 22:22
  • by aspectscript