|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.util.ParamUtils
public class ParamUtils
Title:ParamUtils
Description:Generic functions used in handling parameters, basically verifying the class type of a Parameter. Recall that all Parameters implement the ParameterAPI. Because of this they are passed around functions as ParameterAPI. In some cases you need to know more specifically the class type in order to access the special functions of these subclasses. This utility class verifies the class type so you can cast to the right type without throwing errors.
| Constructor Summary | |
|---|---|
ParamUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
isDoubleConstraint(Parameter param)
Returns true if the ParameterAPI contained constraint is a DoubleConstraint. |
static boolean |
isDoubleDiscreteConstraint(Parameter param)
Returns true if the ParameterAPI contained constraint is a DoubleDiscreteConstraint. |
static boolean |
isDoubleOrDoubleDiscreteConstraint(Parameter param)
Returns true if the ParameterAPI is a DoubleParameter or DoubleDiscreteParameter. |
static boolean |
isWarningParameterAPI(Parameter param)
Returns true if the ParameterAPI is an instance of WarningParameterAPI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParamUtils()
| Method Detail |
|---|
public static boolean isDoubleOrDoubleDiscreteConstraint(Parameter param)
The - parameter to verify
public static boolean isDoubleConstraint(Parameter param)
The - parameter to verify
public static boolean isDoubleDiscreteConstraint(Parameter param)
The - parameter to verify
public static boolean isWarningParameterAPI(Parameter param)
The - parameter to verify
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||