Class CapturingSerial<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
- java.lang.Object
-
- org.harctoolbox.irscrutinizer.capturinghardware.CapturingHardware<T>
-
- org.harctoolbox.irscrutinizer.capturinghardware.CapturingSerial<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.harctoolbox.harchardware.IHarcHardware
,org.harctoolbox.harchardware.ir.ICapture
,org.harctoolbox.harchardware.ir.IIrReader
,ICapturingHardware<T>
public class CapturingSerial<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware> extends CapturingHardware<T> implements ICapturingHardware<T>
This class does something interesting and useful. Or not...
-
-
Field Summary
-
Fields inherited from class org.harctoolbox.irscrutinizer.capturinghardware.CapturingHardware
guiUtils, properties
-
-
Constructor Summary
Constructors Constructor Description CapturingSerial(Class<T> clazz, JPanel panel, SerialPortSimpleBean serialPortSimpleBean, Props properties_, GuiUtils guiUtils_, CapturingHardwareManager capturingHardwareManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getCapturer()
String
getName()
void
open()
void
setDebug(int debug)
void
setup()
This function (re-)initializes the hardware.-
Methods inherited from class org.harctoolbox.irscrutinizer.capturinghardware.CapturingHardware
capture, close, getPanel, getVersion, isValid, selectMe, setBeginTimeout, setCaptureMaxSize, setEndingTimeout, setTimeout, setupHardwareCommonEnd, setVerbose, stopCapture
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.harctoolbox.irscrutinizer.capturinghardware.ICapturingHardware
capture, close, getPanel, getVersion, isValid, setVerbose, stopCapture
-
-
-
-
Constructor Detail
-
CapturingSerial
public CapturingSerial(Class<T> clazz, JPanel panel, SerialPortSimpleBean serialPortSimpleBean, Props properties_, GuiUtils guiUtils_, CapturingHardwareManager capturingHardwareManager)
-
-
Method Detail
-
setup
public void setup() throws IOException
Description copied from interface:ICapturingHardware
This function (re-)initializes the hardware. The construction should not. If the parameters has not changed, should not re-initialize.- Specified by:
setup
in interfaceICapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
- Throws:
IOException
-
getName
public String getName()
- Specified by:
getName
in interfaceICapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
- Specified by:
getName
in classCapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
-
open
public void open() throws org.harctoolbox.harchardware.HarcHardwareException, IOException
- Specified by:
open
in interfaceorg.harctoolbox.harchardware.IHarcHardware
- Throws:
org.harctoolbox.harchardware.HarcHardwareException
IOException
-
setDebug
public void setDebug(int debug)
- Specified by:
setDebug
in interfaceorg.harctoolbox.harchardware.IHarcHardware
- Overrides:
setDebug
in classCapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
-
getCapturer
public T getCapturer()
- Specified by:
getCapturer
in interfaceICapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
- Specified by:
getCapturer
in classCapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
- Returns:
- the hardware
-
-