Package gov.usgs.earthquake.momenttensor
Class MTIndexerModule
java.lang.Object
gov.usgs.util.DefaultConfigurable
gov.usgs.earthquake.indexer.DefaultIndexerModule
gov.usgs.earthquake.momenttensor.MTIndexerModule
- All Implemented Interfaces:
IndexerModule,Configurable
Moment Tensor Indexer Module.
Implements ANSS business logic for preferred moment tensors.
Intended order is:
Uses
- Mww (W-phase)
- Mwc from GCMT
- Mwc
- Mwb
- Other
- Mwb outside magnitude range [5.5, 7.0]
Uses
DefaultIndexerModule.getProductSummary(Product) defaults, with
the following additional weights:
Event Sourcecomes from the product propertyeventsourceMagnitudecomes from the product propertyderived-magnitudeTypecomes from the product propertyderived-magnitude-type, or (if not found) from the product propertybeachball-type
- Type is
Mww +60- Type is
Mwc +2- Type is
Mwb +1- Type is
Mwb, and Magnitude outside the range[5.5, 7.0] -100- Event Source is
GCMT +56
-
Field Summary
Fields inherited from class gov.usgs.earthquake.indexer.DefaultIndexerModule
ANSS_CONTRIBUTOR_WEIGHT, AUTHORITATIVE_EVENT_WEIGHT, AUTHORITATIVE_WEIGHT, DEFAULT_PREFERRED_WEIGHT, IGNORE_REGIONS_PROPERTY, NEIC_CONTRIBUTOR_WEIGHT, SAME_SOURCE_WEIGHTFields inherited from interface gov.usgs.earthquake.indexer.IndexerModule
LEVEL_DEFAULT, LEVEL_SUPPORTED, LEVEL_UNSUPPORTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetPreferredWeight(ProductSummary summary) Calculate preferred weight formoment-tensortype product.intgetSupportLevel(Product product) Override IndexerModule api method.Methods inherited from class gov.usgs.earthquake.indexer.DefaultIndexerModule
configure, getBaseProductType, getIgnoreRegions, getProductSummary, getSignatureVerifier, setSignatureVerifierMethods inherited from class gov.usgs.util.DefaultConfigurable
getName, setName, shutdown, startup
-
Constructor Details
-
MTIndexerModule
public MTIndexerModule()
-
-
Method Details
-
getSupportLevel
Override IndexerModule api method.- Specified by:
getSupportLevelin interfaceIndexerModule- Overrides:
getSupportLevelin classDefaultIndexerModule- Parameters:
product- the product to test.- Returns:
- IndexerModule.LEVEL_SUPPORTED when type is
moment-tensor; otherwise, IndexerModule.LEVEL_UNSUPPORTED.
-
getPreferredWeight
Calculate preferred weight formoment-tensortype product.- Overrides:
getPreferredWeightin classDefaultIndexerModule- Parameters:
summary- "moment-tensor" type product summary.- Returns:
- when type is
moment-tensor,IndexerModule.LEVEL_SUPPORTED; otherwise,IndexerModule.LEVEL_UNSUPPORTED - Throws:
Exception- if error occurs
-