User Tools

Site Tools


contextawaretuples

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
contextawaretuples [2010/10/20 17:10]
cfscholl
contextawaretuples [2010/10/20 17:13]
cfscholl
Line 53: Line 53:
 ==== Context Consumer ==== ==== Context Consumer ====
 Because the context provider specifies the rules in order to read its tuples the code for the context consumer is very easy. Because the context provider specifies the rules in order to read its tuples the code for the context consumer is very easy.
-The context consumer only has to read a tuple of tuple inRoom and register a listener +The context consumer only has to read a tuple of type inRoom and register a listener for when such a tuple is read. In this case the listener will simply print that the user is currently in a particular room. The programmer can also react on the disappearance of a tuple by registering an outOfContext listener. In this case the listener will simply print that the user has move out of the room.
  
 <code> <code>
contextawaretuples.txt ยท Last modified: 2010/10/20 17:48 by cfscholl