Package org.harctoolbox.harchardware.ir
Class IrTransIRDB
java.lang.Object
org.harctoolbox.harchardware.ir.IrTrans
org.harctoolbox.harchardware.ir.IrTransIRDB
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IWeb
,IHarcHardware
,IRawIrSender
,IRemoteCommandIrSender
,ITransmitter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.harctoolbox.harchardware.ir.IrTrans
IrTrans.Interface, IrTrans.IrTransTransmitter, IrTrans.Led
-
Field Summary
Fields inherited from class org.harctoolbox.harchardware.ir.IrTrans
DEFAULT_IP, defaultTimeout, dummyDelay, inetAddress, interfaze, portNumber, timeout, verbose
Fields inherited from interface org.harctoolbox.harchardware.ir.IRawIrSender
repeatMax
Fields inherited from interface org.harctoolbox.harchardware.ir.IRemoteCommandIrSender
repeatMax
-
Constructor Summary
ConstructorDescriptionIrTransIRDB
(String hostname) IrTransIRDB
(String hostname, boolean verbose) IrTransIRDB
(String hostname, boolean verbose, Integer timeout) IrTransIRDB
(InetAddress hostname) IrTransIRDB
(InetAddress hostname, boolean verbose) IrTransIRDB
(InetAddress hostname, boolean verbose, Integer timeout) IrTransIRDB
(InetAddress hostname, boolean verbose, Integer timeout, IrTrans.Interface interfaze) IrTransIRDB
(InetAddress hostname, Integer port, boolean verbose, Integer timeout) -
Method Summary
Modifier and TypeMethodDescriptionString[]
getCommands
(String remote) Returns an array of command names for the remote given in the argument.String[]
Returns an array of "remote" names.static void
static String
makeUrl
(String hostname, String remote, String command, IrTrans.Led led) makeUrl
(String remote, String command, IrTrans.Led led) boolean
sendIrCommand
(String remote, String command, int count, IrTrans.Led led) boolean
sendIrCommand
(String remote, String command, int count, Transmitter transmitter) Sends the command to the hardware, to be sent count number of times.boolean
sendIrCommandRepeat
(String remote, String command, Transmitter transmitter) Like sendIr, but sends the IR signal until stopped by stopIr.Methods inherited from class org.harctoolbox.harchardware.ir.IrTrans
close, expandIP, getTransmitter, getTransmitter, getTransmitterNames, getUri, getUrl, getVersion, isValid, newTransmitter, open, sendCcf, sendCcf, sendCcfRepeat, sendCommand, sendCommandUdp, sendIr, sendIr, setDebug, setTimeout, setVerbose
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.harctoolbox.harchardware.ir.IRemoteCommandIrSender
getTransmitter
-
Constructor Details
-
IrTransIRDB
- Throws:
UnknownHostException
-
IrTransIRDB
public IrTransIRDB(InetAddress hostname, boolean verbose, Integer timeout, IrTrans.Interface interfaze) -
IrTransIRDB
-
IrTransIRDB
-
IrTransIRDB
-
IrTransIRDB
- Throws:
UnknownHostException
-
IrTransIRDB
-
IrTransIRDB
- Throws:
UnknownHostException
-
-
Method Details
-
makeUrl
-
main
-
getRemotes
Description copied from interface:IRemoteCommandIrSender
Returns an array of "remote" names.- Specified by:
getRemotes
in interfaceIRemoteCommandIrSender
- Returns:
- Throws:
IOException
-
getCommands
Description copied from interface:IRemoteCommandIrSender
Returns an array of command names for the remote given in the argument.- Specified by:
getCommands
in interfaceIRemoteCommandIrSender
- Parameters:
remote
- The "remote" to search in- Returns:
- Throws:
IOException
-
makeUrl
-
sendIrCommand
public boolean sendIrCommand(String remote, String command, int count, Transmitter transmitter) throws IOException, NoSuchTransmitterException Description copied from interface:IRemoteCommandIrSender
Sends the command to the hardware, to be sent count number of times.- Specified by:
sendIrCommand
in interfaceIRemoteCommandIrSender
count
- Number of times to repeat the command- Returns:
- success
- Throws:
IOException
NoSuchTransmitterException
-
sendIrCommand
public boolean sendIrCommand(String remote, String command, int count, IrTrans.Led led) throws IOException, NoSuchTransmitterException -
sendIrCommandRepeat
public boolean sendIrCommandRepeat(String remote, String command, Transmitter transmitter) throws IOException, NoSuchTransmitterException Description copied from interface:IRemoteCommandIrSender
Like sendIr, but sends the IR signal until stopped by stopIr. An implementation, or a hardware, may limit the number of repeats though.- Specified by:
sendIrCommandRepeat
in interfaceIRemoteCommandIrSender
- Returns:
- Throws:
IOException
NoSuchTransmitterException
-