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, waitopenprotected 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 Closeableclose in interface AutoCloseableprotected void setupHardwareCommonEnd()
protected void selectMe()
throws IOException,
HarcHardwareException
IOExceptionHarcHardwareExceptionpublic ModulatedIrSequence capture() throws HarcHardwareException, IOException, IrpMasterException
ICapturecapture in interface ICaptureHarcHardwareException - if the device is not in valid/open state.IOExceptionIrpMasterExceptionpublic boolean stopCapture()
ICapturestopCapture in interface ICapturepublic String getVersion() throws IOException
IHarcHardwaregetVersion in interface IHarcHardwareIOExceptionpublic void setVerbosity(boolean verbosity)
IHarcHardwaresetVerbosity in interface IHarcHardwareverbosity - on or offpublic void setTimeout(int i)
throws IOException
IHarcHardwaresetTimeout in interface IHarcHardwarei - Timeout in milliseconds.IOExceptionpublic void setDebug(int debug)
IHarcHardwaresetDebug in interface IHarcHardwarepublic void setBeginTimeout(int beginTimeout)
throws IOException
setBeginTimeout in interface IIrReaderIOExceptionpublic void setCaptureMaxSize(int captureMaxSize)
setCaptureMaxSize in interface IIrReaderpublic void setEndTimeout(int endTimeout)
setEndTimeout in interface IIrReaderpublic boolean isValid()
IHarcHardwareisValid in interface IHarcHardwarepublic abstract String getName()
Copyright © 2016. All rights reserved.