Package repast.simphony.parameter
Interface MutableParameters
- All Superinterfaces:
Cloneable,Parameters
- All Known Implementing Classes:
BoundParameters,DefaultParameters
Encapsulates a mutable set of simulation time model parameters.
- Author:
- Michelle Kehrer
-
Field Summary
Fields inherited from interface repast.simphony.parameter.Parameters
NULL -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(String name, List constrainingList) Constains the value of the named to parameter to those in the list.voidaddConstraint(String name, SteppedRange constrainingRange) Constrains the value of the named parameter to those in the specified range.voidaddConvertor(String name, StringConverter converter) Adds a converter to convert the named parameter back and forth to a String.voidaddParameter(String name, String displayName, Class type, Object value, boolean isReadOnly) Adds a parameter to this Parameters.booleanremoveParameter(String name) Removes the named parameterMethods inherited from interface repast.simphony.parameter.Parameters
addPropertyChangeListener, clone, getBoolean, getDisplayName, getDouble, getFloat, getInteger, getLong, getSchema, getString, getValue, getValueAsString, isReadOnly, removePropertyChangeListener, setValue
-
Method Details
-
addParameter
Adds a parameter to this Parameters.- Parameters:
name- the name of the parameterdisplayName- the display name for the parametertype- the type of the parametervalue- the default value of the parameterisReadOnly- whether or not the parameter is read only.
-
addConstraint
Constains the value of the named to parameter to those in the list.- Parameters:
name- the name of the parameterconstrainingList- a list containing the possible values for the named parameter
-
addConvertor
Adds a converter to convert the named parameter back and forth to a String.- Parameters:
name- the name of the parameterconverter- the converter
-
addConstraint
Constrains the value of the named parameter to those in the specified range.- Parameters:
name- the name of the parmaeterconstrainingRange- a range of the possible values for the named parameter
-
removeParameter
Removes the named parameter- Parameters:
name- the name of the parameter- Returns:
- whether or not removal was successful
-