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
public class MTIndexerModule extends DefaultIndexerModule
Moment Tensor Indexer Module. Implements ANSS business logic for preferred moment tensors. Intended order is:- Mww (W-phase)
- Mwc from GCMT
- Mwc
- Mwb
- Other
- Mwb outside magnitude range [5.5, 7.0]
UsesDefaultIndexerModule.getProductSummary(Product)
defaults, with the following additional weights:-
Event Source
comes from the product propertyeventsource
-
Magnitude
comes from the product propertyderived-magnitude
-
Type
comes 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_WEIGHT
-
Fields inherited from interface gov.usgs.earthquake.indexer.IndexerModule
LEVEL_DEFAULT, LEVEL_SUPPORTED, LEVEL_UNSUPPORTED
-
-
Constructor Summary
Constructors Constructor Description MTIndexerModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
getPreferredWeight(ProductSummary summary)
Calculate preferred weight formoment-tensor
type product.int
getSupportLevel(Product product)
Override IndexerModule api method.-
Methods inherited from class gov.usgs.earthquake.indexer.DefaultIndexerModule
configure, getBaseProductType, getIgnoreRegions, getProductSummary, getSignatureVerifier, setSignatureVerifier
-
Methods inherited from class gov.usgs.util.DefaultConfigurable
getName, setName, shutdown, startup
-
-
-
-
Method Detail
-
getSupportLevel
public int getSupportLevel(Product product)
Override IndexerModule api method.- Specified by:
getSupportLevel
in interfaceIndexerModule
- Overrides:
getSupportLevel
in classDefaultIndexerModule
- Parameters:
product
- the product to test.- Returns:
- IndexerModule.LEVEL_SUPPORTED when type is
moment-tensor
; otherwise, IndexerModule.LEVEL_UNSUPPORTED.
-
getPreferredWeight
protected long getPreferredWeight(ProductSummary summary) throws java.lang.Exception
Calculate preferred weight formoment-tensor
type product.- Overrides:
getPreferredWeight
in classDefaultIndexerModule
- Parameters:
summary
- "moment-tensor" type product summary.- Returns:
- when type is
moment-tensor
,IndexerModule.LEVEL_SUPPORTED
; otherwise,IndexerModule.LEVEL_UNSUPPORTED
- Throws:
java.lang.Exception
- if error occurs
-
-