at:urbiflock
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
at:urbiflock [2008/08/26 19:31] – tvcutsem | at:urbiflock [2008/09/05 11:21] – tvcutsem | ||
---|---|---|---|
Line 12: | Line 12: | ||
==== Modules ==== | ==== Modules ==== | ||
- | * [[uf: | ||
* [[uf: | * [[uf: | ||
* [[uf: | * [[uf: | ||
Line 31: | Line 30: | ||
* nearby friend flockrs: isFriend & isNearby | * nearby friend flockrs: isFriend & isNearby | ||
- | ==== Architecture: ==== | + | ==== Architecture ==== |
- | An ad hoc RETE-network: | + | An ad hoc RETE-network. Events are triggered by: |
- | + | * discovery: | |
- | Events are triggered by: | + | * profile changes: |
- | * discovery: joined(uid, | + | * friend changes: |
- | * profile changes: changed(uid, | + | |
- | * friend changes: friendAdded(uid, | + | |
These events are received by the local flockr user object and propagated to all local proximities. Proximities translate these events into addUser / removeUser events to be processed by flocks. To process these events, flocks register themselves on their dependent proximity. | These events are received by the local flockr user object and propagated to all local proximities. Proximities translate these events into addUser / removeUser events to be processed by flocks. To process these events, flocks register themselves on their dependent proximity. | ||
+ | |||
+ | As a first implementation of the RETE-network, | ||
+ | |||
+ | < | ||
+ | def flockrTemplate := template: { | ||
+ | def name := *; // wildcard, can be anything | ||
+ | def age := constraint: { _ < 25 }; // must be younger than 25 | ||
+ | def address := template: { | ||
+ | def street := *; //any street,but street name must be filled | ||
+ | def city := " | ||
+ | }; | ||
+ | def greet(); // person must have a greet method | ||
+ | } taggedAs: [ Flockr ]; // object must be tagged as a Flockr | ||
+ | </ | ||
==== Applications ==== | ==== Applications ==== | ||
- | * [[uf: | + | * [[uf: |
+ | |||
+ | er to view installed applications, | ||
* [[uf: | * [[uf: | ||
+ | * [[uf: | ||
+ | * [[uf: | ||
* [[uf: | * [[uf: | ||
* [[uf: | * [[uf: | ||
- | ==== TODO ==== | + | ==== To think about ==== |
- | * [[uf: | + | * [[uf: |
+ | |||
+ | | ||
* [[uf: | * [[uf: |
at/urbiflock.txt · Last modified: 2015/02/04 19:06 by elisag