|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.AbstractParameter
org.opensha.sha.param.SimpleFaultParameter
public class SimpleFaultParameter
Title: SimpleFaultParameter
Description: This class acts as the intermediatory between SimpleFaultParameter and its editor.It extends the Dependent Parameter class so as to save the list of visible parameters. Most of the editor functionality has been embedded into this class because we want to make all the functionality available to the user if he does not want to use the GUI components. This is a more general parameter than the simple fault. Actually it creates an object for the EvenlyGriddedSurfaceEvenlyGriddedSurface
| Field Summary | |
|---|---|
protected static String |
C
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
static int |
DEFAULT_DIPS
|
static double |
DEFAULT_GRID_SPACING
|
static int |
DEFAULT_NUM_FAULT_TRACE
|
static String |
DEPTH_PARAM_NAME
|
static String |
DEPTH_TITLE
|
static String |
DIP_DIRECTION_PARAM_NAME
DoubleParameter for Ave. |
static String |
DIP_PARAM_NAME
|
static String |
DIP_TITLE
|
static String |
FAULT_NAME
|
static String |
FAULT_TYPE_TITLE
|
static String |
FRANKEL
|
static String |
GRID_SPACING
|
static String |
GRID_SPACING_UNITS
|
static String |
LAT_PARAM_NAME
|
static String |
LAT_TITLE
|
static int |
latlonCols
|
static String |
LON_PARAM_NAME
|
static String |
LON_TITLE
|
static String |
NUM_DIPS
|
static String |
NUMBER_OF_FAULT_TRACE
|
static String |
STIRLING
|
| 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 | |
|---|---|
SimpleFaultParameter(String name)
No constraints specified for this parameter. |
|
SimpleFaultParameter(String name,
AbstractEvenlyGriddedSurfaceWithSubsets surface)
No constraints specified, all values allowed. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy so you can't edit or damage the origial. |
int |
compareTo(Object obj)
Compares the values to if this is less than, equal to, or greater than the comparing objects. |
boolean |
equals(Object obj)
Compares value to see if equal. |
Parameter |
getDepthParam()
returns ParameterListParameter |
ArrayList |
getDepthParamVals()
|
Parameter |
getDipDirectionParam()
|
Parameter |
getDipParam()
returns ParameterListParameter |
ArrayList |
getDipParamVals()
|
AbstractParameterEditorOld |
getEditor()
Returns the Editor for this Parameter. |
String |
getFaultName()
|
FaultTrace |
getFaultTrace()
|
ParameterList |
getFaultTraceParamList()
|
Parameter |
getFaultTypeParam()
|
double |
getGridSpacing()
Returns the grid spacing of the Fault Surface. |
Parameter |
getLatParam()
returns ParameterListParameter |
ArrayList |
getLatParamVals()
|
Parameter |
getLonParam()
returns ParameterListParameter |
ArrayList |
getLonParamVals()
|
double |
getLowerSiesmogenicDepth()
|
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). |
Parameter |
getNumDipParam()
|
String |
getType()
Returns the name of the parameter class |
double |
getUpperSiesmogenicDepth()
|
void |
initDepthParamList()
Creates Latitude and Longitude parameters based on the number of the Dips. |
void |
initDipParamList()
Creates Dips parameters based on the number of the Dips. |
void |
initLatLonParamList()
Creates Latitude and Longitude parameters based on the number of the faultTrace. |
void |
parameterChange(ParameterChangeEvent event)
This is the main function of this interface. |
void |
setAll(double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
This sets all the fault data needed to make a evenly discretized fault |
void |
setAll(String name,
double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
This sets all the fault data needed to make a evenly discretized fault |
void |
setDipDirection(double value)
Sets the Average Dip Direction for the evenly discritized fault. |
void |
setEvenlyGriddedSurfaceFromParams()
creates the evenly gridded surface from the fault parameter. |
boolean |
setIndividualParamValueFromXML(Element el)
This should set the value of this individual parameter. |
void |
setNumDips(int numDips)
Sets the Num Dips |
void |
setNumFaultTracePoints(int numPoints)
Sets the Num Fault Trace Points |
| 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
public static final String FAULT_NAME
public static final String GRID_SPACING
public static final String GRID_SPACING_UNITS
public static final String NUMBER_OF_FAULT_TRACE
public static final String NUM_DIPS
public static final String DEPTH_PARAM_NAME
public static final String DIP_PARAM_NAME
public static final String LON_PARAM_NAME
public static final String LAT_PARAM_NAME
public static final int DEFAULT_NUM_FAULT_TRACE
public static final int DEFAULT_DIPS
public static final int latlonCols
public static final double DEFAULT_GRID_SPACING
public static final String LAT_TITLE
public static final String LON_TITLE
public static final String DIP_TITLE
public static final String DEPTH_TITLE
public static final String FAULT_TYPE_TITLE
public static final String FRANKEL
public static final String STIRLING
public static final String DIP_DIRECTION_PARAM_NAME
| Constructor Detail |
|---|
public SimpleFaultParameter(String name)
name - Name of the parameter
public SimpleFaultParameter(String name,
AbstractEvenlyGriddedSurfaceWithSubsets surface)
name - Name of the parametersurface - EvenlyGriddedSurface object| Method Detail |
|---|
public int compareTo(Object obj)
throws UnsupportedOperationException
compareTo in interface Comparableobj - The object to compare this to
ClassCastException - Is thrown if the comparing object is not
a DoubleParameter, or DoubleDiscreteParameter.
UnsupportedOperationException
public boolean equals(Object obj)
throws UnsupportedOperationException
equals in interface Parameterequals in class AbstractParameterobj - The object to compare this to
ClassCastException - Is thrown if the comparing object is not
a DoubleParameter, or DoubleDiscreteParameter.
UnsupportedOperationException
public Object clone()
throws UnsupportedOperationException
clone in interface Parameterclone in class AbstractParameterUnsupportedOperationExceptionpublic ParameterList getFaultTraceParamList()
public Parameter getLatParam()
public Parameter getLonParam()
public Parameter getDepthParam()
public Parameter getDipParam()
public Parameter getNumDipParam()
public Parameter getFaultTypeParam()
public Parameter getDipDirectionParam()
public void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - public double getGridSpacing()
public void initLatLonParamList()
public void initDipParamList()
public void initDepthParamList()
public void setEvenlyGriddedSurfaceFromParams()
throws RuntimeException
RuntimeExceptionpublic FaultTrace getFaultTrace()
public double getUpperSiesmogenicDepth()
public double getLowerSiesmogenicDepth()
public void setNumFaultTracePoints(int numPoints)
numPoints - number of locations on the fault tracepublic void setNumDips(int numDips)
numDips - public String getFaultName()
public void setDipDirection(double value)
public void setAll(String name,
double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
name - : Name of the faultgridSpacing - lats - : ArrayList of Latitudes for the discretized faultlons - : ArrayList of Longitudes for the discretized faultdips - : ArrayList of Dipsdepths - : ArrayList of Depths, which are one more then the number of dipsfaultType - : STIRLING or FRANKEL fault
public void setAll(double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
gridSpacing - lats - : ArrayList of Latitudes for the discretized faultlons - : ArrayList of Longitudes for the discretized faultdips - : ArrayList of Dipsdepths - : ArrayList of Depths, which are one more then the number of dipsfaultType - : STIRLING or FRANKEL faultpublic ArrayList getLatParamVals()
public ArrayList getLonParamVals()
public ArrayList getDipParamVals()
public ArrayList getDepthParamVals()
public String getMetadataString()
getMetadataString in interface ParametergetMetadataString in class AbstractParameterpublic String getType()
getType in interface ParametergetType in class AbstractParameterpublic boolean setIndividualParamValueFromXML(Element el)
AbstractParameter
setIndividualParamValueFromXML in class AbstractParameterpublic AbstractParameterEditorOld getEditor()
ParameterEditor for this Parameter. It is
recommended that editors be lazily instantiated.
getEditor in interface ParameterEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||