ibis.gmi
Class GroupMember

java.lang.Object
  extended by ibis.gmi.GroupMember

public class GroupMember
extends Object

To be part of a group, an object must implement the GroupInterface and extent the GroupMember class.


Field Summary
 int groupID
          An identification of the group of which this is a member.
 int groupSize
          Size of the group of this member.
 int[] memberRanks
          Node identifications of all group members.
 int[] memberSkels
          Skeleton identifications of all group members.
 int myGroupRank
          rank within the group of this member.
 
Constructor Summary
GroupMember()
          Constructor.
 
Method Summary
 int getRank()
          Returns the rank within the group of this member.
 int getSize()
          Returns the size of the group of this member.
 void groupInit()
          This method gets called when the group is complete.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupID

public int groupID
An identification of the group of which this is a member.


memberSkels

public int[] memberSkels
Skeleton identifications of all group members.


memberRanks

public int[] memberRanks
Node identifications of all group members.


myGroupRank

public int myGroupRank
rank within the group of this member.


groupSize

public int groupSize
Size of the group of this member.

Constructor Detail

GroupMember

public GroupMember()
Constructor. Creates a skeleton, and figures out which group interfaces are implemented.

Method Detail

getRank

public int getRank()
Returns the rank within the group of this member.

Returns:
the rank.

getSize

public int getSize()
Returns the size of the group of this member.

Returns:
the size.

groupInit

public void groupInit()
This method gets called when the group is complete. The user can redefine it to implement any initialization that depends on the rank of the object or the size of the group.



The Ibis project