|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface presents the group abilities extending java.util.Collection.
Collection
Method Summary | |
void |
addMerge(java.lang.Object ogroup)
Merges a group into the group. |
boolean |
allArrived()
Checks if all the members of the Group are arrived. |
boolean |
allAwaited()
Checks if all the members of the Group are awaited. |
void |
barrier()
Strongly synchronizes all the members of the group |
Group |
difference(Group g)
Creates a new group with all members that belong to the group or to the group g , but not to both. |
Group |
exclude(Group g)
Creates a new group with the members that belong to the group, but not to the group g . |
java.lang.Object |
get(int index)
Returns the object at the specified index. |
ExceptionList |
getExceptionList()
Returns an ExceptionList containing all the throwables (exceptions and errors) occured when this group was built |
java.lang.Object |
getGroupByType()
Returns an object representing the group, and assignable from the (upper) class of member. |
java.lang.Class |
getType()
Returns the (upper) class of member. |
java.lang.String |
getTypeName()
Returns the name of the (upper) class of member. |
int |
indexOf(java.lang.Object obj)
Returns the index in the group of the first occurence of the specified element, -1 if the list does not contain this element. |
Group |
intersection(Group g)
Creates a new group with all members that belong to the group and to the group g . |
java.util.ListIterator |
listIterator()
Returns a list iterator of the members in this Group (in proper sequence). |
void |
purgeExceptionAndNull()
Removes all exceptions and null references contained in the Group. |
Group |
range(int begin,
int end)
Creates a new group with the members of the group begining at the index begin and ending at the index end . |
void |
remove(int index)
Removes the object at the specified index. |
void |
setRatioNemberToThread(int i)
Modifies the number of members served by one thread |
Group |
union(Group g)
Creates a new group with all members of the group and all the members of the group g |
void |
waitAll()
Waits that all the members are arrived. |
java.lang.Object |
waitAndGetOne()
Waits that at least one member is arrived and returns it. |
java.lang.Object |
waitAndGetTheNth(int n)
Waits that the member at the specified rank is arrived and returns it. |
void |
waitN(int n)
Waits that at least n members are arrived. |
void |
waitOne()
Waits that at least one member is arrived. |
int |
waitOneAndGetIndex()
Waits that at least one member is arrived and returns its index. |
void |
waitTheNth(int n)
Waits that the member at the specified rank is arrived. |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
public java.lang.Class getType() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.String getTypeName()
public java.lang.Object getGroupByType()
public java.lang.Object get(int index)
public void addMerge(java.lang.Object ogroup)
public void remove(int index)
public int indexOf(java.lang.Object obj)
public java.util.ListIterator listIterator()
public void waitAll()
public void waitOne()
public void waitTheNth(int n)
public void waitN(int n)
n
members are arrived.
public java.lang.Object waitAndGetOne()
public java.lang.Object waitAndGetTheNth(int n)
n
in the Group.public int waitOneAndGetIndex()
public boolean allAwaited()
true
if all the members of the Group are awaited.public boolean allArrived()
true
if all the members of the Group are arrived.public ExceptionList getExceptionList()
public void purgeExceptionAndNull()
public void setRatioNemberToThread(int i)
i
- - the new ratiopublic Group union(Group g)
g
g
- - a group
g
. null if the class of the group is incompatible.
public Group intersection(Group g)
g
.
g
- - a group
g
. null if the class of the group is incompatible.
public Group difference(Group g)
g
, but not to both.
g
- - a group
g
. null if the class of the group is incompatible.
public Group exclude(Group g)
g
.
g
- - a group
g
. null if the class of the group is incompatible.
public Group range(int begin, int end)
begin
and ending at the index end
.
begin
- - the begining indexend
- - the ending index
begin
to end
. null
if begin > end
.public void barrier()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |