| Modifier and Type | Method and Description |
|---|---|
GmmInput |
build() |
GmmInput.Builder |
dip(double dip)
Set the rupture dip.
|
GmmInput.Builder |
distances(Distance distances)
Set the Joyner-Boore distance, rupture distance, and distance X with a
Distance object. |
GmmInput.Builder |
distances(double rJB,
double rRup,
double rX)
Set the Joyner-Boore distance, rupture distance, and distance X.
|
GmmInput.Builder |
fromCopy(GmmInput model)
Return a
Builder prepopulated with values copied from the
supplied model. |
GmmInput.Builder |
mag(double Mw)
Set the moment magnitude.
|
GmmInput.Builder |
rake(double rake)
Set the rupture rake.
|
GmmInput.Builder |
rJB(double rJB)
Set the Joyner-Boore distance (distance to surface projection of
rupture).
|
GmmInput.Builder |
rRup(double rRup)
Set the rupture distance (distance to rupture plane).
|
GmmInput.Builder |
rX(double rX)
Set the distance X (shortest distance to extended strike of rupture).
|
GmmInput.Builder |
set(GmmInput.Field id,
String s)
Set a field in this builder.
|
GmmInput.Builder |
vs30(double vs30)
Set the vs30 at site.
|
GmmInput.Builder |
vs30(double vs30,
boolean vsInf)
Set both the vs30 at site and whether
vs30 is inferred or
measured. |
GmmInput.Builder |
vsInf(boolean vsInf)
Set whether
vs30 is inferred or measured. |
GmmInput.Builder |
width(double width)
Set the rupture width.
|
GmmInput.Builder |
withDefaults()
Return a
Builder prepopulated with default values. |
GmmInput.Builder |
z1p0(double z1p0)
Set the depth to 1.0 km/s (in km).
|
GmmInput.Builder |
z2p5(double z2p5)
Set the depth to 2.5 km/s (in km).
|
GmmInput.Builder |
zHyp(double zHyp)
Set the depth to rupture hypocenter.
|
GmmInput.Builder |
zTop(double zTop)
Set the depth to top of rupture.
|
public GmmInput.Builder fromCopy(GmmInput model)
Builder prepopulated with values copied from the
supplied model.model - to copyIllegalStateException - if any other builder method has already
been called without first calling build()public GmmInput.Builder withDefaults()
Builder prepopulated with default values. Builder has
the following presets:
IllegalStateException - if any other builder method has already
been called without first calling build()public GmmInput.Builder set(GmmInput.Field id, String s)
id - of the field to sets - string value that will be converted to appropriate classpublic GmmInput.Builder mag(double Mw)
public GmmInput.Builder rJB(double rJB)
public GmmInput.Builder rRup(double rRup)
public GmmInput.Builder rX(double rX)
public GmmInput.Builder distances(double rJB, double rRup, double rX)
public GmmInput.Builder distances(Distance distances)
Distance object.public GmmInput.Builder dip(double dip)
public GmmInput.Builder width(double width)
public GmmInput.Builder zTop(double zTop)
public GmmInput.Builder zHyp(double zHyp)
public GmmInput.Builder rake(double rake)
public GmmInput.Builder vs30(double vs30)
public GmmInput.Builder vsInf(boolean vsInf)
vs30 is inferred or measured.public GmmInput.Builder vs30(double vs30, boolean vsInf)
vs30 is inferred or
measured.public GmmInput.Builder z1p0(double z1p0)
public GmmInput.Builder z2p5(double z2p5)
public GmmInput build()