|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mpjdev.Group
public class Group
Field Summary | |
---|---|
static int |
CONGRUENT
|
static int |
IDENT
|
ProcessID[] |
ids
|
static int |
NO_RANK
|
static int |
SIMILAR
|
static int |
UNEQUAL
|
Constructor Summary | |
---|---|
Group(ProcessID[] ids,
ProcessID myID,
int rank)
|
Method Summary | |
---|---|
static int |
compare(Group group1,
Group group2)
|
static Group |
difference(Group group1,
Group group2)
Processes in group1, which are not in group2 make another grp. |
Group |
excl(int[] ranks)
This method returns a new group object excluding all the ranks specified in the argument array. |
void |
finalize()
|
void |
free()
This method frees this group object. |
Group |
incl(int[] ranks)
This method returns a new group object including all the ranks specified in the argument array. |
static Group |
intersection(Group group1,
Group group2)
|
Group |
rangeExcl(int[][] ranges)
implemented, not sure what it does and thus not tested at the moment. |
Group |
rangeIncl(int[][] ranges)
|
int |
rank()
This method returns the rank of the group. |
int |
size()
This method returns the size of the group. |
static int[] |
transRanks(Group group1,
int[] ranks1,
Group group2)
ranks1 should be a valid argument in Translate_ranks ranks2.length = ranks1.length |
static Group |
union(Group group1,
Group group2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ProcessID[] ids
public static final int NO_RANK
public static final int IDENT
public static final int CONGRUENT
public static final int SIMILAR
public static final int UNEQUAL
Constructor Detail |
---|
public Group(ProcessID[] ids, ProcessID myID, int rank)
Method Detail |
---|
public void free()
public int size()
public int rank()
public static int[] transRanks(Group group1, int[] ranks1, Group group2)
public static int compare(Group group1, Group group2)
public static Group union(Group group1, Group group2) throws MPJDevException
MPJDevException
public static Group intersection(Group group1, Group group2)
public static Group difference(Group group1, Group group2) throws MPJDevException
MPJDevException
public Group incl(int[] ranks) throws MPJDevException
ranks
- Integer array specifying the ranks of the processes that will be part of the new group
MPJDevException
public Group excl(int[] ranks) throws MPJDevException
ranks
- Integer array specifying the ranks of the processes that will not be part of the new group
MPJDevException
public Group rangeIncl(int[][] ranges) throws MPJDevException
MPJDevException
public Group rangeExcl(int[][] ranges) throws MPJDevException
MPJDevException
public void finalize() throws MPJDevException
finalize
in class java.lang.Object
MPJDevException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |