org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.analysis
Class ParamOptions

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.analysis.ParamOptions
All Implemented Interfaces:
java.io.Serializable

public class ParamOptions
extends java.lang.Object
implements java.io.Serializable

Various parameter values and their corresponding weights. This class is used to find various logic tree branches and the corresponding weights.

Author:
vipingupta
See Also:
Serialized Form

Constructor Summary
ParamOptions()
           
 
Method Summary
 void addValueWeight(java.lang.Object value, double weight)
          Add a value and weight for this parameter
 int getNumValues()
          Number of different options for this parameter
 java.lang.Object getValue(int index)
          Get the value at specified index
 double getWeight(int index)
          Get the weight at specified index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParamOptions

public ParamOptions()
Method Detail

addValueWeight

public void addValueWeight(java.lang.Object value,
                           double weight)
Add a value and weight for this parameter

Parameters:
value -
weight -

getNumValues

public int getNumValues()
Number of different options for this parameter

Returns:

getValue

public java.lang.Object getValue(int index)
Get the value at specified index

Parameters:
index -
Returns:

getWeight

public double getWeight(int index)
Get the weight at specified index

Parameters:
index -
Returns: