| Trees | Index | Help |
|
|---|
| Package svs_core :: Package network :: Module clientavatar :: Class ClientAvatar |
|
Avatar --+
|
Listenable --+
|
ClientAvatar
Generic client, provides base client functionality as represented to the server.
Clients interact with the simulation world by calling remote methods on the proxy.
For more information see the Perspective Broker system within the twisted framework: http://twistedmatrix.com/documents/howto/.| Method Summary | |
|---|---|
__init__(self,
name)
| |
Called by the ClusterRealm when a client connects to the
server. | |
Called by the ClusterRealm when a client disconnects from
the server. | |
Returns profile. | |
Checks if requested data is in cache and returns that. | |
Empties cache of data deposits held by avatar. | |
Stores data packet in cache for other clients to collect. | |
perspective_getProfile(self)
| |
| object |
Proxy invocation of svs.network.clientuser.GenericClient.joinClusterGroup called
by client. |
| object |
Proxy invocation of svs.network.clientuser.GenericClient.leaveCluster called by
client. |
Forwards data onto listeners. | |
Returns requested in cache data back to client. | |
Sends commands to another client. | |
Sends command result to sending client. | |
Deferred callback for receiving profile from real client. | |
Receive data from another client, forward to own client. | |
Receive data from another client, forward to own client. | |
Sends char message to client. | |
Sends command to client. | |
Sends comamnd result to client. | |
Sends data packet to cluster group for forwarding to other client. | |
Sends data packet to cluster group for forwarding to other client. | |
Sends error message to client. | |
Sends status message to client. | |
Calls update method on client. | |
| Inherited from Avatar | |
This method is called when a network message is received. | |
| Inherited from Listenable | |
Adds new listener to avatar. | |
Deals with listen request from another client. | |
Forward data to listeners. | |
Removes listener from avatar. | |
| Class Variable Summary | |
|---|---|
| Inherited from Avatar | |
Implements |
__implemented__ = <implementedBy twisted.spread.pb.Avata...
|
_implementsTuple |
__implements__ = (<MetaInterface twisted.spread.pb.IPers...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
| Method Details |
|---|
attached(self, mind)Called by theClusterRealm when a client connects to
the server. It passes a mind object to the proxy. This is
a reference to the client connection and is used to pass remote method
calls back to the client from the server.
|
detached(self, mind)Called by the
|
getProfile(self, requester=None)Returns profile. If requester given notifies remote self with name of requester. |
handleDataRequest(self, dataRequest)Checks if requested data is in cache and returns that. If not, then forwards request to client. |
perspective_clearDepositedData(self, label=None)Empties cache of data deposits held by avatar. If a label is specified then only data stored under that label is removed. |
perspective_depositData(self, dataPacket)Stores data packet in cache for other clients to collect. If the data packet is labelled it is stored under this label, if not it replaces the current unlabelled data. |
perspective_joinClusterGroup(self, groupName)Proxy invocation ofsvs.network.clientuser.GenericClient.joinClusterGroup
called by client.
|
perspective_leaveClusterGroup(self)Proxy invocation ofsvs.network.clientuser.GenericClient.leaveCluster called
by client.
|
perspective_notifyListeners(self, dataPacket)Forwards data onto listeners. |
perspective_retrieveOwnData(self, dataRequest)Returns requested in cache data back to client. This can be used by the client as a temporary store for its own information. |
perspective_sendCommand(self, cmd)Sends commands to another client. |
perspective_sendCommandResult(self, cmdResult)Sends command result to sending client. Note: not implemented. |
profileReceived(self, profile)Deferred callback for receiving profile from real client. |
receiveData(self, dataPacket)Receive data from another client, forward to own client. |
receiveDataResult(self, cmdResult)Receive data from another client, forward to own client. The data is wrapped inside a makeCommandResult object. |
sendChatMessage(self, message)Sends char message to client.
|
sendCommand(self, cmd)Sends command to client. |
sendCommandResult(self, cmdResult)Sends comamnd result to client. |
sendData(self, dataPacket)Sends data packet to cluster group for forwarding to other client. |
sendDataResult(self, cmdResult)Sends data packet to cluster group for forwarding to other client. |
sendErrorMessage(self, message)Sends error message to client.
|
sendStatusMessage(self, message)Sends status message to client.
|
sendUpdate(self, simTime)Calls update method on client.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:24 2005 | http://epydoc.sf.net |