com.speckled.specksim
Class MovementModelManager

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

public class MovementModelManager
extends java.lang.Object
implements Configurable

Manages movement models.

Author:
ryanm

Method Summary
 Configurator getConfigurator()
          Gets a Configurator object that describes and can manipulate the variables of this Configurable.
static MovementModel getModel(java.lang.String name)
          Gets the movement model with the supplied name, or null if there is no such model registered
static SerializableState getState(java.lang.String name)
          Gets an instance of a state object from the named MovementModel.
static boolean register(java.lang.String className)
          Tries to load the specified class as a MovementModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getModel

public static MovementModel getModel(java.lang.String name)
Gets the movement model with the supplied name, or null if there is no such model registered

Parameters:
name - The name of the desired movement model
Returns:
The movement model, or null

getState

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

Parameters:
name - The name of the MovementModel
Returns:
An instance of that models state object

register

public static boolean register(java.lang.String className)
Tries to load the specified class as a MovementModel.

Parameters:
className - The full classname of the model class
Returns:
true if successful, false if an exception occured, or if the specified class is not a MovementModel

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