Interface VSource

    • Method Detail

      • getDescription

        static java.lang.String getDescription()
      • setVoltage

        void setVoltage​(double voltage)
                 throws java.io.IOException,
                        DeviceException
        Set the voltage to output.
        Parameters:
        voltage - Voltage to output, in Volts
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • getVoltage

        double getVoltage()
                   throws java.io.IOException,
                          DeviceException
        Returns the voltage being output.
        Returns:
        Voltage being output, in Volts
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • turnOn

        void turnOn()
             throws java.io.IOException,
                    DeviceException
        Turns the voltage-source on.
        Specified by:
        turnOn in interface Switch
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • turnOff

        void turnOff()
              throws java.io.IOException,
                     DeviceException
        Turns the voltage-source off.
        Specified by:
        turnOff in interface Switch
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • isOn

        boolean isOn()
              throws java.io.IOException,
                     DeviceException
        Returns whether the voltage-source is on or off.
        Specified by:
        isOn in interface Switch
        Returns:
        Is it on?
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error