com.ibm.tspaces
Class SubclassableTuple

java.lang.Object
  |
  +--com.ibm.tspaces.SuperTuple
        |
        +--com.ibm.tspaces.SubclassableTuple
Direct Known Subclasses:
ConfigTuple, CountTuple, DataTuple, DoneTuple, StaleTuple, SystemTuple, TClipboardTuple, XMLTuple

public class SubclassableTuple
extends SuperTuple

A SubclassableTuple is an ordered sequence of Fields, and implements the subclassable version. For this class, just the fact that SubclassableTuple isn't final is enough to enforce what we're looking for.

Subclasses could override the matches() method to implement any exotic behavior, but recall that matches() is called on the requesting template, rather than the tuple in the tuplespace. This maintains the property of communication orthogonality, i.e. the creator of a tuple has no control over its destination, while the reciever has the flexibility to choose which tuple to recieve.

Author:
Daniel Ford,, Tobin Lehman,, Stephen McLaughry
See Also:
Tuple, SuperTuple, Field, TupleSpace, Serialized Form

Constructor Summary
SubclassableTuple()
           
SubclassableTuple(java.io.Serializable obj)
           
SubclassableTuple(java.io.Serializable obj1, java.io.Serializable obj2)
           
SubclassableTuple(java.io.Serializable obj1, java.io.Serializable obj2, java.io.Serializable obj3)
           
SubclassableTuple(java.io.Serializable obj1, java.io.Serializable obj2, java.io.Serializable obj3, java.io.Serializable obj4)
           
SubclassableTuple(java.io.Serializable obj1, java.io.Serializable obj2, java.io.Serializable obj3, java.io.Serializable obj4, java.io.Serializable obj5)
           
SubclassableTuple(java.io.Serializable obj1, java.io.Serializable obj2, java.io.Serializable obj3, java.io.Serializable obj4, java.io.Serializable obj5, java.io.Serializable obj6)
           
 
Methods inherited from class com.ibm.tspaces.SuperTuple
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addFieldType, changeName, clone, equals, fieldExists, fields, getExpire, getField, getField, getFieldType, getTimeStamp, getTupleID, isExpired, matches, numberOfFields, putField, setExpire, setField, setFields, setFormal, setFormal, setFormal, setFormal, setName, setTimeStamp, setTupleID, setType, setType, setValue, setValue, structureName, template, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubclassableTuple

public SubclassableTuple()

SubclassableTuple

public SubclassableTuple(java.io.Serializable obj)
                  throws TupleSpaceException

SubclassableTuple

public SubclassableTuple(java.io.Serializable obj1,
                         java.io.Serializable obj2)
                  throws TupleSpaceException

SubclassableTuple

public SubclassableTuple(java.io.Serializable obj1,
                         java.io.Serializable obj2,
                         java.io.Serializable obj3)
                  throws TupleSpaceException

SubclassableTuple

public SubclassableTuple(java.io.Serializable obj1,
                         java.io.Serializable obj2,
                         java.io.Serializable obj3,
                         java.io.Serializable obj4)
                  throws TupleSpaceException

SubclassableTuple

public SubclassableTuple(java.io.Serializable obj1,
                         java.io.Serializable obj2,
                         java.io.Serializable obj3,
                         java.io.Serializable obj4,
                         java.io.Serializable obj5)
                  throws TupleSpaceException

SubclassableTuple

public SubclassableTuple(java.io.Serializable obj1,
                         java.io.Serializable obj2,
                         java.io.Serializable obj3,
                         java.io.Serializable obj4,
                         java.io.Serializable obj5,
                         java.io.Serializable obj6)
                  throws TupleSpaceException