|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lights.adapters.tspaces.TupleSpaceAdapter
Implements the functionality described for
lights.adapters.TupleSpace
using TSpaces.
TupleSpace
,
TSpaces Web pageFields inherited from interface lights.interfaces.ITupleSpace |
DEFAULT_NAME |
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. |
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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getName()
ITupleSpace
getName
in interface ITupleSpace
public void out(ITuple tuple) throws TupleSpaceException
ITupleSpace
out
in interface ITupleSpace
lights.interfaces.ITupleSpace
tuple
- The tuple to be inserted.TupleSpaceException
- if an error occurs in the implementation.public void outg(ITuple[] tuples) throws TupleSpaceException
ITupleSpace
outg
in interface ITupleSpace
lights.interfaces.ITupleSpace
tuples
- An array containing the tuples to be inserted.TupleSpaceException
- if an error occurs in the
implementation.public ITuple in(ITuple template) throws TupleSpaceException
ITupleSpace
in
in interface ITupleSpace
lights.interfaces.ITupleSpace
template
- the template used for matching.TupleSpaceException
- if an error in the implementation.public ITuple inp(ITuple template) throws TupleSpaceException
ITupleSpace
null
is returned. Note how
different implementations may specify different policies for the
selection of the tuple returned among multiple matches.inp
in interface ITupleSpace
lights.interfaces.ITupleSpace
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
ITupleSpace
null
is returned.ing
in interface ITupleSpace
lights.interfaces.ITupleSpace
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
ITupleSpace
rd
in interface ITupleSpace
lights.interfaces.ITupleSpace
template
- the template used for matching.TupleSpaceException
- if an error in the implementation.public ITuple rdp(ITuple template) throws TupleSpaceException
ITupleSpace
null
is returned. Note how
different implementations may specify different policies for the
selection of the tuple returned among multiple matches.rdp
in interface ITupleSpace
lights.interfaces.ITupleSpace
template
- the template used for matching.TupleSpaceException
- if an error in the implementation.public ITuple[] rdg(ITuple template) throws TupleSpaceException
ITupleSpace
null
is returned.\rdg
in interface ITupleSpace
lights.interfaces.ITupleSpace
template
- the template used for matching.TupleSpaceException
- if an error in the implementation.public int count(ITuple template) throws TupleSpaceException
ITupleSpace
count
in interface ITupleSpace
lights.interfaces.ITupleSpace
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 |