Class GmmInput.Builder

  • Enclosing class:
    GmmInput

    public static class GmmInput.Builder
    extends Object
    • Method Detail

      • fromCopy

        public GmmInput.Builder fromCopy​(GmmInput model)
        Return a Builder prepopulated with values copied from the supplied model.
        Parameters:
        model - to copy
        Throws:
        IllegalStateException - if any other builder method has already been called without first calling build()
      • withDefaults

        public GmmInput.Builder withDefaults()
        Return a Builder prepopulated with default values. Builder has the following presets:
        • Mw: 6.5
        • rJB: 10.0 (km)
        • rRup: 10.3 (km)
        • rX: 10.0 (km)
        • dip: 90˚
        • width: 14.0 (km)
        • zTor: 0.5 (km)
        • zHyp: 7.5 (km)
        • rake: 0˚
        • vs30: 760 (m/s)
        • z1p0: NaN (null when serialized)
      • z2p5: NaN (null when serialized)
      • zSed: NaN (null when serialized)
Throws:
IllegalStateException - if any other builder method has already been called without first calling build()