|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.AbstractParameter<ArbitrarilyDiscretizedFunc>
org.opensha.commons.param.impl.ArbitrarilyDiscretizedFuncParameter
public class ArbitrarilyDiscretizedFuncParameter
Title: ArbitrarilyDiscretizedFuncParameter.java
Description: Makes a textfield to enter X and Y values. 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. |
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 | |
|---|---|
ArbitrarilyDiscretizedFuncParameter(String name,
ArbitrarilyDiscretizedFunc discretizedFunc)
No constraints specified, all values allowed. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy so you can't edit or damage the origial. |
boolean |
equals(Object obj)
Compares value to see if equal. |
ParameterEditor<ArbitrarilyDiscretizedFunc> |
getEditor()
Returns the Editor for this 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). |
ArbitrarilyDiscretizedFunc |
getParameter()
|
String |
getType()
Returns the name of the parameter class |
String |
getXUnits()
Returns the units of X values for this parameter. |
boolean |
isAllowed(ArbitrarilyDiscretizedFunc obj)
Compares the values to if this is less than, equal to, or greater than the comparing objects. |
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
| Constructor Detail |
|---|
public ArbitrarilyDiscretizedFuncParameter(String name,
ArbitrarilyDiscretizedFunc discretizedFunc)
name - Name of the parameterdiscretizedFunc - DiscretizedFunc object| Method Detail |
|---|
public void setXUnits(String units)
throws EditableException
EditableExceptionpublic String getXUnits()
public boolean isAllowed(ArbitrarilyDiscretizedFunc obj)
isAllowed in interface Parameter<ArbitrarilyDiscretizedFunc>isAllowed in class AbstractParameter<ArbitrarilyDiscretizedFunc>obj - The object to compare this to
ClassCastException - Is thrown if the comparing object is not
a ParameterListParameter.public boolean equals(Object obj)
equals in interface Parameter<ArbitrarilyDiscretizedFunc>equals in class AbstractParameter<ArbitrarilyDiscretizedFunc>obj - The object to compare this to
ClassCastException - Is thrown if the comparing object is not
a LocationListParameter.public Object clone()
clone in interface Parameter<ArbitrarilyDiscretizedFunc>clone in class AbstractParameter<ArbitrarilyDiscretizedFunc>public ArbitrarilyDiscretizedFunc getParameter()
public String getType()
getType in interface Parameter<ArbitrarilyDiscretizedFunc>getType in class AbstractParameter<ArbitrarilyDiscretizedFunc>public String getMetadataString()
getMetadataString in interface Parameter<ArbitrarilyDiscretizedFunc>getMetadataString in class AbstractParameter<ArbitrarilyDiscretizedFunc>public boolean setIndividualParamValueFromXML(Element el)
AbstractParameter
setIndividualParamValueFromXML in class AbstractParameter<ArbitrarilyDiscretizedFunc>public ParameterEditor<ArbitrarilyDiscretizedFunc> getEditor()
ParameterEditor for this Parameter. It is
recommended that editors be lazily instantiated.
getEditor in interface Parameter<ArbitrarilyDiscretizedFunc>Editor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||