Package repast.simphony.parameter
Interface Parameters
- All Superinterfaces:
Cloneable
- All Known Subinterfaces:
MutableParameters
- All Known Implementing Classes:
AbstractParameters
,BeanParameters
,BoundParameters
,DefaultParameters
,EmptyParameters
Encapsulates simulation time model parameters.
- Author:
- Nick Collier
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds listener that will listen for parameter changes on this Parameters.clone()
Method to clone a Parameter object.getBoolean
(String paramName) Gets the Boolean value associated with the specified parameter name.getDisplayName
(String paramName) Gets the display name for the specified parameter name.Gets the Double value associated with the specified parameter name.Gets the Float value associated with the specified parameter name.getInteger
(String paramName) Gets the Integer value associated with the specified parameter name.Gets the Long value associated with the specified parameter name.Gets the Schema for this Parameters object.Gets the String value associated with the specified parameter name.Gets the value associated with the specified parameter name.getValueAsString
(String paramName) Gets a String representation of the specified parameter's value.boolean
isReadOnly
(String paramName) True if parameter is read only.void
Removes the specified listener from the listeners listening to this Parameters object.void
Sets the specified parameter name to the specified value.
-
Field Details
-
NULL
-
-
Method Details
-
addPropertyChangeListener
Adds listener that will listen for parameter changes on this Parameters.- Parameters:
listener
-
-
removePropertyChangeListener
Removes the specified listener from the listeners listening to this Parameters object.- Parameters:
listener
-
-
getSchema
Schema getSchema()Gets the Schema for this Parameters object.- Returns:
- the Schema for this Parameters object.
-
clone
Parameters clone()Method to clone a Parameter object.- Returns:
- a Parameter clone.
-
getValue
Gets the value associated with the specified parameter name.- Parameters:
paramName
- the name of the parameter whose value we want- Returns:
- the value associated with the specified parameter name.
-
getDouble
Gets the Double value associated with the specified parameter name.- Parameters:
paramName
- the name of the parameter whose value we want- Returns:
- the value associated with the specified parameter name.
-
getInteger
Gets the Integer value associated with the specified parameter name.- Parameters:
paramName
- the name of the parameter whose value we want- Returns:
- the value associated with the specified parameter name.
-
getBoolean
Gets the Boolean value associated with the specified parameter name.- Parameters:
paramName
- the name of the parameter whose value we want- Returns:
- the value associated with the specified parameter name.
-
getString
Gets the String value associated with the specified parameter name.- Parameters:
paramName
- the name of the parameter whose value we want- Returns:
- the value associated with the specified parameter name.
-
getLong
Gets the Long value associated with the specified parameter name.- Parameters:
paramName
- the name of the parameter whose value we want- Returns:
- the value associated with the specified parameter name.
-
getFloat
Gets the Float value associated with the specified parameter name.- Parameters:
paramName
- the name of the parameter whose value we want- Returns:
- the value associated with the specified parameter name.
-
getValueAsString
Gets a String representation of the specified parameter's value.- Parameters:
paramName
- the name of the parameter- Returns:
- a String representation of the specified parameters's value.
-
setValue
Sets the specified parameter name to the specified value.- Parameters:
paramName
- the name of the parameter to set to the new valueval
- the new value
-
isReadOnly
True if parameter is read only.- Parameters:
paramName
- the name of the parameter- Returns:
- true if parameter is read-only otherwise false.
-
getDisplayName
Gets the display name for the specified parameter name.- Parameters:
paramName
- the parameter name- Returns:
- the display name for the specified parameter name.
-