Class DevLircBean

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

public final class DevLircBean extends HardwareBean
See Also:
  • Constructor Details

    • DevLircBean

      public DevLircBean()
      Creates new form DevLircBean
    • DevLircBean

      public DevLircBean(GuiUtils guiUtils)
    • DevLircBean

      public DevLircBean(GuiUtils guiUtils, boolean verbose, int timeout, String initialPort)
  • Method Details

    • getName

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

      public String getPortName()
      Returns:
      the port
    • setPortName

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

      public void setHardware(org.harctoolbox.harchardware.ir.DevLirc hardware)
    • getTransmitter

      public org.harctoolbox.harchardware.ir.LircTransmitter getTransmitter()
    • canCapture

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

      public org.harctoolbox.ircore.ModulatedIrSequence capture() throws org.harctoolbox.harchardware.HarcHardwareException, org.harctoolbox.ircore.OddSequenceLengthException
      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
      org.harctoolbox.ircore.OddSequenceLengthException
    • canSend

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

      public boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal, int count) throws HardwareUnavailableException, 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:
      HardwareUnavailableException
      org.harctoolbox.harchardware.ir.NoSuchTransmitterException
      org.harctoolbox.harchardware.HarcHardwareException
    • 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