org.jdesktop.wonderland.server.cell
Class InteractionComponentMO

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

public class InteractionComponentMO
extends CellComponentMO

Component that determines how user can interact with a cell. The server class acts as a holder for values that are used in the client.

Author:
Jonathan Kaplan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdesktop.wonderland.server.cell.CellComponentMO
cellID, cellRef
 
Constructor Summary
InteractionComponentMO(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 sendUpdate()
          Notify clients that the state has been updated
 void setCollidable(boolean collidable)
           
 void setSelectable(boolean selectable)
           
 void setServerState(CellComponentServerState state)
          Sets the server state for the cell component
 
Methods inherited from class org.jdesktop.wonderland.server.cell.CellComponentMO
isLive, setLive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionComponentMO

public InteractionComponentMO(CellMO cell)
Method Detail

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

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

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

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:

setCollidable

public void setCollidable(boolean collidable)

setSelectable

public void setSelectable(boolean selectable)

sendUpdate

protected void sendUpdate()
Notify clients that the state has been updated



Open Wonderland - http://openwonderland.org