|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--alice.respect.EventSetImpl
Naive implementation of the EventSet interface, defining the behaviour of the component managin vm events storage.
| Constructor Summary | |
EventSetImpl()
|
|
| Method Summary | |
void |
add(Event t)
Adds an event to the multiset |
void |
empty()
Empties the multiset |
Event |
get()
Gets (with removal) not-deterministically an event from the mset |
Event |
getFirstMatching(TupleSet tset)
Gets (with removal) non-deterministically an event with a tuple template matching a tuple in the specified tuple set |
java.util.Iterator |
getIterator()
Gets an iterator to navigate through the elements of the multiset |
boolean |
isEmpty()
tests if multiset is empty |
void |
removeEventsOf(AgentId id)
Removes all the events with a specified agent identifier |
int |
size()
Gets the number of events inside the multiset |
void |
sub(Event t)
Removes (if present) an event from multiset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EventSetImpl()
| Method Detail |
public void add(Event t)
EventSetadd in interface EventSetalice.tuplemedium.EventSete - the event to be addedpublic void sub(Event t)
EventSetsub in interface EventSetalice.tuplemedium.EventSete - the event to be removedpublic boolean isEmpty()
EventSetisEmpty in interface EventSetalice.tuplemedium.EventSettrue if the mset is empty, false if notpublic void empty()
EventSetempty in interface EventSetpublic int size()
EventSetsize in interface EventSetalice.tuplemedium.EventSetpublic Event get()
EventSetget in interface EventSetalice.tuplemedium.EventSetpublic Event getFirstMatching(TupleSet tset)
EventSetgetFirstMatching in interface EventSetalice.tuplemedium.EventSettset - the tuple set with tuples to be matchednull if
nothing foundpublic java.util.Iterator getIterator()
EventSetgetIterator in interface EventSetalice.tuplemedium.EventSetpublic void removeEventsOf(AgentId id)
EventSetremoveEventsOf in interface EventSetalice.tuplemedium.EventSetid - the agent identifier of the events to be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||