RePast
v. 2.0

uchicago.src.sim.engine
Class ParameterUtility

java.lang.Object
  |
  +--uchicago.src.sim.engine.ParameterUtility

public class ParameterUtility
extends Object

Some utility methods for working with parameters.


Constructor Summary
ParameterUtility()
           
 
Method Summary
static Vector createParameters(Object o, String[] properties)
          Creates a Vector of Parameters based on the current property values of Object o.
static Hashtable getModelProperties(SimModel model)
           
static void makeParameterFileFromCurVals(Object o, String[] props, String fileName)
           
protected  void ParamterUtility()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterUtility

public ParameterUtility()
Method Detail

ParamterUtility

protected void ParamterUtility()

createParameters

public static Vector createParameters(Object o,
                                      String[] properties)
                               throws IntrospectionException,
                                      IllegalAccessException,
                                      InvocationTargetException
Creates a Vector of Parameters based on the current property values of Object o.

Parameters:
o - the Object whose properties should become the parameters
properties - the array of properties to create parameters from
IntrospectionException
IllegalAccessException
InvocationTargetException

getModelProperties

public static Hashtable getModelProperties(SimModel model)
                                    throws IntrospectionException,
                                           IllegalAccessException,
                                           InvocationTargetException
IntrospectionException
IllegalAccessException
InvocationTargetException

makeParameterFileFromCurVals

public static void makeParameterFileFromCurVals(Object o,
                                                String[] props,
                                                String fileName)
                                         throws IntrospectionException,
                                                IllegalAccessException,
                                                InvocationTargetException,
                                                RepastException,
                                                IOException
IntrospectionException
IllegalAccessException
InvocationTargetException
RepastException
IOException

RePast
v. 2.0

Bug reports and feature requests to RePast