org.jdesktop.wonderland.server.spatial.impl
Class UniverseImpl

java.lang.Object
  extended by org.jdesktop.wonderland.server.spatial.impl.UniverseImpl
All Implemented Interfaces:
Universe

public class UniverseImpl
extends java.lang.Object
implements Universe

Author:
paulby

Constructor Summary
UniverseImpl(com.sun.sgs.kernel.ComponentRegistry componentRegistry, com.sun.sgs.service.TransactionProxy transactionProxy, com.sun.sgs.auth.Identity defaultTaskOwner)
           
 
Method Summary
 void addRootSpatialCell(CellID cellID, com.sun.sgs.auth.Identity identity)
          Add a SpatialCell (and all it's children) to the universe
 void addTransformChangeListener(CellID cellID, TransformChangeListenerSrv listener)
           
 void addViewUpdateListener(CellID cellID, ViewUpdateListener viewUpdateListener)
           
 SpatialCellImpl createSpatialCell(CellID id, java.math.BigInteger dsID, java.lang.Class cellClass)
          Create a Spatial cell
 void deleteTransactionQueue(java.lang.Object queueOwner)
           
 com.sun.sgs.service.DataService getDataService()
           
 SpatialCell getSpatialCell(CellID cellID)
           
 com.sun.sgs.service.TransactionProxy getTransactionProxy()
           
static UniverseImpl getUniverse()
           
 void removeCell(CellID id)
           
 void removeRootSpatialCell(CellID cellID, com.sun.sgs.auth.Identity identity)
           
 void removeTransformChangeListener(CellID cellID, TransformChangeListenerSrv listener)
           
 void removeViewUpdateListener(CellID cellID, ViewUpdateListener viewUpdateListener)
           
 void revalidateCell(CellID id)
           
 void scheduleQueuedTransaction(com.sun.sgs.kernel.KernelRunnable task, com.sun.sgs.auth.Identity identity, java.lang.Object queueOwner)
           
 void scheduleTransaction(com.sun.sgs.kernel.KernelRunnable transaction, com.sun.sgs.auth.Identity identity)
           
 void viewLogin(CellID viewCellID, java.math.BigInteger cellCacheId, com.sun.sgs.auth.Identity identity)
           
 void viewLogout(CellID viewCellID, com.sun.sgs.auth.Identity identity)
           
 void viewRevalidate(CellID viewCellID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniverseImpl

public UniverseImpl(com.sun.sgs.kernel.ComponentRegistry componentRegistry,
                    com.sun.sgs.service.TransactionProxy transactionProxy,
                    com.sun.sgs.auth.Identity defaultTaskOwner)
Method Detail

getUniverse

public static UniverseImpl getUniverse()

getTransactionProxy

public com.sun.sgs.service.TransactionProxy getTransactionProxy()

getDataService

public com.sun.sgs.service.DataService getDataService()

scheduleTransaction

public void scheduleTransaction(com.sun.sgs.kernel.KernelRunnable transaction,
                                com.sun.sgs.auth.Identity identity)

scheduleQueuedTransaction

public void scheduleQueuedTransaction(com.sun.sgs.kernel.KernelRunnable task,
                                      com.sun.sgs.auth.Identity identity,
                                      java.lang.Object queueOwner)

deleteTransactionQueue

public void deleteTransactionQueue(java.lang.Object queueOwner)

addRootSpatialCell

public void addRootSpatialCell(CellID cellID,
                               com.sun.sgs.auth.Identity identity)
Description copied from interface: Universe
Add a SpatialCell (and all it's children) to the universe

Specified by:
addRootSpatialCell in interface Universe

removeRootSpatialCell

public void removeRootSpatialCell(CellID cellID,
                                  com.sun.sgs.auth.Identity identity)

createSpatialCell

public SpatialCellImpl createSpatialCell(CellID id,
                                         java.math.BigInteger dsID,
                                         java.lang.Class cellClass)
Description copied from interface: Universe
Create a Spatial cell

Specified by:
createSpatialCell in interface Universe
Returns:

revalidateCell

public void revalidateCell(CellID id)
Specified by:
revalidateCell in interface Universe

removeCell

public void removeCell(CellID id)
Specified by:
removeCell in interface Universe

getSpatialCell

public SpatialCell getSpatialCell(CellID cellID)
Specified by:
getSpatialCell in interface Universe

viewLogin

public void viewLogin(CellID viewCellID,
                      java.math.BigInteger cellCacheId,
                      com.sun.sgs.auth.Identity identity)
Specified by:
viewLogin in interface Universe

viewRevalidate

public void viewRevalidate(CellID viewCellID)
Specified by:
viewRevalidate in interface Universe

viewLogout

public void viewLogout(CellID viewCellID,
                       com.sun.sgs.auth.Identity identity)
Specified by:
viewLogout in interface Universe

addTransformChangeListener

public void addTransformChangeListener(CellID cellID,
                                       TransformChangeListenerSrv listener)
Specified by:
addTransformChangeListener in interface Universe

removeTransformChangeListener

public void removeTransformChangeListener(CellID cellID,
                                          TransformChangeListenerSrv listener)
Specified by:
removeTransformChangeListener in interface Universe

addViewUpdateListener

public void addViewUpdateListener(CellID cellID,
                                  ViewUpdateListener viewUpdateListener)
Specified by:
addViewUpdateListener in interface Universe

removeViewUpdateListener

public void removeViewUpdateListener(CellID cellID,
                                     ViewUpdateListener viewUpdateListener)
Specified by:
removeViewUpdateListener in interface Universe


Open Wonderland - http://openwonderland.org