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, verboseFields inherited from interface org.harctoolbox.harchardware.ir.IRawIrSender
repeatMaxFields inherited from interface org.harctoolbox.harchardware.ir.IRemoteCommandIrSender
repeatMax -
Constructor Summary
ConstructorsConstructorDescriptionIrTransIRDB(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 voidstatic StringmakeUrl(String hostname, String remote, String command, IrTrans.Led led) makeUrl(String remote, String command, IrTrans.Led led) booleansendIrCommand(String remote, String command, int count, IrTrans.Led led) booleansendIrCommand(String remote, String command, int count, Transmitter transmitter) Sends the command to the hardware, to be sent count number of times.booleansendIrCommandRepeat(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, setVerboseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:IRemoteCommandIrSenderReturns an array of "remote" names.- Specified by:
getRemotesin interfaceIRemoteCommandIrSender- Returns:
- Throws:
IOException
-
getCommands
Description copied from interface:IRemoteCommandIrSenderReturns an array of command names for the remote given in the argument.- Specified by:
getCommandsin 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:IRemoteCommandIrSenderSends the command to the hardware, to be sent count number of times.- Specified by:
sendIrCommandin interfaceIRemoteCommandIrSendercount- Number of times to repeat the command- Returns:
- success
- Throws:
IOExceptionNoSuchTransmitterException
-
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:IRemoteCommandIrSenderLike sendIr, but sends the IR signal until stopped by stopIr. An implementation, or a hardware, may limit the number of repeats though.- Specified by:
sendIrCommandRepeatin interfaceIRemoteCommandIrSender- Returns:
- Throws:
IOExceptionNoSuchTransmitterException
-