- java.lang.Object
-
- spice.basic.GFScalarQuantity
-
- spice.tspice.TestGFUserDefinedScalarSearch
-
public class TestGFUserDefinedScalarSearch extends GFScalarQuantity
Class TestGFUserDefinedScalarSearch provides methods that implement test families for the class TargetClass.Note that this class extends
GFScalarQuantity
rather thanObject
. In addition to the normal test family method, this class contains methods that override the abstract methods of GFScalarQuantity.Version 1.0.0 31-DEC-2009 (NJB)
-
-
Constructor Summary
Constructors Constructor Description TestGFUserDefinedScalarSearch()
No-argument constructor.
-
Method Summary
Modifier and Type Method Description private double
f(int idx, double et)
The scalar function f representing a user-defined quantity.static boolean
f_GFUserDefinedScalarSearch()
Test GFUserDefinedScalarSearch and associated classes.private boolean
fdecr(int idx, double et)
The scalar function fdecr representing a user-defined "is quantity decreasing" function.double
getQuantity(double et)
Override GFScalarQuantity.getQuantity.The actual function to be evaulated can be selected externally.boolean
isQuantityDecreasing(double et)
Override GFScalarQuantity.isQuantityDecreasing.The actual function to be evaulated can be selected externally.
-
-
-
Field Detail
-
MAXNFUNC
private static final int MAXNFUNC
- See Also:
- Constant Field Values
-
fIndex
private static int fIndex
-
nIter
private static int nIter
-
-
Method Detail
-
getQuantity
public double getQuantity(double et) throws SpiceException
Override GFScalarQuantity.getQuantity.The actual function to be evaulated can be selected externally.- Specified by:
getQuantity
in classGFScalarQuantity
- Parameters:
et
- double- Returns:
- Throws:
SpiceException
-
isQuantityDecreasing
public boolean isQuantityDecreasing(double et) throws SpiceException
Override GFScalarQuantity.isQuantityDecreasing.The actual function to be evaulated can be selected externally.- Specified by:
isQuantityDecreasing
in classGFScalarQuantity
- Parameters:
et
- double- Returns:
- Throws:
SpiceException
-
f
private double f(int idx, double et) throws SpiceException
The scalar function f representing a user-defined quantity.- Throws:
SpiceException
-
fdecr
private boolean fdecr(int idx, double et) throws SpiceException
The scalar function fdecr representing a user-defined "is quantity decreasing" function.- Throws:
SpiceException
-
f_GFUserDefinedScalarSearch
public static boolean f_GFUserDefinedScalarSearch() throws SpiceException
Test GFUserDefinedScalarSearch and associated classes.- Returns:
- Throws:
SpiceException
-
-