uchicago.src.sim.parameter
Class ParameterSetterFactory

java.lang.Object
  extended by uchicago.src.sim.parameter.ParameterSetterFactory

public class ParameterSetterFactory
extends java.lang.Object

Factory utility methods for creating ParameterSetters given a specifed file.

Version:
$Revision: 1.8 $ $Date: 2004/11/03 19:51:04 $

Constructor Summary
ParameterSetterFactory()
           
 
Method Summary
static ParameterSetter createDefaultParameterSetter()
          Creates a DefaultParameterSetter.
static ParameterSetter createParameterSetter(java.lang.String fileName)
          Creates the appropriate ParameterSetter for the specified file.
static ParameterSetter createSingleSetParameterSetter(int runCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterSetterFactory

public ParameterSetterFactory()
Method Detail

createParameterSetter

public static ParameterSetter createParameterSetter(java.lang.String fileName)
                                             throws java.io.IOException
Creates the appropriate ParameterSetter for the specified file. The first line the file should be "# fully.qualified.name.of.ParameterSetter". This will attempt to instantiate the named class and call its init method with the fileName as an argument.

Parameters:
fileName - the name of the parameter file
Returns:
a ParameterSetter suitable for reading the specified file.
Throws:
java.io.IOException - if unable to read the file or create the appropriate ParameterSetter.

createSingleSetParameterSetter

public static ParameterSetter createSingleSetParameterSetter(int runCount)

createDefaultParameterSetter

public static ParameterSetter createDefaultParameterSetter()
Creates a DefaultParameterSetter.

Returns:
a DefaultParameterSetter.