otm:the_matching_of_causal_sequences:example1

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
otm:the_matching_of_causal_sequences:example1 [2011/06/27 06:22]
aspectscript
otm:the_matching_of_causal_sequences:example1 [2011/06/27 06:25]
aspectscript
Line 51: Line 51:
 </code> </code>
  
-Finally, the definition and deployment of the entity (**tm**that analyzes the popularity of tweets is:+Finally, the definition and deployment of the **sAspTweetPopularity** stateful aspect that determines the popularity of tweets is:
 <code javascript> <code javascript>
-var tm = {+var sAspTweetPopularity = {
     kind: AFTER,     kind: AFTER,
-    seqExp: countRetweet,+    sequence: countRetweet,
     advice: function(jp, env){     advice: function(jp, env){
         addPopularity(env.idT, env.counter);         addPopularity(env.idT, env.counter);
Line 61: Line 61:
     spawn: newPosts     spawn: newPosts
 }; };
-deploy(tm);+WeCa.OTM.deploy(sAspTweetPopularity);
 </code> </code>
  
 Go [[otm/the_matching_of_causal_sequences|the parent Web page]]. Go [[otm/the_matching_of_causal_sequences|the parent Web page]].
  • otm/the_matching_of_causal_sequences/example1.txt
  • Last modified: 2012/02/06 19:22
  • by aspectscript