Class ShakeMap

java.lang.Object
gov.usgs.earthquake.product.Product
gov.usgs.earthquake.shakemap.ShakeMap

public class ShakeMap extends Product
ShakeMap object to add additional Product properties based on contents. This subclass of Product provides access to additional ShakeMap-specific attributes and loads these attributes, as well as additional Product attributes from ShakeMap source XML files.
  • Field Details

  • Constructor Details

    • ShakeMap

      public ShakeMap(Product product)
      Parameters:
      product - the base product to be converted to a ShakeMap product
  • Method Details

    • setGridXMLProperties

      public void setGridXMLProperties(HashMap<String,String> gridXML)
      Parameters:
      gridXML - shakemap properties hash keyed by grid.xml attribute name
    • setInfoXMLProperties

      public void setInfoXMLProperties(HashMap<String,String> infoXML)
      Parameters:
      infoXML - shakemap properties hash keyed by info.xml attribute name
    • valueIsEmpty

      public boolean valueIsEmpty(String productValue, String xmlValue)
      Parameters:
      productValue - the value from the PDL object
      xmlValue - the value from the XML document
      Returns:
      if the shakemap property is already set
    • setMapStatus

      public void setMapStatus(String mapStatus)
      Parameters:
      mapStatus - the map status to set
    • getMapStatus

      public String getMapStatus()
      Returns:
      the status of this map
    • setEventType

      public void setEventType(String eventType)
      Parameters:
      eventType - the event type to set
    • getEventType

      public String getEventType()
      Returns:
      the event type of this product as defined in ShakeMap
    • setProcessTimestamp

      public void setProcessTimestamp(Date processTimestamp)
      Parameters:
      processTimestamp - the process timestamp to set
    • getProcessTimestamp

      public Date getProcessTimestamp()
      Returns:
      the process timestamp of this ShakeMap
    • getEventDescription

      public String getEventDescription()
      Returns:
      the event description text for this ShakeMap
    • setEventDescription

      public void setEventDescription(String eventDescription)
      Parameters:
      eventDescription - the event description to set
    • getMinimumLongitude

      public BigDecimal getMinimumLongitude()
      Returns:
      the minimum longitude boundary of this ShakeMap
    • setMinimumLongitude

      public void setMinimumLongitude(BigDecimal minimumLongitude)
      Parameters:
      minimumLongitude - the minimum longitude to set
    • getMaximumLongitude

      public BigDecimal getMaximumLongitude()
      Returns:
      the maximum longitude boundary of this ShakeMap
    • setMaximumLongitude

      public void setMaximumLongitude(BigDecimal maximumLongitude)
      Parameters:
      maximumLongitude - the maximum longitude to set
    • getMinimumLatitude

      public BigDecimal getMinimumLatitude()
      Returns:
      the minimum latitude boundary of this ShakeMap
    • setMinimumLatitude

      public void setMinimumLatitude(BigDecimal minimumLatitude)
      Parameters:
      minimumLatitude - the minimum latitude to set
    • getMaximumLatitude

      public BigDecimal getMaximumLatitude()
      Returns:
      the maximum latitude boundary of this ShakeMap
    • setMaximumLatitude

      public void setMaximumLatitude(BigDecimal maximumLatitude)
      Parameters:
      maximumLatitude - the maximum latitude to set
    • getBigDecimal

      protected BigDecimal getBigDecimal(String value)
      Returns String value as BigDecimal
      Parameters:
      value - to return as BigDecimal
      Returns:
      a BigDecimal
    • getString

      protected String getString(BigDecimal value)
      Returns BigDecimal value as String
      Parameters:
      value - a BigDecimal
      Returns:
      a string