|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.AbstractParameter<EvenlyDiscretizedFunc>
org.opensha.commons.param.impl.EvenlyDiscretizedFuncParameter
public class EvenlyDiscretizedFuncParameter
Title: EvenlyDiscretizedFuncParameter.java
Description: This parameter accepts a EvenlyDiscretizedFunc as a value. It shows the GUI so that user can enter min/max/num values and then the correspoding Y values for the EvelyDiscretizedFunc This class has 2 methods for setting the units : 1. setUnits() : This method sets the units for Y values 2. setXUnits(): This method sets the units for X values. Similarly, we have 2 different methods for getting the units.
| Field Summary | |
|---|---|
protected static String |
C
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
static String |
MAX_PARAM_NAME
|
static String |
MIN_PARAM_NAME
|
static String |
NUM_PARAM_NAME
|
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 | |
|---|---|
EvenlyDiscretizedFuncParameter(String name,
EvenlyDiscretizedFunc discretizedFunc)
No constraints specified, all values allowed. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy so you can't edit or damage the origial. |
AbstractParameterEditorOld |
getEditor()
Returns the Editor for this Parameter. |
ParameterList |
getEvenlyDiscretizedParams()
gets the ParameterList for the EvenlyDiscretized parameter |
String |
getMetadataString()
This overrides the getmetadataString() method because the value here does not have an ASCII representation (and we need to know the values of the independent parameter instead). |
EvenlyDiscretizedFunc |
getParameter()
|
String |
getType()
Returns the name of the parameter class |
String |
getXUnits()
Returns the units of X values for this parameter. |
boolean |
setIndividualParamValueFromXML(Element el)
This should set the value of this individual parameter. |
void |
setXUnits(String units)
Sets the units for X Values. |
| 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
public static final String MIN_PARAM_NAME
public static final String MAX_PARAM_NAME
public static final String NUM_PARAM_NAME
| Constructor Detail |
|---|
public EvenlyDiscretizedFuncParameter(String name,
EvenlyDiscretizedFunc discretizedFunc)
name - Name of the parameterdiscretizedFunc - DiscretizedFunc object| Method Detail |
|---|
public ParameterList getEvenlyDiscretizedParams()
public void setXUnits(String units)
throws EditableException
EditableExceptionpublic String getXUnits()
public Object clone()
clone in interface Parameter<EvenlyDiscretizedFunc>clone in class AbstractParameter<EvenlyDiscretizedFunc>public EvenlyDiscretizedFunc getParameter()
public String getType()
getType in interface Parameter<EvenlyDiscretizedFunc>getType in class AbstractParameter<EvenlyDiscretizedFunc>public String getMetadataString()
getMetadataString in interface Parameter<EvenlyDiscretizedFunc>getMetadataString in class AbstractParameter<EvenlyDiscretizedFunc>public boolean setIndividualParamValueFromXML(Element el)
AbstractParameter
setIndividualParamValueFromXML in class AbstractParameter<EvenlyDiscretizedFunc>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 | |||||||||