|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.AbstractParameter<Estimate>
org.opensha.commons.param.impl.EstimateParameter
public class EstimateParameter
Title: EstimateParameter.java
Description: EstimateParameter wraps the Estimate object. constraints are specified in EstimateConstraint which is alist of allowed estimate type names.
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
|---|---|
protected static String |
C
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
| Fields inherited from class org.opensha.commons.param.AbstractParameter |
|---|
constraint, defaultValue, editable, independentParameters, info, metadataString, name, units, value, XML_COMPLEX_VAL_EL_NAME, XML_GROUP_METADATA_NAME, XML_METADATA_NAME, XML_NULL_VALUE |
| Fields inherited from interface org.opensha.commons.param.Parameter |
|---|
XML_INDEPENDENT_PARAMS_NAME |
| Constructor Summary | |
|---|---|
EstimateParameter(String name)
Constructor with no constraints specified, all values are allowed. |
|
EstimateParameter(String name,
double min,
double max)
Constructor with min/max specified. |
|
EstimateParameter(String name,
double min,
double max,
ArrayList allowedEstimateTypes)
Constructor with min/max specified. |
|
EstimateParameter(String name,
Estimate value)
No constraints specified, all values allowed. |
|
EstimateParameter(String name,
EstimateConstraint constraint,
String units,
Estimate value)
Sets the name, units and value. |
|
EstimateParameter(String name,
String units)
Constructor with no No constraints specified, all values are allowed. |
|
EstimateParameter(String name,
String units,
double min,
double max)
Constructor with min/max specified. |
|
EstimateParameter(String name,
String units,
double min,
double max,
ArrayList allowedEstimateTypes)
Constructor with min/max and list of allowed Estimate types specified Sets the name and units of this parameter. |
|
EstimateParameter(String name,
String units,
Estimate value)
Sets the name, units and value. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy so you can't edit or damage the origial. |
AbstractParameterEditorOld |
getEditor()
Returns the Editor for this Parameter. |
String |
getType()
Returns the type of this parameter. |
boolean |
isAllowed(Estimate val)
Determine if the new value being set is allowed by validating against the constraints. |
boolean |
setIndividualParamValueFromXML(Element el)
This should set the value of this individual parameter. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
| Constructor Detail |
|---|
public EstimateParameter(String name)
public EstimateParameter(String name,
String units)
throws ConstraintException
ConstraintException
public EstimateParameter(String name,
Estimate value)
name - Name of the parametervalue - Integer value of this parameter
public EstimateParameter(String name,
EstimateConstraint constraint,
String units,
Estimate value)
throws ConstraintException
name - Name of the parametetvalue - Integer value of this parameterunits - Units of this parameter
ConstraintException - thrown if the value is not allowed
ConstraintException - Is thrown if the value is not allowed
public EstimateParameter(String name,
String units,
Estimate value)
throws ConstraintException
name - Name of the parametetvalue - Integer value of this parameterunits - Units of this parameter
ConstraintException - thrown if the value is not allowed
ConstraintException - Is thrown if the value is not allowed
public EstimateParameter(String name,
double min,
double max)
public EstimateParameter(String name,
double min,
double max,
ArrayList allowedEstimateTypes)
public EstimateParameter(String name,
String units,
double min,
double max)
throws ConstraintException
ConstraintException
public EstimateParameter(String name,
String units,
double min,
double max,
ArrayList allowedEstimateTypes)
throws ConstraintException
ConstraintException| Method Detail |
|---|
public String getType()
getType in interface Parameter<Estimate>getType in class AbstractParameter<Estimate>public boolean isAllowed(Estimate val)
isAllowed in interface Parameter<Estimate>isAllowed in class AbstractParameter<Estimate>val - Object to check if allowed via constraints
public Object clone()
AbstractParameter
clone in interface Parameter<Estimate>clone in class AbstractParameter<Estimate>public boolean setIndividualParamValueFromXML(Element el)
AbstractParameter
setIndividualParamValueFromXML in class AbstractParameter<Estimate>public AbstractParameterEditorOld getEditor()
ParameterEditor for this Parameter. It is
recommended that editors be lazily instantiated.
Editor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||