Skip to content
Snippets Groups Projects
Commit e15996a4 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

exposed disagg export options

parent c10d4289
No related branches found
No related tags found
1 merge request!234App edits
......@@ -264,8 +264,8 @@ public final class Disaggregation {
}
/**
* Returns an object containing disaggregation results that is suitable for
* JSON serialization.
* Returns an object containing all disaggregation results that is suitable
* for JSON serialization.
*
* @param imt of the disaggregation to retrieve.
*/
......@@ -273,10 +273,24 @@ public final class Disaggregation {
return disaggs.get(imt).toJson(true, true, true, true);
}
/** Experimental */
@Deprecated
public Object toJsonCompact(Imt imt) {
return disaggs.get(imt).toJson(false, false, false, false);
/**
* Returns an object containing custom disaggregation results that is suitable
* for JSON serialization.
*
* @param imt of the disaggregation to retrieve.
* @param summary include summary information, or not
* @param gmms include results decomposed by GMM (values are scaled by GMM
* logic tree weight)
* @param types include results decomposed by source type
* @param epsilons include distance-magnitude-epsilon data that can be used to
* build a 3D stem plot
*/
public Object toJson(Imt imt,
boolean summary,
boolean gmms,
boolean types,
boolean epsilons) {
return disaggs.get(imt).toJson(summary, gmms, types, epsilons);
}
/**
......
......@@ -105,4 +105,6 @@ public interface RuptureSet<T extends Source> extends Iterable<T> {
// instead of Source
// interface .Model
// where possible get id and name from feature?
}
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