T
- public abstract class CapturingHardware<T extends ICapture & IHarcHardware> extends Object implements ICapture
Modifier and Type | Field and Description |
---|---|
protected GuiUtils |
guiUtils |
protected org.harctoolbox.irscrutinizer.Props |
properties |
protected boolean |
verbose |
defaultBeginTimeout, defaultCaptureMaxSize, defaultEndTimeout
Modifier | Constructor and Description |
---|---|
protected |
CapturingHardware(JPanel panel,
org.harctoolbox.irscrutinizer.Props properties,
GuiUtils guiUtils,
CapturingHardwareManager capturingHardwareManager) |
Modifier and Type | Method and Description |
---|---|
ModulatedIrSequence |
capture()
Listens to the device and returns a sequence.
|
void |
close() |
abstract T |
getCapturer() |
abstract String |
getName() |
JPanel |
getPanel() |
String |
getVersion()
Returns the hardware version (not the version of the driver software).
|
boolean |
isValid()
Tries to identify instances that are not valid.
|
protected void |
selectMe() |
void |
setBeginTimeout(int beginTimeout) |
void |
setCaptureMaxSize(int captureMaxSize) |
void |
setDebug(int debug)
Sets a debug parameter.
|
void |
setEndTimeout(int endTimeout) |
void |
setTimeout(int i)
Set timeout in milliseconds.
|
protected void |
setupHardwareCommonEnd() |
void |
setVerbose(boolean verbose) |
void |
setVerbosity(boolean verbosity)
Sets a verbosity flag, causing commands to be executed verbosely.
|
boolean |
stopCapture()
Signals the capturing device that it should stop capturing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
open
protected org.harctoolbox.irscrutinizer.Props properties
protected GuiUtils guiUtils
protected boolean verbose
protected CapturingHardware(JPanel panel, org.harctoolbox.irscrutinizer.Props properties, GuiUtils guiUtils, CapturingHardwareManager capturingHardwareManager)
public JPanel getPanel()
public abstract T getCapturer()
public void setVerbose(boolean verbose)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected void setupHardwareCommonEnd()
protected void selectMe() throws IOException, HarcHardwareException
IOException
HarcHardwareException
public ModulatedIrSequence capture() throws HarcHardwareException, IOException, IrpMasterException
ICapture
capture
in interface ICapture
HarcHardwareException
- if the device is not in valid/open state.IOException
IrpMasterException
public boolean stopCapture()
ICapture
stopCapture
in interface ICapture
public String getVersion() throws IOException
IHarcHardware
getVersion
in interface IHarcHardware
IOException
public void setVerbosity(boolean verbosity)
IHarcHardware
setVerbosity
in interface IHarcHardware
verbosity
- on or offpublic void setTimeout(int i) throws IOException
IHarcHardware
setTimeout
in interface IHarcHardware
i
- Timeout in milliseconds.IOException
public void setDebug(int debug)
IHarcHardware
setDebug
in interface IHarcHardware
public void setBeginTimeout(int beginTimeout) throws IOException
setBeginTimeout
in interface IIrReader
IOException
public void setCaptureMaxSize(int captureMaxSize)
setCaptureMaxSize
in interface IIrReader
public void setEndTimeout(int endTimeout)
setEndTimeout
in interface IIrReader
public boolean isValid()
IHarcHardware
isValid
in interface IHarcHardware
public abstract String getName()
Copyright © 2016. All rights reserved.