com.speckled.specksim
Class EnvironmentManager

java.lang.Object
  extended by com.speckled.specksim.EnvironmentManager
All Implemented Interfaces:
Configurable

public class EnvironmentManager
extends java.lang.Object
implements Configurable

Holds and manages all resident Environment objects

Author:
ryanm

Method Summary
 Configurator getConfigurator()
          Gets a Configurator object that describes and can manipulate the variables of this Configurable.
static SerializableState getState(java.lang.String name)
          Gets an instance of a state object from the named Environment
static boolean register(java.lang.String className)
          Registers an Environment class for inclusion in the simulator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getState

public static SerializableState getState(java.lang.String name)
Gets an instance of a state object from the named Environment

Parameters:
name - The name of the environment
Returns:
An instance of that Environment's state object

register

public static boolean register(java.lang.String className)
Registers an Environment class for inclusion in the simulator

Parameters:
className - The name of the Environment class
Returns:
true if the registration was successful, false otherwise

getConfigurator

public Configurator getConfigurator()
Description copied from interface: Configurable
Gets a Configurator object that describes and can manipulate the variables of this Configurable. This method must only return null if the Configurable object is Annotated such that an AnnotatedConfigurator can be built from it.

Specified by:
getConfigurator in interface Configurable
Returns:
A configurator object, or null if annotated