de.esw.eengine.core
Class Core

java.lang.Object
  extended by de.esw.eengine.core.Core

public final class Core
extends java.lang.Object

Core class of eEngine.

Also there is a Logger implemented which is accessible through the getLogger() method. The Logger can be reconfigured and extended statically or at runtime.
While based on the Java Logging API documentation can be found here http://java.sun.com/j2se/1.5.0/docs/guide/logging/overview.html

Since:
1.0
Version:
$Id: Core.java 209 2005-07-23 00:39:50Z markusw $
Author:
markusw
See Also:
getLogger()

Nested Class Summary
static class Core.RenderPipeline
           
 
Constructor Summary
Core(Core.RenderPipeline renderPipeline)
          Creates a new instance of the engine core.
Core(java.lang.String renderPipeline)
          Creates a new instance of the engine core.
 
Method Summary
 IInputDevice createInputDevice(java.lang.Class<? extends IInputDevice> inputDevice)
          Creates a new IInputDevice.
 IRenderDevice createRenderDevice(java.lang.Class<? extends IRenderDevice> renderDevice)
          Creates a new IRenderDevice.
static java.util.logging.Logger getLogger()
           
 IRenderDevice getRenderDevice()
           
 ResourceManager getResourceManager()
           
 void registerCodec(ICodec codec)
          Registers a new resource codec to the engine
 void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Core

public Core(java.lang.String renderPipeline)
Creates a new instance of the engine core.

Parameters:
renderPipeline - RenderPipeline to use

Core

public Core(Core.RenderPipeline renderPipeline)
Creates a new instance of the engine core.

Parameters:
renderPipeline - RenderPipeline to use
Method Detail

getLogger

public static final java.util.logging.Logger getLogger()
Returns:
Logger for eEngine

shutdown

public final void shutdown()

getRenderDevice

public final IRenderDevice getRenderDevice()
Returns:
Returns the IRenderDevice.

getResourceManager

public final ResourceManager getResourceManager()
Returns:
Returns the resourceManager.

createRenderDevice

public final IRenderDevice createRenderDevice(java.lang.Class<? extends IRenderDevice> renderDevice)
                                       throws EEngineException
Creates a new IRenderDevice. There could only one device at once. If this method is called when a device is already opened, then the old one is closed before creation of the new one

Parameters:
renderDevice - The IRenderDevice to create.
Returns:
The created IRenderDevice
Throws:
EEngineException - Thrown in the given IRenderDevice could not be created

createInputDevice

public final IInputDevice createInputDevice(java.lang.Class<? extends IInputDevice> inputDevice)
                                     throws EEngineException
Creates a new IInputDevice.

Parameters:
inputDevice - The IInputDevice to create.
Returns:
IInputDevice instance
Throws:
EEngineException - Thrown in the given IInputDevice could not be created

registerCodec

public void registerCodec(ICodec codec)
                   throws EEngineException
Registers a new resource codec to the engine

Parameters:
codec - Codec to register
Throws:
EEngineException - Thrown if no ResourceManager is available