|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lights.adapters.tspaces.TupleAdapter
Implements the functionality described for
lights.adapters.Tuple
using TSpaces.
Tuple
,
TSpaces Web page, Serialized FormConstructor Summary | |
TupleAdapter()
|
|
TupleAdapter(com.ibm.tspaces.Tuple tuple)
|
Method Summary | |
ITuple |
add(IField field)
Adds a field at the end of the tuple. |
ITuple |
addActual(java.io.Serializable obj)
Adds an actual field, whose value is the given object, at the end of the tuple. |
ITuple |
addFormal(java.lang.Class classObj)
Adds a formal field, whose type is the given class, at the end of the tuple. |
IField |
get(int index)
Returns the field at position index . |
IField[] |
getFields()
Returns all the fields in this tuple. |
ITuple |
insertAt(IField field,
int index)
Inserts the given field at position index . |
int |
length()
Returns the number of fields in the tuple. |
boolean |
matches(ITuple tuple)
Determines the rule used for pattern matching between tuples. |
ITuple |
removeAt(int index)
Removes the field at position index . |
ITuple |
set(IField field,
int index)
Replaces the field at position index with the given one. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TupleAdapter()
public TupleAdapter(com.ibm.tspaces.Tuple tuple)
Method Detail |
public ITuple add(IField field)
ITuple
add
in interface ITuple
lights.interfaces.ITuple
public ITuple addActual(java.io.Serializable obj)
ITuple
addActual
in interface ITuple
lights.interfaces.ITuple
public ITuple addFormal(java.lang.Class classObj)
ITuple
addFormal
in interface ITuple
lights.interfaces.ITuple
public ITuple set(IField field, int index)
ITuple
index
with the given one.set
in interface ITuple
lights.interfaces.ITuple
public IField get(int index)
ITuple
index
.get
in interface ITuple
public ITuple insertAt(IField field, int index)
ITuple
index
. All the fields
whose position is greater than index
are shifted downwards,
i.e., their index is increased by one.insertAt
in interface ITuple
lights.interfaces.ITuple
public ITuple removeAt(int index)
ITuple
index
. The fields whose
position is greater than index
are shifted upwards, i.e.,
their index is decreased by one.removeAt
in interface ITuple
lights.interfaces.ITuple
public IField[] getFields()
ITuple
getFields
in interface ITuple
lights.interfaces.ITuple
public int length()
ITuple
length
in interface ITuple
public boolean matches(ITuple tuple)
ITuple
matches
in interface ITuple
lights.interfaces.ITuple
true
if the tuple passed as a parameter matches
this tuple, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |