|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterSetter
Classes implementing this interface should also have a no-argument constructor.
| 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)
|
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. |
| Method Detail |
|---|
void init(java.lang.String fileName)
throws java.io.IOException
fileName - the name of the parameter file
java.io.IOExceptionvoid setModelParameters(SimModel model)
model - the model whose parameters are setvoid setNextModelParameters(SimModel model)
model - the model whose parameters are setboolean hasNext()
java.util.ArrayList getDynamicParameterNames()
boolean isParameter(java.lang.String name)
name - the name of the parameter to test
boolean isConstant(java.lang.String name)
name - the name of the parameter to test
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
java.util.Iterator parameterNames()
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 | |||||||||