nl.tudelft.simulation.dsol.context
Class ContextUtil

java.lang.Object
  extended by nl.tudelft.simulation.naming.context.ContextUtil
      extended by nl.tudelft.simulation.dsol.context.ContextUtil

public final class ContextUtil
extends ContextUtil

ContextUtil provides utility methods to resolve and bind objects to the context based on their experiment dependent path.
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:29 $
Author:
Peter Jacobs

Method Summary
static void bindToContext(SimulatorInterface simulator, Object object)
          binds an object to the context
static void bindToContext(SimulatorInterface simulator, String context, Object object)
          binds an object to the context
static void createSubContext(SimulatorInterface simulator, String subContext)
          creates a subContext in the context
static void createSubContext(SimulatorInterface simulator, String context, String subContext)
          creates a subContext in the context
 
Methods inherited from class nl.tudelft.simulation.naming.context.ContextUtil
resolveKey, unbindFromContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSubContext

public static void createSubContext(SimulatorInterface simulator,
                                    String subContext)
creates a subContext in the context

Parameters:
simulator - the simulator
subContext - the context to create

createSubContext

public static void createSubContext(SimulatorInterface simulator,
                                    String context,
                                    String subContext)
creates a subContext in the context

Parameters:
simulator - the simulator
context - the context
subContext - the context to create

bindToContext

public static void bindToContext(SimulatorInterface simulator,
                                 Object object)
binds an object to the context

Parameters:
simulator - the simulator
object - the object

bindToContext

public static void bindToContext(SimulatorInterface simulator,
                                 String context,
                                 Object object)
binds an object to the context

Parameters:
simulator - the simulator
context - the context in this tree
object - the object


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.