Module JNISpice
Package spice.tspice

Class 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 than Object. 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)

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int fIndex  
      private static int MAXNFUNC  
      private static int nIter  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fIndex

        private static int fIndex
      • nIter

        private static int nIter
    • Constructor Detail

      • TestGFUserDefinedScalarSearch

        public TestGFUserDefinedScalarSearch()
        No-argument constructor. This constructor is needed to create an object of type TestGFUserDefinedScalarSearch, which can be passed to the constructor of GFUserDefinedScalarSearch.
    • 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 class GFScalarQuantity
        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 class GFScalarQuantity
        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