User Tools

Site Tools


uf:totam

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
uf:totam [2021/09/24 10:45]
elisag [Tuple's Propagation Protocol]
uf:totam [2021/09/24 10:48]
elisag adding subsections
Line 29: Line 29:
 TOTAM has been implemented in AmbientTalk. The system library shipped with AmbientTalk contains the TOTAM implementation under at/lang/totam.at. TOTAM has been implemented in AmbientTalk. The system library shipped with AmbientTalk contains the TOTAM implementation under at/lang/totam.at.
  
 +==== Creating a tuplespace and tuples ====
  
 In order to use TOTAM, you need to load the library and create a TOTAM tuple space as follows: In order to use TOTAM, you need to load the library and create a TOTAM tuple space as follows:
Line 37: Line 38:
 </code>  </code> 
  
-A description can be passed in the ''makeTupleSpace'' operation in order to activate the scoping mechanism (as we will explain later).  To create a tuple or a template, the tuple operation can be used as follows:+A description can be passed in the ''makeTupleSpace'' operation in order to activate the scoping mechanism (as we will explain later).   
 + 
 +To create a tuple or a template (i.e. a tuple with wildcards or "holes"), the 'tuple:' operation can be used as follows:
 <code>  <code> 
 // a “hallo” message tuple from wolf. // a “hallo” message tuple from wolf.
Line 46: Line 49:
 def msgTuples := tuple: ["Message", var: `from, var: `content]; def msgTuples := tuple: ["Message", var: `from, var: `content];
 </code> </code>
 +
 +
 +==== Adding and Reading Tuples ====
  
 TOTAM provides operations to add and read tuples from the tuple space as follows: TOTAM provides operations to add and read tuples from the tuple space as follows:
uf/totam.txt · Last modified: 2021/09/24 10:49 by elisag