Interface ISource

    • Method Detail

      • getDescription

        static java.lang.String getDescription()
      • setCurrent

        void setCurrent​(double current)
                 throws java.io.IOException,
                        DeviceException
        Sets the current to output.
        Parameters:
        current - Current to output, in Amps
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • getCurrent

        double getCurrent()
                   throws java.io.IOException,
                          DeviceException
        Returns the current being output.
        Returns:
        Current being output, in Amps
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • turnOn

        void turnOn()
             throws java.io.IOException,
                    DeviceException
        Turns the current-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 current-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 current-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