|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.domain.Group
This class represents a group of nodes running the same service (MIDlet). All connected nodes in the ad hoc network are participants in the group. Participants can be added and removed, and a list of all the participants can be retreived.
Constructor Summary | |
Group()
Constructor. |
Method Summary | |
void |
addParticipant(Node node)
This method adds a node to the group as a participant. |
Node |
getNode(java.lang.String address)
This method returns a node with the address specified as input |
java.util.Hashtable |
getParticipatingNodeNames(FrameworkFrontEnd frameworkFrontEnd)
This method returns a list containg the names (as keys) of the nodes participating in this group. |
java.util.Hashtable |
getParticipatingNodes()
This method returns a list containing the nodes participating in this group. |
void |
removeAllParticipants()
This method removes all participating nodes. |
void |
removeParticipant(java.lang.String address)
This method removes a participating node. |
void |
shutdownGroup()
This method closes the NodeConnection of all the participating nodes, and removes all nodes from the group. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Group()
Method Detail |
public void shutdownGroup()
public void addParticipant(Node node)
node
- The node to add as a participant.public void removeParticipant(java.lang.String address)
address
- The address of the node to remove from this grouppublic void removeAllParticipants()
public java.util.Hashtable getParticipatingNodes()
public java.util.Hashtable getParticipatingNodeNames(FrameworkFrontEnd frameworkFrontEnd)
public Node getNode(java.lang.String address)
address
- The address of the node to get
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |