Class GlobalCacheBean

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

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

    • GlobalCacheBean

      public GlobalCacheBean(GuiUtils guiUtils, boolean verbose, int timeout)
      Creates new form GlobalCacheIrSenderSelector
      Parameters:
      guiUtils -
      verbose -
      timeout -
    • GlobalCacheBean

      public GlobalCacheBean()
  • Method Details

    • setGlobalCache

      public void setGlobalCache(String ipName) throws UnknownHostException, IOException
      Throws:
      UnknownHostException
      IOException
    • getIpName

      public String getIpName()
      Returns:
      the ipName
    • getModule

      public int getModule()
      Returns:
      the module
    • setModule

      public void setModule(int module)
      Parameters:
      module - the module to set
    • getPort

      public int getPort()
      Returns:
      the port
    • setPort

      public void setPort(int port)
      Parameters:
      port - the port to set
    • getTransmitter

      public org.harctoolbox.harchardware.ir.GlobalCache.GlobalCacheIrTransmitter getTransmitter() throws org.harctoolbox.harchardware.ir.NoSuchTransmitterException
      Returns:
      Throws:
      org.harctoolbox.harchardware.ir.NoSuchTransmitterException
    • isStopEnabled

      public boolean isStopEnabled()
    • setStopEnabled

      public void setStopEnabled(boolean value)
    • 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 org.harctoolbox.harchardware.ir.NoSuchTransmitterException, IOException, HardwareUnavailableException, org.harctoolbox.harchardware.HarcHardwareException, org.harctoolbox.ircore.InvalidArgumentException
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can send.
      Overrides:
      sendIr in class HardwareBean
      Returns:
      success of operation
      Throws:
      org.harctoolbox.harchardware.ir.NoSuchTransmitterException
      IOException
      HardwareUnavailableException
      org.harctoolbox.harchardware.HarcHardwareException
      org.harctoolbox.ircore.InvalidArgumentException
    • getName

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

      public void setup() throws IOException, org.harctoolbox.harchardware.HarcHardwareException
      Throws:
      IOException
      org.harctoolbox.harchardware.HarcHardwareException
    • open

      public void open() throws IOException
      Specified by:
      open in class HardwareBean
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class HardwareBean
    • 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.InvalidArgumentException
      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.InvalidArgumentException