org.cogchar.app.puma.boot
Class PumaAppContext

java.lang.Object
  extended by org.appdapter.core.log.BasicDebugger
      extended by org.cogchar.app.puma.boot.PumaAppContext
All Implemented Interfaces:
org.appdapter.core.log.Loggable

public class PumaAppContext
extends org.appdapter.core.log.BasicDebugger

Author:
Stu B.

Field Summary
 
Fields inherited from interface org.appdapter.core.log.Loggable
IMPO_HI, IMPO_HIHI, IMPO_LO, IMPO_LOLO, IMPO_MAX, IMPO_MIN, IMPO_NORM
 
Constructor Summary
PumaAppContext(org.osgi.framework.BundleContext bc, PumaContextMediator mediator, org.appdapter.core.name.Ident ctxID)
           
 
Method Summary
 void connectAllBodies()
          Third (and last) stage init of OpenGL, and all other systems.
protected  void connectDualBodies(List<org.appdapter.core.name.Ident> charIdents)
           
protected  PumaDualBody connectDualBody(HumanoidConfig humCfg, org.appdapter.core.name.Ident graphIdentForBony)
           
protected  void connectWeb()
          Called only from PumaBooter.pumaBootUnsafeUnderOSGi
protected  void disconnectAllCharsAndMappers()
           
protected  List<org.appdapter.core.name.Ident> getAllCharIdents()
           
 org.osgi.framework.BundleContext getBundleContext()
           
protected  PumaConfigManager getConfigManager()
           
protected  PumaContextMediator getMediator()
           
protected  org.appdapter.help.repo.RepoClient getOrMakeMainConfigRC()
           
 PumaVirtualWorldMapper getOrMakeVWorldMapper()
          Public so that window system plugins can get access, e.g.
 PumaWebMapper getOrMakeWebMapper()
           
 boolean hasVWorldMapper()
           
protected  boolean hasWebMapper()
           
protected  void initCinema(boolean clearFirst)
          * Called from one of these three places: 1) PumaBooter.pumaBootUnsafeUnderOSGi 2) PumaContextCommandBox.processUpdateRequestNow(WORLD_CONFIG) 3) PumaAppContext.reloadAll PumaContextCommandBox.processUpdateRequestNow(ALL_HUMANOID_CONFIG)
 void makeAgentsForAllBodies(List<org.appdapter.core.name.Ident> charIdents)
           
protected  void reloadAll(boolean resetMainConfigFlag)
           
protected  void reloadBoneRobotConfig()
           
protected  void reloadCommandSpace()
          Would also need to reload keybindings for this to be effective
protected  void reloadGlobalConfig()
           
protected  void resetMainConfigAndCheckThingActions()
          Called from PumaContextCommandBox.processUpdateRequestNow(THING_ACTIONS)
protected  void resetToDefaultConfig()
           
protected  void startOpenGLCanvas(boolean wrapInJFrameFlag, WindowListener optWinLis)
           
 void startRepositoryConfigServices()
           
protected  void stopAndReleaseAllHumanoids()
           
 
Methods inherited from class org.appdapter.core.log.BasicDebugger
checkDebugImportance, forceLog4jConfig, getLogger, getLoggerForClass, isLoggerUsable, logDebug, logError, logError, logInfo, logInfo, logInfoEvent, logWarning, logWarning, logWithException, setDebugImportanceThreshold, setLogger, useLoggerForClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PumaAppContext

public PumaAppContext(org.osgi.framework.BundleContext bc,
                      PumaContextMediator mediator,
                      org.appdapter.core.name.Ident ctxID)
Method Detail

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()

hasVWorldMapper

public boolean hasVWorldMapper()

getOrMakeVWorldMapper

public PumaVirtualWorldMapper getOrMakeVWorldMapper()
Public so that window system plugins can get access, e.g. o.c.nbui.render.

Returns:

hasWebMapper

protected boolean hasWebMapper()

getOrMakeWebMapper

public PumaWebMapper getOrMakeWebMapper()

getOrMakeMainConfigRC

protected org.appdapter.help.repo.RepoClient getOrMakeMainConfigRC()

getMediator

protected PumaContextMediator getMediator()

getConfigManager

protected PumaConfigManager getConfigManager()

startOpenGLCanvas

protected void startOpenGLCanvas(boolean wrapInJFrameFlag,
                                 WindowListener optWinLis)
                          throws Exception
Throws:
Exception

startRepositoryConfigServices

public void startRepositoryConfigServices()

connectAllBodies

public void connectAllBodies()
Third (and last) stage init of OpenGL, and all other systems. Done AFTER startOpenGLCanvas().

Throws:
Throwable

makeAgentsForAllBodies

public void makeAgentsForAllBodies(List<org.appdapter.core.name.Ident> charIdents)

getAllCharIdents

protected List<org.appdapter.core.name.Ident> getAllCharIdents()

connectDualBodies

protected void connectDualBodies(List<org.appdapter.core.name.Ident> charIdents)

connectDualBody

protected PumaDualBody connectDualBody(HumanoidConfig humCfg,
                                       org.appdapter.core.name.Ident graphIdentForBony)
                                throws Throwable
Throws:
Throwable

reloadCommandSpace

protected void reloadCommandSpace()
Would also need to reload keybindings for this to be effective


initCinema

protected void initCinema(boolean clearFirst)
* Called from one of these three places: 1) PumaBooter.pumaBootUnsafeUnderOSGi 2) PumaContextCommandBox.processUpdateRequestNow(WORLD_CONFIG) 3) PumaAppContext.reloadAll PumaContextCommandBox.processUpdateRequestNow(ALL_HUMANOID_CONFIG)

Parameters:
clearFirst -

connectWeb

protected void connectWeb()
Called only from PumaBooter.pumaBootUnsafeUnderOSGi


resetToDefaultConfig

protected void resetToDefaultConfig()

reloadBoneRobotConfig

protected void reloadBoneRobotConfig()

reloadGlobalConfig

protected void reloadGlobalConfig()

stopAndReleaseAllHumanoids

protected void stopAndReleaseAllHumanoids()

disconnectAllCharsAndMappers

protected void disconnectAllCharsAndMappers()
                                     throws Throwable
Throws:
Throwable

reloadAll

protected void reloadAll(boolean resetMainConfigFlag)

resetMainConfigAndCheckThingActions

protected void resetMainConfigAndCheckThingActions()
Called from PumaContextCommandBox.processUpdateRequestNow(THING_ACTIONS)



Copyright © 2010-2013. All Rights Reserved.