Package gov.usgs.earthquake.nshmp.model
Class GmmTree
java.lang.Object
gov.usgs.earthquake.nshmp.model.GmmTree
GMM logic tree convenience container class that holds a
LogicTree<Gmm> and properties derived from a GmmConfig.- Author:
- U.S. Geological Survey
-
Method Summary
Modifier and TypeMethodDescriptionstatic GmmTreeCreate a new GMM logic tree container.gmms()The set of GMMs in the logic tree.doubleThe logic tree weight of the requested GMM.The maximum applicable distance for the GMMs in the logic tree.parseTree(com.google.gson.JsonElement e) Convenience method to parse a JSON logic tree of GMMs and associated weights.tree()The GMM logic tree.
-
Method Details
-
create
public static GmmTree create(LogicTree<Gmm> tree, Optional<gov.usgs.earthquake.nshmp.model.GmmConfig> config) Create a new GMM logic tree container. -
tree
The GMM logic tree. -
gmms
The set of GMMs in the logic tree. -
gmmWeight
The logic tree weight of the requested GMM.- Throws:
NullPointerException- if the supplied GMM is not in this tree
-
maxDistance
The maximum applicable distance for the GMMs in the logic tree. -
parseTree
Convenience method to parse a JSON logic tree of GMMs and associated weights.- Parameters:
e- JsonElement to parse- Returns:
- a logic tree of GMMs
-