Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
otm:the_matching_of_causal_sequences:example1 [2011/02/14 16:03] aspectscript |
otm:the_matching_of_causal_sequences:example1 [2012/02/06 23:22] (current) aspectscript |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | A kind of W2As are social network applications like [[http:// | + | ====== Analyzing Tweet Popularity ====== |
- | of a //tweet// (a publication of a small post) in Twitter. | + | |
- | {{ : | + | The following example shows two independent Web applications that constitute a social network application. A user can publish a tweet and this tweet can be retweeted by the other user because both users follow each other. A OTM distributed stateful aspect observes |
- | + | ||
- | The analysis of popularity of user tweets is a novel topic in Twitter. This analysis allows a user to know the popularity of every tweet published by him, which is measured by the number of // | + | |
- | + | ||
- | The following example shows two independent Web applications that constitute a social network application. A user can publish a tweet and this tweet can be retweeted by the other user because both users follow each other. A repeated tweet (the same string) | + | |
< | < | ||
Line 56: | Line 51: | ||
</ | </ | ||
- | Finally, the definition and deployment of the entity (**tm**) that analyzes | + | Finally, the definition and deployment of the **sAspTweetPopularity** stateful aspect |
<code javascript> | <code javascript> | ||
- | var tm = { | + | var sAspTweetPopularity |
kind: AFTER, | kind: AFTER, | ||
- | | + | |
advice: function(jp, | advice: function(jp, | ||
addPopularity(env.idT, | addPopularity(env.idT, | ||
Line 66: | Line 61: | ||
spawn: newPosts | spawn: newPosts | ||
}; | }; | ||
- | deploy(tm); | + | WeCa.OTM.deploy(sAspTweetPopularity); |
</ | </ | ||
Go [[otm/ | Go [[otm/ |