|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.param.constraint.AbstractParameterConstraint
org.opensha.sha.param.MagFreqDistConstraint
public class MagFreqDistConstraint
Title: MagFreqDistConstraint
Description: Constraint Object containing IncrementalMagFreqDist object and list of allowed MagFreqDists to be shown in GUI
| Field Summary | |
|---|---|
protected static String |
C
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
| Fields inherited from class org.opensha.commons.param.constraint.AbstractParameterConstraint |
|---|
editable, name, nullAllowed |
| Constructor Summary | |
|---|---|
MagFreqDistConstraint()
No-Arg Constructor, constraints are null so all values allowed |
|
MagFreqDistConstraint(ArrayList allowedVals)
Constructor that sets the constraints during instantiation. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a copy of this object instance so the original cannot be altered. |
ArrayList |
getAllowedMagDists()
Returns the vector of allowed Mag Dists |
boolean |
isAllowed(Object obj)
Checks if the passed in distribution name is allowed First the value is chekced if it's null and null values are allowed. |
boolean |
isAllowed(String distName)
Checks if the passed in distribution name is allowed First the value is chekced if it's null and null values are allowed. |
String |
toString()
Returns the classname of the constraint, and the allowed Mag dist Names as a debug string |
| Methods inherited from class org.opensha.commons.param.constraint.AbstractParameterConstraint |
|---|
checkEditable, getName, isEditable, isNullAllowed, setName, setNonEditable, setNullAllowed |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
| Constructor Detail |
|---|
public MagFreqDistConstraint()
public MagFreqDistConstraint(ArrayList allowedVals)
allowedVals - Vector of strings of allowed MagFreqDists| Method Detail |
|---|
public ArrayList getAllowedMagDists()
public boolean isAllowed(Object obj)
obj - The object to check if allowed.
public boolean isAllowed(String distName)
distName - Distribution name
public String toString()
toString in class Objectpublic Object clone()
clone in interface ParameterConstraintclone in class AbstractParameterConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||