|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.AbstractParameter<ParameterList>
org.opensha.commons.param.impl.ParameterListParameter
org.opensha.commons.param.impl.TreeBranchWeightsParameter
public class TreeBranchWeightsParameter
Title: TreeBranchWeightsParameter
Description: This is a new parameter which contains the parameterList of the different weights for the branches
| Field Summary | |
|---|---|
protected static String |
C
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
protected static String |
PARAM_TYPE
|
| 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 | |
|---|---|
TreeBranchWeightsParameter(String name)
No constraints specified for this parameter. |
|
TreeBranchWeightsParameter(String name,
ParameterList paramList)
No constraints specified, all values allowed. |
|
| Method Summary | |
|---|---|
boolean |
doWeightsSumToOne(ParameterList paramList)
|
ParameterEditor<ParameterList> |
getEditor()
Returns the Editor for this Parameter. |
double |
getTolerance()
gets the tolerence for the sum of branch weights |
String |
getType()
Returns the name of the parameter class |
void |
setTolerence(double tolerance)
sets the tolerance for the sums of the weights |
void |
setValue(ParameterList value)
Set's the parameter's value. |
| Methods inherited from class org.opensha.commons.param.impl.ParameterListParameter |
|---|
clone, getMetadataString, getParameter, getParametersIterator, setIndividualParamValueFromXML |
| 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
protected static final String PARAM_TYPE
| Constructor Detail |
|---|
public TreeBranchWeightsParameter(String name)
name - Name of the parameter
public TreeBranchWeightsParameter(String name,
ParameterList paramList)
name - Name of the parameterparamList - ParameterList object| Method Detail |
|---|
public void setTolerence(double tolerance)
tolerance - public double getTolerance()
public void setValue(ParameterList value)
throws ParameterException
setValue in interface Parameter<ParameterList>setValue in class ParameterListParametervalue - The new value for this Parameter
ParameterException - Thrown if the object is currenlty not
editable
ConstraintException - Thrown if the object value is not allowedpublic boolean doWeightsSumToOne(ParameterList paramList)
public String getType()
getType in interface Parameter<ParameterList>getType in class ParameterListParameterpublic ParameterEditor<ParameterList> getEditor()
ParameterEditor for this Parameter. It is
recommended that editors be lazily instantiated.
getEditor in interface Parameter<ParameterList>getEditor in class ParameterListParameterEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||