Package gov.usgs.earthquake.dyfi
Class DYFIIndexerModule
java.lang.Object
gov.usgs.util.DefaultConfigurable
gov.usgs.earthquake.indexer.DefaultIndexerModule
gov.usgs.earthquake.dyfi.DYFIIndexerModule
- All Implemented Interfaces:
IndexerModule,Configurable
DYFI Indexer Module.
Uses
DYFIProduct class to summarize product.-
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 TypeMethodDescriptiongetProductSummary(Product product) Create a ProductSummary from a Product.intgetSupportLevel(Product product) This module provides a default level of support for any type of product.Methods inherited from class gov.usgs.earthquake.indexer.DefaultIndexerModule
configure, getBaseProductType, getIgnoreRegions, getPreferredWeight, getSignatureVerifier, setSignatureVerifierMethods inherited from class gov.usgs.util.DefaultConfigurable
getName, setName, shutdown, startup
-
Constructor Details
-
DYFIIndexerModule
public DYFIIndexerModule()
-
-
Method Details
-
getSupportLevel
Description copied from class:DefaultIndexerModuleThis module provides a default level of support for any type of product.- Specified by:
getSupportLevelin interfaceIndexerModule- Overrides:
getSupportLevelin classDefaultIndexerModule- Parameters:
product- the product to test.- Returns:
- IndexerModule.LEVEL_DEFAULT.
-
getProductSummary
Description copied from class:DefaultIndexerModuleCreate a ProductSummary from a Product. Uses the ProductSummary(Product) constructor, which copies product information. Checks whether product is within its authoritative region, and if so boosts preferredWeight by AUTHORITATIVE_WEIGHT.- Specified by:
getProductSummaryin interfaceIndexerModule- Overrides:
getProductSummaryin classDefaultIndexerModule- Parameters:
product- the product to summarize.- Returns:
- ProductSummary for Product object.
- Throws:
Exception- if error occurs
-