org.jdesktop.wonderland.server.cell
Class ModelCellComponentMO

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

public class ModelCellComponentMO
extends CellComponentMO

Author:
paulby
See Also:
Serialized Form

Field Summary
protected  ModelCellComponentServerState serverState
           
 
Fields inherited from class org.jdesktop.wonderland.server.cell.CellComponentMO
cellID, cellRef
 
Constructor Summary
ModelCellComponentMO(CellMO 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.
 CellComponentClientState getClientState(CellComponentClientState state, WonderlandClientID clientID, ClientCapabilities capabilities)
          Returns the client-side state of the cell component .
 CellComponentServerState getServerState(CellComponentServerState state)
          Returns the server state information currently configured in the component.
protected  void setLive(boolean live)
           
 void setServerState(CellComponentServerState state)
          Sets the server state for the cell component
 
Methods inherited from class org.jdesktop.wonderland.server.cell.CellComponentMO
isLive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverState

protected ModelCellComponentServerState serverState
Constructor Detail

ModelCellComponentMO

public ModelCellComponentMO(CellMO cell)
Method Detail

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:

setServerState

public void setServerState(CellComponentServerState state)
Description copied from class: CellComponentMO
Sets the server state for the cell component

Overrides:
setServerState in class CellComponentMO
Parameters:
state - the properties to setup with

getServerState

public CellComponentServerState getServerState(CellComponentServerState state)
Description copied from class: CellComponentMO
Returns the server state information currently configured in the component. If the state argument is non-null, fill in that object and return it. If the state argument is null, create a new state object.

Overrides:
getServerState in class CellComponentMO
Parameters:
state - The state object, if null, creates one.
Returns:
The current server state information

getClientState

public CellComponentClientState getClientState(CellComponentClientState state,
                                               WonderlandClientID clientID,
                                               ClientCapabilities capabilities)
Description copied from class: CellComponentMO
Returns the client-side state of the cell component . If the state 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 CellComponentMO
Parameters:
state - If null, create a new object
clientID - The unique ID of the client
capabilities - The client capabilities

setLive

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


Open Wonderland - http://openwonderland.org