|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Specifies the services which must be provided by component inside tuple centre virtual machine that manages communication events as a multiset
Event,
TupleCentreVM| Method Summary | |
void |
add(Event e)
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 e)
Removes (if present) an event from multiset |
| Method Detail |
public void add(Event e)
e - the event to be addedpublic void sub(Event e)
e - the event to be removedpublic boolean isEmpty()
true if the mset is empty, false if notpublic void empty()
public int size()
public Event get()
public Event getFirstMatching(TupleSet tset)
tset - the tuple set with tuples to be matchednull if
nothing foundpublic java.util.Iterator getIterator()
public void removeEventsOf(AgentId id)
id - 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 | ||||||||