org.jdesktop.wonderland.server.cell
Class EnvironmentCellMO

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

public abstract class EnvironmentCellMO
extends CellMO

A cell that represents the environment (lights, skybox, etc). Each server will have no more than one environment cell, which has a static ID.

Author:
Jonathan Kaplan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdesktop.wonderland.server.cell.CellMO
cellChannelRef, cellID, clientSessionRefs, logger
 
Constructor Summary
EnvironmentCellMO()
          Default constructor, used when cell is created via WFS
 
Method Summary
 void addChild(CellMO child)
          Add a child cell to list of children contained within this cell.
 CellID getCellID()
          Return the cellID for this cell
 void setLive(boolean live)
          Set the live state of this cell.
 
Methods inherited from class org.jdesktop.wonderland.server.cell.CellMO
addChildrenChangeListener, addClient, addComponent, addComponent, addComponentChangeListener, addParentChangeListener, addTransformChangeListener, changeClient, detach, fireChildChangedEvent, fireComponentChangeEvent, fireParentChangeEvent, getAllChildrenRefs, getAllComponentRefs, getClientCellClassName, getClientState, getComponent, getLocalBounds, getLocalTransform, getName, getNumChildren, getParent, getPriority, getServerState, 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

EnvironmentCellMO

public EnvironmentCellMO()
Default constructor, used when cell is created via WFS

Method Detail

setLive

public 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

addChild

public void addChild(CellMO child)
              throws MultipleParentException
Description copied from class: CellMO
Add a child cell to list of children contained within this cell. A cell can only be attached to a single parent cell at any given time, attempting to add a cell to multiple parents will result in a MultipleParentException being thrown.

Overrides:
addChild in class CellMO
Throws:
MultipleParentException

getCellID

public CellID getCellID()
Description copied from class: CellMO
Return the cellID for this cell

Overrides:
getCellID in class CellMO
Returns:
cellID


Open Wonderland - http://openwonderland.org