org.jdesktop.wonderland.server.cell.view
Class AvatarCellMO

java.lang.Object
  extended by org.jdesktop.wonderland.server.cell.CellMO
      extended by org.jdesktop.wonderland.server.cell.view.ViewCellMO
          extended by org.jdesktop.wonderland.server.cell.view.AvatarCellMO
All Implemented Interfaces:
com.sun.sgs.app.ManagedObject, java.io.Serializable

@NoSnapshot
public class AvatarCellMO
extends ViewCellMO

Superclass for all avatar cells.

Author:
paulby
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdesktop.wonderland.server.cell.CellMO
cellChannelRef, cellID, clientSessionRefs, logger
 
Constructor Summary
AvatarCellMO(UserMO user, WonderlandClientID clientID)
           
 
Method Summary
 AvatarCellCacheMO getCellCache()
          Return the cell cache managed object for this view, or null if there is no associated cache.
protected  java.lang.String getClientCellClassName(WonderlandClientID clientID, ClientCapabilities capabilities)
          Returns the fully qualified name of the class that represents this cell on the client
 WonderlandClientID getClientID()
          Get the WonderlandClientID of the user session that owns this avatar.
 CellClientState getClientState(CellClientState cellClientState, WonderlandClientID clientID, ClientCapabilities capabilities)
          Returns the client-side state of the cell.
 CellServerState getServerState(CellServerState cellServerState)
          Returns the setup information currently configured on the cell.
 UserMO getUser()
          Get the Wonderland user object associated with this avatar.
protected  void setLive(boolean live)
          Set the live state of this cell.
 
Methods inherited from class org.jdesktop.wonderland.server.cell.CellMO
addChild, addChildrenChangeListener, addClient, addComponent, addComponent, addComponentChangeListener, addParentChangeListener, addTransformChangeListener, changeClient, detach, fireChildChangedEvent, fireComponentChangeEvent, fireParentChangeEvent, getAllChildrenRefs, getAllComponentRefs, getCellID, getComponent, getLocalBounds, getLocalTransform, getName, getNumChildren, getParent, getPriority, getViewCellCacheRevalidationListener, getWorldBounds, getWorldTransform, isLive, removeChild, removeChildrenChangeListener, removeComponent, removeComponentChangeListener, removeParentChangeListener, removeSession, removeTransformChangeListener, sendCellMessage, setLocalBounds, setLocalTransform, setName, setPriority, setServerState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarCellMO

public AvatarCellMO(UserMO user,
                    WonderlandClientID clientID)
Method Detail

getUser

public UserMO getUser()
Get the Wonderland user object associated with this avatar.

Returns:
the user object

getClientID

public WonderlandClientID getClientID()
Get the WonderlandClientID of the user session that owns this avatar. May return null if the avatar is not associated with a client session.

Returns:
the client ID for the session associated with this avatar.

getCellCache

public AvatarCellCacheMO getCellCache()
Return the cell cache managed object for this view, or null if there is no associated cache.

Specified by:
getCellCache in class ViewCellMO
Returns:
the cell cache for this view, or null

getClientCellClassName

protected java.lang.String getClientCellClassName(WonderlandClientID clientID,
                                                  ClientCapabilities capabilities)
Description copied from class: CellMO
Returns the fully qualified name of the class that represents this cell on the client

Specified by:
getClientCellClassName in class CellMO

getClientState

public CellClientState getClientState(CellClientState cellClientState,
                                      WonderlandClientID clientID,
                                      ClientCapabilities capabilities)
Description copied from class: CellMO
Returns the client-side state of the cell. If the cellClientState argument is null, then the method should create an appropriate class, otherwise, the method should just fill in details in the class. Returns the client- side state class

Overrides:
getClientState in class CellMO
Parameters:
cellClientState - If null, create a new object
clientID - The unique ID of the client
capabilities - The client capabilities

setLive

protected void setLive(boolean live)
Description copied from class: CellMO
Set the live state of this cell. Live cells are connected to the world root and are present in the world, non-live cells are not

Overrides:
setLive in class CellMO

getServerState

public CellServerState getServerState(CellServerState cellServerState)
Description copied from class: CellMO
Returns the setup information currently configured on the cell. If the setup argument is non-null, fill in that object and return it. If the setup argument is null, create a new setup object.

Overrides:
getServerState in class CellMO
Parameters:
cellServerState - The setup object, if null, creates one.
Returns:
The current setup information


Open Wonderland - http://openwonderland.org