|
||||||||||
| 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.rpl.RPLParameterSetter
public class RPLParameterSetter
A ParameterSetter for reading and working with rpl format parameter files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uchicago.src.sim.parameter.AbstractParameterSetter |
|---|
AbstractParameterSetter.ParamName, AbstractParameterSetter.ParamNameIterator |
| Constructor Summary | |
|---|---|
RPLParameterSetter()
|
|
| 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 |
getParameterValue(java.lang.String name,
SimModel model)
Gets the current value of a named parameter. |
boolean |
hasNext()
|
void |
init(java.lang.String fileName)
Initialize the setter using the specified fileName. |
boolean |
isConstant(java.lang.String name)
Tests if the named parameter is a constant. |
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 RPLParameterSetter()
| Method Detail |
|---|
public void init(java.lang.String fileName)
throws java.io.IOException
fileName - the name of the parameter file
java.io.IOExceptionpublic void setModelParameters(SimModel model)
model - the model whose parameters are setpublic void setNextModelParameters(SimModel model)
model - the model whose parameters are setpublic boolean hasNext()
public java.util.ArrayList getDynamicParameterNames()
public 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.lang.Object getParameterValue(java.lang.String name,
SimModel model)
ParameterSetter
name - the name of the parametermodel - a reference to the SimModel associated with these
parameters
public java.util.Iterator parameterNames()
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||