|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.tspaces.TupleSpaceEvent
This class implements tuplespace event. The event contains an id which indicates the type of event it is and which other Event variables are relavent for the event.
| Field Summary | |
TupleSpaceEvent |
evt
The next event. |
int |
id
The type of this event. |
java.lang.String |
source
The space name where the event was triggered. |
SuperTuple |
superTuple
A tuple. |
static int |
TUPLE_ADD
The add-tuple constant. |
static int |
TUPLE_REMOVE
The removed-tuple constant. |
static int |
UPDATE
The update constant. |
| Constructor Summary | |
TupleSpaceEvent(java.lang.String source,
int id,
SuperTuple superTuple)
Constructs an event from the specified tuplespace, event type, and tuple |
|
| Method Summary | |
boolean |
add()
Checks if this is an add event. |
int |
getID()
Return the type of this event. |
SuperTuple |
getTuple()
Return the tuple of this event. |
boolean |
remove()
Checks if this is a remove event. |
java.lang.String |
toString()
Return a string representation of this event. |
boolean |
update()
Checks if this is an update event. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int TUPLE_ADD
public static final int TUPLE_REMOVE
public static final int UPDATE
public java.lang.String source
public int id
public SuperTuple superTuple
public TupleSpaceEvent evt
| Constructor Detail |
public TupleSpaceEvent(java.lang.String source,
int id,
SuperTuple superTuple)
source - - the space name from which the event was triggeredid - - the event type| Method Detail |
public boolean add()
public boolean remove()
public boolean update()
public int getID()
public SuperTuple getTuple()
public java.lang.String toString()
String - - string representation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||