|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.AbstractParameter<E>
org.opensha.sha.imr.param.PropagationEffectParams.PropagationEffectParameter<Double>
org.opensha.sha.imr.param.PropagationEffectParams.AbstractDoublePropEffectParam
org.opensha.sha.imr.param.PropagationEffectParams.DistanceJBParameter
public class DistanceJBParameter
Title: DistanceJBParameter
Description: Special subclass of PropagationEffectParameter. This finds the shortest distance to the surface projection of the fault.
DistanceRupParameter,
DistanceSeisParameter,
Serialized Form| Field Summary | |
|---|---|
protected static String |
C
Class name used in debug strings |
protected static boolean |
D
If true debug statements are printed out |
static String |
NAME
Hardcoded name |
| Fields inherited from class org.opensha.sha.imr.param.PropagationEffectParams.AbstractDoublePropEffectParam |
|---|
ignoreWarning, warningConstraint, warningListeners |
| Fields inherited from class org.opensha.sha.imr.param.PropagationEffectParams.PropagationEffectParameter |
|---|
eqkRupture, site |
| 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 |
| Fields inherited from interface org.opensha.commons.metadata.XMLSaveable |
|---|
XML_METADATA_NAME |
| Constructor Summary | |
|---|---|
DistanceJBParameter()
No-Arg constructor that just calls init() with null constraints. |
|
DistanceJBParameter(double defaultValue)
This constructor sets the default value. |
|
| Method Summary | |
|---|---|
protected void |
calcValueFromSiteAndEqkRup()
Note that this doesn't not throw a warning |
Object |
clone()
Returns a copy so you can't edit or damage the origial. |
String |
getType()
This is used to determine what widget editor to use in GUI Applets. |
protected void |
init()
Initializes the constraints, name, etc. |
protected void |
init(DoubleConstraint warningConstraint)
Initializes the constraints, name, etc. |
boolean |
setIndividualParamValueFromXML(Element el)
This should set the value of this individual parameter. |
| Methods inherited from class org.opensha.sha.imr.param.PropagationEffectParams.AbstractDoublePropEffectParam |
|---|
addParameterChangeWarningListener, compareTo, equals, fireParameterChangeWarning, getEditor, getWarningConstraint, getWarningMax, getWarningMin, isIgnoreWarning, isRecommended, removeParameterChangeWarningListener, setIgnoreWarning, setValue, setValueIgnoreWarning, setWarningConstraint |
| Methods inherited from class org.opensha.sha.imr.param.PropagationEffectParams.PropagationEffectParameter |
|---|
getValue, setValue |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensha.commons.data.Named |
|---|
getName |
| Methods inherited from interface org.opensha.commons.metadata.XMLSaveable |
|---|
toXMLMetadata |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
public static final String NAME
| Constructor Detail |
|---|
public DistanceJBParameter()
public DistanceJBParameter(double defaultValue)
| Method Detail |
|---|
protected void init(DoubleConstraint warningConstraint)
protected void init()
protected void calcValueFromSiteAndEqkRup()
calcValueFromSiteAndEqkRup in class PropagationEffectParameter<Double>public String getType()
getType in interface Parameter<Double>getType in class PropagationEffectParameter<Double>public Object clone()
Note: this is not a true clone. I did not clone Site or ProbEqkRupture. PE could potentially have a million points, way to expensive to clone. Should not be a problem though because once the PE and Site are set, they can not be modified by this class. The clone has null Site and PE parameters.
This will probably have to be changed in the future once the use of a clone is needed and we see the best way to implement this.
clone in interface Parameter<Double>clone in class AbstractParameter<Double>public boolean setIndividualParamValueFromXML(Element el)
AbstractParameter
setIndividualParamValueFromXML in class AbstractParameter<Double>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||