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.
-
TupleSpace()
- Constructor.
-
in(Tuple)
- Performs the in linda operation.
-
in(Tuple[], int)
- Performs the in linda operation on a tuple array.
-
inRead(Tuple[], int, boolean, boolean)
- Really performs in and read operationsm both blocking
and non-blocking from a tuple array.
-
in_nb(Tuple)
- Performs the non-blocking in linda operation.
-
in_nb(Tuple[], int)
- Performs the non-blocking in linda operation on a tuple array.
-
out(Tuple)
- Performs the out linda operation.
-
out(Tuple[], int)
- Performs the out linda operation on a tuple array.
-
print()
- Prints the tuple space contents to System.out.
-
read(Tuple)
- Performs the read linda operation.
-
read(Tuple[], int)
- Performs the read linda operation on a tuple array.
-
read_nb(Tuple)
- Performs the non-blocking read linda operation.
-
read_nb(Tuple[], int)
- Performs the non-blocking read linda operation on a tuple array.
-
reset()
- Resets the tuple space (by deleting its contents)
TupleSpace
public TupleSpace()
- Constructor. Builds an empty tuple space.
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.
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.
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.
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.
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
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
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.
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.
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
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
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
reset
public synchronized void reset()
- Resets the tuple space (by deleting its contents)
print
public synchronized void print()
- Prints the tuple space contents to System.out.
All Packages Class Hierarchy This Package Previous Next Index