Bulletin17CFreqResult.java [src/java/m/cfa/flood] Revision:   Date:
package m.cfa.flood;

import com.google.gson.Gson;

/**
 *
 * @author Lucas Yaege
 */
public class Bulletin17CFreqResult {

    public double probabilityPct = Double.NaN;
    public double returnPeriod = Double.NaN;
    public double zScore = Double.NaN;
    public double estimatedDischarge = Double.NaN;
    public double lowerCI = Double.NaN;
    public double upperCI = Double.NaN;

    @Override
    public String toString() {
        return probabilityPct + " | " + returnPeriod + " | " + zScore + " | " + estimatedDischarge + " | " + lowerCI + " | " + upperCI;
    }

    public String toJson() {
        Gson gson = new Gson();
        return gson.toJson( this );
    }
}