@Test public void medianInterfaceSoftTable() { double hypoDepth = 30.0; double vs30 = 300.0; String tectRegType = TectonicRegionType.SUBDUCTION_INTERFACE.toString(); validateMedian(hypoDepth, vs30, tectRegType, medianInterfaceSoftTable); }
/** Check median pga for Mw = 6.5, interface event, site type NEHRP D, hypocentral depth 20 km. */ @Test public final void pgaMw65InterfaceNerphDHypodepth20() { String tectonicRegionType = TectonicRegionType.SUBDUCTION_INTERFACE.toString(); double hypocentralDepth = INTERFACE_HYPO_DEPTH; int periodIndex = 0; int magnitudeIndex = 2; int siteTypeIndex = 2; double magnitude = INTERFACE_MAGNITUDE_VALUES[magnitudeIndex]; double vs30 = VS_30[siteTypeIndex]; int expectedResultIndex = 3; validateAgainstTable( tectonicRegionType, hypocentralDepth, periodIndex, magnitude, vs30, expectedResultIndex, pgaInterfaceTable); }
/** * Reads logic tree data and instantiates {@link LogicTree} objects for each {@link * TectonicRegionType}. Each {@link LogicTree} contains {@link AttenuationRelationship} objects * with the given parameters set up. */ public void parse_tree( String component, String intensityMeasureType, double period, double damping, String truncType, double truncLevel, String stdType, double vs30) { LogicTreeReader logicTreeReader = new LogicTreeReader(bufferedReader); Map<String, LogicTree> logicTreeMap = logicTreeReader.read(); if (logicTreeMap.get(TectonicRegionType.ACTIVE_SHALLOW.toString()) != null) { setGMPELogicTree( TectonicRegionType.ACTIVE_SHALLOW.toString(), component, intensityMeasureType, period, damping, truncType, truncLevel, stdType, vs30, logicTreeMap); } if (logicTreeMap.get(TectonicRegionType.STABLE_SHALLOW.toString()) != null) { setGMPELogicTree( TectonicRegionType.STABLE_SHALLOW.toString(), component, intensityMeasureType, period, damping, truncType, truncLevel, stdType, vs30, logicTreeMap); } if (logicTreeMap.get(TectonicRegionType.SUBDUCTION_INTERFACE.toString()) != null) { setGMPELogicTree( TectonicRegionType.SUBDUCTION_INTERFACE.toString(), component, intensityMeasureType, period, damping, truncType, truncLevel, stdType, vs30, logicTreeMap); } if (logicTreeMap.get(TectonicRegionType.SUBDUCTION_SLAB.toString()) != null) { setGMPELogicTree( TectonicRegionType.SUBDUCTION_SLAB.toString(), component, intensityMeasureType, period, damping, truncType, truncLevel, stdType, vs30, logicTreeMap); } }