Class SendingHardware<T extends org.harctoolbox.harchardware.ir.IRawIrSender & org.harctoolbox.harchardware.IHarcHardware>
- java.lang.Object
-
- org.harctoolbox.irscrutinizer.sendinghardware.SendingHardware<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
SendingDevLirc
,SendingGenericSerialPort
,SendingGirsClient
,SendingGlobalCache
,SendingIrAudioPort
,SendingIrTrans
,SendingLircClient
,SendingSerial
public abstract class SendingHardware<T extends org.harctoolbox.harchardware.ir.IRawIrSender & org.harctoolbox.harchardware.IHarcHardware> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected GuiUtils
guiUtils
static String
PROP_PANEL
static String
PROP_RAWIRSENDER
static String
PROP_VERBOSE
protected Props
properties
-
Constructor Summary
Constructors Modifier Constructor Description protected
SendingHardware(JPanel panel, Props properties, GuiUtils guiUtils)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
abstract String
getName()
JPanel
getPanel()
abstract T
getRawIrSender()
org.harctoolbox.harchardware.ir.Transmitter
getTransmitter()
boolean
isValid()
boolean
sendIr(org.harctoolbox.ircore.IrSignal irSignal, int count)
abstract void
setup()
void
setVerbose(boolean verbose)
-
-
-
Field Detail
-
PROP_PANEL
public static final String PROP_PANEL
- See Also:
- Constant Field Values
-
PROP_RAWIRSENDER
public static final String PROP_RAWIRSENDER
- See Also:
- Constant Field Values
-
PROP_VERBOSE
public static final String PROP_VERBOSE
- See Also:
- Constant Field Values
-
properties
protected Props properties
-
guiUtils
protected GuiUtils guiUtils
-
-
Method Detail
-
getPanel
public JPanel getPanel()
- Returns:
- the panel
-
getRawIrSender
public abstract T getRawIrSender()
- Returns:
- the rawIrSender
-
setVerbose
public void setVerbose(boolean verbose)
- Parameters:
verbose
- the verbose to set
-
getTransmitter
public org.harctoolbox.harchardware.ir.Transmitter getTransmitter() throws org.harctoolbox.harchardware.ir.NoSuchTransmitterException, HardwareUnavailableException
- Returns:
- transmitter
- Throws:
org.harctoolbox.harchardware.ir.NoSuchTransmitterException
HardwareUnavailableException
-
sendIr
public boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal, int count) throws HardwareUnavailableException, org.harctoolbox.harchardware.ir.NoSuchTransmitterException, org.harctoolbox.harchardware.HarcHardwareException, IOException, org.harctoolbox.ircore.InvalidArgumentException
- Throws:
HardwareUnavailableException
org.harctoolbox.harchardware.ir.NoSuchTransmitterException
org.harctoolbox.harchardware.HarcHardwareException
IOException
org.harctoolbox.ircore.InvalidArgumentException
-
close
public void close()
-
isValid
public boolean isValid()
-
setup
public abstract void setup() throws IOException, org.harctoolbox.harchardware.HarcHardwareException
- Throws:
IOException
org.harctoolbox.harchardware.HarcHardwareException
-
getName
public abstract String getName()
-
-