|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--alice.respect.TRSetImpl
Naive implementation of the TRSet interface, defining the behaviour of the component that manages triggered reactions.
| Constructor Summary | |
TRSetImpl()
|
|
| Method Summary | |
void |
add(TriggeredReaction t)
Adds a triggered reaction to the multiset |
void |
beginTransaction()
Begins a transaction section Every operation on multiset can be undone |
void |
empty()
Empties the multiset |
void |
endTransaction(boolean commit)
Ends a transaction section specifying if operations must be committed or undone |
TriggeredReaction |
get()
Gets not-deterministically (with removal) a triggered reaction from the multiset |
java.util.Iterator |
getIterator()
Gets an iterator to navigate through triggered reactions |
boolean |
isEmpty()
Tests if the multiset is empty |
void |
sub(TriggeredReaction t)
Removes a triggered reaction from the multiset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TRSetImpl()
| Method Detail |
public void add(TriggeredReaction t)
TRSetadd in interface TRSetalice.tuplemedium.TRSett - the triggered reaction to be addedpublic void sub(TriggeredReaction t)
TRSetsub in interface TRSetalice.tuplemedium.TRSett - the triggered reaction to be removedpublic boolean isEmpty()
TRSetisEmpty in interface TRSetpublic void empty()
TRSetempty in interface TRSetpublic TriggeredReaction get()
TRSetget in interface TRSetalice.tuplemedium.TRSetpublic java.util.Iterator getIterator()
TRSetgetIterator in interface TRSetalice.tuplemedium.TRSetpublic void beginTransaction()
TRSetbeginTransaction in interface TRSetpublic void endTransaction(boolean commit)
TRSetendTransaction in interface TRSetalice.tuplemedium.TRSetcommit - if true the operations are committed, else
they are undone and the multiset is rolled back to the
state before the beginTransaction invocation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||