|
||||||||||
| 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.DistanceSeisParameter
public class DistanceSeisParameter
Title: DistanceSeisParameter
Description: Special subclass of PropagationEffectParameter. This computes the closest distance to the seimogenic part of the fault; that is, the closest distance to the part of the fault that is below the seimogenic thickness (seisDepth); this depth is currently hardwired at 3 km, but we can add setSeisDepth() and getSeisDepth() methods if desired (the setter will have to create a new constraint with seisDepth as the lower bound, which can be done even if the parameter has been set as non editable). Note that if the earthquake rupture is a line or point source where the depths are less than seisDepth, then the depths are treated as seisDepth (e.g., for grid based forecast where all sources are put at zero depth)
DistanceRupParameter,
DistanceJBParameter,
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 |
static double |
SEIS_DEPTH
set default seismogenic depth. |
| 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 | |
|---|---|
DistanceSeisParameter()
No-Arg constructor that just calls init() with null constraints. |
|
DistanceSeisParameter(double defaultValue)
This constructor sets the default value. |
|
DistanceSeisParameter(ParameterConstraint warningConstraint)
Constructor that sets up constraints. |
|
DistanceSeisParameter(ParameterConstraint warningConstraint,
double defaultValue)
Constructor that sets up constraints & the default value. |
|
| Method Summary | |
|---|---|
protected void |
calcValueFromSiteAndEqkRup()
Note that this does 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
public static final double SEIS_DEPTH
| Constructor Detail |
|---|
public DistanceSeisParameter()
public DistanceSeisParameter(double defaultValue)
public DistanceSeisParameter(ParameterConstraint warningConstraint)
throws ConstraintException
ConstraintException
public DistanceSeisParameter(ParameterConstraint warningConstraint,
double defaultValue)
throws ConstraintException
ConstraintException| 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 | |||||||||