Package svs_core :: Package network :: Module clustermanager :: Class ClusterGroupManager
[show private | hide private]
[frames | no frames]

Class ClusterGroupManager

Listenable --+
             |
            ClusterGroupManager


This class manages groups of client proxies.
Method Summary
  __init__(self, clusterManager)
tuple (string, list) joinGroup(self, client)
Adds client to group.
  leaveGroup(self, client)
Removes client from group.
  notifyListeners(self, listenerGroup, dataPacket)
Forwards data packet to specified list of clients.
  sendClientDepartedNotification(self, clientName, groupName)
Sends notification that new client has departed from group.
  sendClientJoinedNotification(self, clientName, groupName)
Sends notification that new client has joined a group.
  sendData(self, data)
Forwards data to all clients.
  sendDataToGroup(self, data, groupName)
Forwards data to specified group.
  update(self, simTime)
Forwards update message from simulation cluster to all clients.
    Inherited from Listenable
  addListener(self, listener, listenFor)
Adds new listener to avatar.
  handleListenRequest(self, listenRequest)
Deals with listen request from another client.
  removeListener(self, listener, listenFor)
Removes listener from avatar.

Method Details

joinGroup(self, client)

Adds client to group. The group is determined by the client's clientType property.
Parameters:
client - new client to be added
           (type=object)
Returns:
name of group and list of members
           (type=tuple (string, list))

leaveGroup(self, client)

Removes client from group. The group is determined by the client's clientType property.
Parameters:
client - old client to be removed
           (type=object)

notifyListeners(self, listenerGroup, dataPacket)

Forwards data packet to specified list of clients.
Overrides:
svs_core.utilities.notification.Listenable.notifyListeners

sendClientDepartedNotification(self, clientName, groupName)

Sends notification that new client has departed from group.

sendClientJoinedNotification(self, clientName, groupName)

Sends notification that new client has joined a group.

sendData(self, data)

Forwards data to all clients.
Parameters:
data - data to send
           (type=object)

sendDataToGroup(self, data, groupName)

Forwards data to specified group.
Parameters:
data - data to send
           (type=object)
groupName - name of group to send data to
           (type=string)

update(self, simTime)

Forwards update message from simulation cluster to all clients.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:30 2005 http://epydoc.sf.net