Class jada.tuple.TupleSpace
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jada.tuple.TupleSpace

java.lang.Object
   |
   +----jada.tuple.TupleSpace

public class TupleSpace
extends Object
Tuple Space class. The usual Linda operations are methods of this class.

Constructor Index

 o TupleSpace()
Constructor.

Method Index

 o in(Tuple)
Performs the in linda operation.
 o in(Tuple[], int)
Performs the in linda operation on a tuple array.
 o inRead(Tuple[], int, boolean, boolean)
Really performs in and read operationsm both blocking and non-blocking from a tuple array.
 o in_nb(Tuple)
Performs the non-blocking in linda operation.
 o in_nb(Tuple[], int)
Performs the non-blocking in linda operation on a tuple array.
 o out(Tuple)
Performs the out linda operation.
 o out(Tuple[], int)
Performs the out linda operation on a tuple array.
 o print()
Prints the tuple space contents to System.out.
 o read(Tuple)
Performs the read linda operation.
 o read(Tuple[], int)
Performs the read linda operation on a tuple array.
 o read_nb(Tuple)
Performs the non-blocking read linda operation.
 o read_nb(Tuple[], int)
Performs the non-blocking read linda operation on a tuple array.
 o reset()
Resets the tuple space (by deleting its contents)

Constructors

 o TupleSpace
  public TupleSpace()
Constructor. Builds an empty tuple space.

Methods

 o out
  public synchronized void out(Tuple item)
Performs the out linda operation. Puts the item item into the tuple space. You should use actual tuples here but no check is performed for performance reasons.
 o out
  public synchronized void out(Tuple tuples[],
                               int n_tuples)
Performs the out linda operation on a tuple array. Puts n_tuples from the array tuples into the tuple space.
 o read_nb
  public Tuple read_nb(Tuple match)
Performs the non-blocking read linda operation. Returns the tuple (if it exists) that matches the match tuple in the tuple space. If the tuple does not exist returns null.
 o read_nb
  public Tuple read_nb(Tuple match[],
                       int n_tuples)
Performs the non-blocking read linda operation on a tuple array. Returns the tuple (if it exists) that matches one item of the match tuple array in the tuple space. If the tuple does not exist returns null.
 o read
  public Tuple read(Tuple match)
Performs the read linda operation. Returns the tuple that matches the match tuple. This method does not return until such a tuple is available
 o read
  public Tuple read(Tuple match[],
                    int n_tuples)
Performs the read linda operation on a tuple array. Returns the tuple that matches one item of the match tuple array. This method does not return until such a tuple is available
 o in_nb
  public Tuple in_nb(Tuple match)
Performs the non-blocking in linda operation. Returns the tuple (if it exists) that matches the match tuple from the tuple space. If the tuples does not exists returns null.
 o in_nb
  public Tuple in_nb(Tuple match[],
                     int n_tuples)
Performs the non-blocking in linda operation on a tuple array. Returns the tuple (if it exists) that matches one item of the match tuple array in the tuple space. If the tuple does not exist returns null.
 o in
  public Tuple in(Tuple match)
Performs the in linda operation. Returns the tuple that matches the match tuple. This method does not return until such a tuple is available
 o in
  public Tuple in(Tuple match[],
                  int n_tuples)
Performs the in linda operation on a tuple array. Returns the tuple that matches one of the items of the match tuple. This method does not return until such a tuple is available
 o inRead
  public synchronized Tuple inRead(Tuple match[],
                                   int n_tuples,
                                   boolean remove,
                                   boolean blocking)
Really performs in and read operationsm both blocking and non-blocking from a tuple array. The blocking, non-blocking, in and read methods of this class are just wrappers for this method
 o reset
  public synchronized void reset()
Resets the tuple space (by deleting its contents)
 o print
  public synchronized void print()
Prints the tuple space contents to System.out.

All Packages  Class Hierarchy  This Package  Previous  Next  Index