|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.parameter.AbstractParameterSetter
uchicago.src.sim.parameter.DefaultParameterSetter
public class DefaultParameterSetter
Implementation of ParameterSetter that works with the original "{" style repast parameter format.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uchicago.src.sim.parameter.AbstractParameterSetter |
|---|
AbstractParameterSetter.ParamName, AbstractParameterSetter.ParamNameIterator |
| Constructor Summary | |
|---|---|
DefaultParameterSetter()
Creates a DefaultParameterSetter. |
|
DefaultParameterSetter(java.lang.Object o,
java.lang.String[] properties)
Creates a DefaultParameterSetter to set parameter on the specified object. |
|
| Method Summary | |
|---|---|
java.util.Hashtable |
getDefaultModelParameters(SimModel model)
Returns a Hashtable whose keys are parameter names and values are parameter values. |
java.util.ArrayList |
getDynamicParameterNames()
|
java.lang.Object |
getParameter(java.lang.String name)
Gets the current value of a named parameter. |
java.lang.Class |
getParameterType(java.lang.String name)
|
java.lang.Object |
getParameterValue(java.lang.String name,
SimModel model)
Gets the current value of a named parameter. |
boolean |
hasNext()
|
void |
init(java.lang.String file)
Initialize the setter using the specified file. |
boolean |
isConstant(java.lang.String name)
|
boolean |
isParameter(java.lang.String name)
|
java.util.Iterator |
parameterNames()
|
void |
setModelParameters(SimModel model)
Sets the parameters for the specified model. |
void |
setNextModelParameters(SimModel model)
Increments the parameters in this ParameterSetter and then sets the model's parameters. |
| Methods inherited from class uchicago.src.sim.parameter.AbstractParameterSetter |
|---|
capitalize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultParameterSetter()
public DefaultParameterSetter(java.lang.Object o,
java.lang.String[] properties)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
o - the Object whose properties or parameters we want to setproperties - the name of those parameters
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException| Method Detail |
|---|
public void init(java.lang.String file)
throws java.io.IOException
file - the name of the parameter file
java.io.IOExceptionpublic boolean isParameter(java.lang.String name)
name - the name of the parameter to test
public boolean isConstant(java.lang.String name)
name - the name of the parameter to test
public java.util.ArrayList getDynamicParameterNames()
public java.util.Hashtable getDefaultModelParameters(SimModel model)
getInitParam with the addition of the random seed
and the value is the current parameter file
value if the parameter exists in the parameter file. If not, then the
value is that of the model.
model - the model whose parameters we want to get
public void setModelParameters(SimModel model)
model - the model whose parameters are setpublic boolean hasNext()
public void setNextModelParameters(SimModel model)
model - the model whose parameters are set
public java.lang.Object getParameterValue(java.lang.String name,
SimModel model)
name - the name of the parametermodel - a reference to the SimModel associated with these
parameters
public java.lang.Object getParameter(java.lang.String name)
name - the name of the parametermodel - a reference to the SimModel associated with these
parameters
public java.util.Iterator parameterNames()
public java.lang.Class getParameterType(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||