|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines the operations available on a tuple space. The traditional
operations provided by Linda, namely the insertion of a tuple with
out and pattern matching with the blocking operations
in and rd, are supported. In addition, the
following features are provided:
inp and
rdp;
outg, ing,
rdg, that allow to write and retrieve multiple tuples at
once;
count operation returning the number of tuples matching
a given template;
| Field Summary | |
static java.lang.String |
DEFAULT_NAME
The default name of a tuple space. |
| Method Summary | |
int |
count(ITuple template)
Returns a count of the tuples found in the tuple space that match the template. |
java.lang.String |
getName()
Returns the name of the tuple space. |
ITuple |
in(ITuple template)
Withdraws from the tuple space a tuple matching the template specified; if no tuple is found, the caller is suspended until such a tuple shows up in the tuple space. |
ITuple[] |
ing(ITuple template)
Withdraws from the tuple space all the tuple matching the template specified. |
ITuple |
inp(ITuple template)
Withdraws from the tuple space a tuple matching the template specified; if no tuple is found, null is returned. |
void |
out(ITuple tuple)
Inserts a tuple in the tuple space. |
void |
outg(ITuple[] tuples)
Inserts multiple tuples in the tuple space. |
ITuple |
rd(ITuple template)
Reads from the tuple space a copy of a tuple matching the template specified. |
ITuple[] |
rdg(ITuple template)
Reads from the tuple space a copy of all the tuples matching the template specified. |
ITuple |
rdp(ITuple template)
Reads from the tuple space a copy of a tuple matching the template specified. |
| Field Detail |
public static final java.lang.String DEFAULT_NAME
| Method Detail |
public java.lang.String getName()
public void out(ITuple tuple)
throws TupleSpaceException
tuple - The tuple to be inserted.TupleSpaceException - if an error occurs in the implementation.
public void outg(ITuple[] tuples)
throws TupleSpaceException
tuples - An array containing the tuples to be inserted.TupleSpaceException - if an error occurs in the
implementation.
public ITuple in(ITuple template)
throws TupleSpaceException
template - the template used for matching.TupleSpaceException - if an error in the implementation.
public ITuple inp(ITuple template)
throws TupleSpaceException
null is returned. Note how
different implementations may specify different policies for the
selection of the tuple returned among multiple matches.template - the template used for matching.null if none is
found.TupleSpaceException - if an error in the implementation.
public ITuple[] ing(ITuple template)
throws TupleSpaceException
null is returned.template - the template used for matching.null if none is
found.TupleSpaceException - if an error in the implementation.
public ITuple rd(ITuple template)
throws TupleSpaceException
template - the template used for matching.TupleSpaceException - if an error in the implementation.
public ITuple rdp(ITuple template)
throws TupleSpaceException
null is returned. Note how
different implementations may specify different policies for the
selection of the tuple returned among multiple matches.template - the template used for matching.TupleSpaceException - if an error in the implementation.
public ITuple[] rdg(ITuple template)
throws TupleSpaceException
null is returned.\template - the template used for matching.TupleSpaceException - if an error in the implementation.
public int count(ITuple template)
throws TupleSpaceException
template - the template used for matching.TupleSpaceException - if an error in the implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||