Class GirsClientBean

All Implemented Interfaces:
ImageObserver, MenuContainer, Closeable, Serializable, AutoCloseable, Accessible

public final class GirsClientBean extends HardwareBean
See Also:
  • Field Details

  • Constructor Details

    • GirsClientBean

      public GirsClientBean()
    • GirsClientBean

      public GirsClientBean(GuiUtils guiUtils, boolean verbose)
    • GirsClientBean

      public GirsClientBean(GuiUtils guiUtils, boolean verbose, int timeout, String initialPort, int baud, String ipName, int portNumber, GirsClientBean.Type type)
  • Method Details

    • sendIr

      public boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal, int count) throws IOException, org.harctoolbox.harchardware.HarcHardwareException
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can send.
      Overrides:
      sendIr in class HardwareBean
      Returns:
      success of operation
      Throws:
      IOException
      org.harctoolbox.harchardware.ir.NoSuchTransmitterException
      org.harctoolbox.harchardware.HarcHardwareException
    • capture

      public org.harctoolbox.ircore.ModulatedIrSequence capture() throws org.harctoolbox.harchardware.HarcHardwareException, org.harctoolbox.ircore.OddSequenceLengthException, IOException
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can capture.
      Overrides:
      capture in class HardwareBean
      Returns:
      ModulatedSequence captured, or null.
      Throws:
      HardwareBean.CannotCaptureException
      org.harctoolbox.harchardware.HarcHardwareException
      IOException
      org.harctoolbox.ircore.OddSequenceLengthException
    • getName

      public String getName()
      Description copied from class: HardwareBean
      Returns a somewhat friendly name of the class.
      Overrides:
      getName in class HardwareBean
      Returns:
      name
    • setPort

      public void setPort(int portNumber)
    • setType

      public void setType(String typeName)
    • setType

      public void setType(GirsClientBean.Type type)
    • getType

      public GirsClientBean.Type getType()
    • getPortName

      public String getPortName()
      Returns:
      the port
    • setPortName

      public void setPortName(String portName)
      Parameters:
      portName - the port to set
    • getBaud

      public int getBaud()
      Returns:
      the baudRate
    • setBaud

      public void setBaud(int baud)
    • getVersion

      public String getVersion()
      Returns:
      the version
    • setIpName

      public void setIpName(String name)
    • isPingable

      public boolean isPingable(boolean useGui)
    • canCapture

      public boolean canCapture()
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can capture.
      Overrides:
      canCapture in class HardwareBean
      Returns:
      false
    • canSend

      public boolean canSend()
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can send.
      Overrides:
      canSend in class HardwareBean
      Returns:
      false
    • open

      public void open() throws IOException, org.harctoolbox.harchardware.HarcHardwareException
      Specified by:
      open in class HardwareBean
      Throws:
      IOException
      org.harctoolbox.harchardware.HarcHardwareException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class HardwareBean
      Throws:
      IOException