Skip to content
Snippets Groups Projects
Commit c75da109 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add hazard metadata class

parent c3497c05
No related branches found
No related tags found
2 merge requests!128Production Release | nshmp-ws-static,!127Resolves - Handle Multiple NetCDF Files for AASHTO Service
package gov.usgs.earthquake.nshmp.netcdf.www;
import gov.usgs.earthquake.nshmp.gmm.Imt;
import gov.usgs.earthquake.nshmp.gmm.NehrpSiteClass;
import gov.usgs.earthquake.nshmp.netcdf.Nshm;
import gov.usgs.earthquake.nshmp.netcdf.www.Metadata.ServiceResponseMetadata;
import gov.usgs.earthquake.nshmp.netcdf.www.Request.RequestData;
import gov.usgs.earthquake.nshmp.netcdf.www.RequestHazardCurves.HazardRequestDataImt;
/**
* Hazard metadata.
*
* @author U.S. Geological Survey
*/
public class HazardMetadata {
static class HazardResponseMetadata extends ServiceResponseMetadata {
public final Nshm nshm;
public final Imt imt;
HazardResponseMetadata(
Nshm nshm,
NehrpSiteClass siteClass,
Imt imt,
String xLabel,
String yLabel) {
super(siteClass, xLabel, yLabel);
this.nshm = nshm;
this.imt = imt;
}
@Override
public HazardRequestDataImt toRequestMetadata(RequestData requestData) {
return new HazardRequestDataImt(nshm, requestData.site, siteClass, imt, requestData.format);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment