org.jdesktop.wonderland.server.cell
Class MovableComponentMO

java.lang.Object
  extended by org.jdesktop.wonderland.server.cell.CellComponentMO
      extended by org.jdesktop.wonderland.server.cell.MovableComponentMO
All Implemented Interfaces:
com.sun.sgs.app.ManagedObject, java.io.Serializable
Direct Known Subclasses:
MovableAvatarComponentMO

public class MovableComponentMO
extends CellComponentMO

Author:
paulby
See Also:
Serialized Form

Nested Class Summary
static interface MovableComponentMO.CellTransformChangeListener
          Listener inteface for cell movement
 
Field Summary
protected  com.sun.sgs.app.ManagedReference<ChannelComponentMO> channelComponentRef
           
 
Fields inherited from class org.jdesktop.wonderland.server.cell.CellComponentMO
cellID, cellRef
 
Constructor Summary
MovableComponentMO(CellMO cell)
          Create a MovableComponent for the given cell.
 
Method Summary
protected  java.lang.String getClientClass()
          If this component has a client side component then return the fully qualified name of the client class.
protected  java.lang.Class getMessageClass()
           
 void moveRequest(WonderlandClientID clientID, CellTransform transform)
          Set the transform for the cell and notify all client cells of the move.
 void setLive(boolean live)
           
 
Methods inherited from class org.jdesktop.wonderland.server.cell.CellComponentMO
getClientState, getServerState, isLive, setServerState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channelComponentRef

protected com.sun.sgs.app.ManagedReference<ChannelComponentMO> channelComponentRef
Constructor Detail

MovableComponentMO

public MovableComponentMO(CellMO cell)
Create a MovableComponent for the given cell. The cell must already have a ChannelComponent otherwise this method will throw an IllegalStateException

Parameters:
cell -
Method Detail

setLive

public void setLive(boolean live)
Overrides:
setLive in class CellComponentMO

getMessageClass

protected java.lang.Class getMessageClass()

getClientClass

protected java.lang.String getClientClass()
Description copied from class: CellComponentMO
If this component has a client side component then return the fully qualified name of the client class. If there is no client portion to this component, return null.

Specified by:
getClientClass in class CellComponentMO
Returns:

moveRequest

public void moveRequest(WonderlandClientID clientID,
                        CellTransform transform)
Set the transform for the cell and notify all client cells of the move.

Parameters:
sessionID - the id of the session that originated the move, or null if the server originated it
transform -


Open Wonderland - http://openwonderland.org