Interface TMeter

    • Method Detail

      • getDescription

        static java.lang.String getDescription()
      • getTemperature

        double getTemperature()
                       throws java.io.IOException,
                              DeviceException
        Returns the temperature being reported by the thermometer.
        Returns:
        Temperature, in Kelvin
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • setTemperatureRange

        void setTemperatureRange​(double range)
                          throws java.io.IOException,
                                 DeviceException
        Sets the measurement range for temperature values. The smallest available range containing the specified value will be selected if only discrete options are available.
        Parameters:
        range - The range to use, in Kelvin
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • getTemperatureRange

        double getTemperatureRange()
                            throws java.io.IOException,
                                   DeviceException
        Returns the measurement range being used for temperature values.
        Returns:
        The range being used, in Kelvin
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • waitForStableTemperature

        default void waitForStableTemperature​(double temperature,
                                              double pctMargin,
                                              long duration)
                                       throws java.io.IOException,
                                              DeviceException,
                                              java.lang.InterruptedException
        Wait for the temperature to remain within a range of a given value for at least a specified amount of time.
        Parameters:
        temperature - Temperature to be in range of
        pctMargin - Percentage range to stay within
        duration - Minimum time needed to be in range.
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon compatibility error
        java.lang.InterruptedException - Upon wait being interrupted
      • waitForStableTemperature

        default void waitForStableTemperature​(double pctMargin,
                                              long duration)
                                       throws java.io.IOException,
                                              DeviceException,
                                              java.lang.InterruptedException
        Wait for the temperature to remain within a percentage range of any value for at least a specified amount of time.
        Parameters:
        pctMargin - Percentage range to stay within
        duration - Minimum time needed to be in range.
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon compatibility error
        java.lang.InterruptedException - Upon wait being interrupted
      • waitForStableTemperatureMaxTime

        default void waitForStableTemperatureMaxTime​(double pctMargin,
                                                     long duration,
                                                     long maxTime)
                                              throws java.io.IOException,
                                                     DeviceException,
                                                     java.lang.InterruptedException
        Wait for the temperature to remain within a percentage range of any value for at least a specified amount of time, with max. time.
        Parameters:
        pctMargin - Percentage range to stay within
        duration - Minimum time needed to be in range.
        maxTime - Maximum time of stabilization
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon compatibility error
        java.lang.InterruptedException - Upon wait being interrupted
      • waitForStableTemperatureMaxTime

        default void waitForStableTemperatureMaxTime​(double temperature,
                                                     double pctMargin,
                                                     long duration,
                                                     long maxTime)
                                              throws java.io.IOException,
                                                     DeviceException,
                                                     java.lang.InterruptedException
        Wait for the temperature to remain within a range of a given value for at least a specified amount of time, with maximum time.
        Parameters:
        temperature - Temperature to be in range of
        pctMargin - Percentage range to stay within
        duration - Minimum time needed to be in range.
        maxTime - Maximum time of stabilization
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon compatibility error
        java.lang.InterruptedException - Upon wait being interrupted