public abstract class IRProtocol
extends java.lang.Object
As an example, we created a new IR protocol for the
sunfounder media remote (a simple infrared media remote).
Each button of the remote has a corresponding signal.
We then detected the signal corresponding to each button
(using the IRSignalDetector
)
and saved this in a new IR protocol: IRProtocolSunfounderMediaRemote
.
Constructor and Description |
---|
IRProtocol()
Constructor for a new empty infrared protocol.
|
Modifier and Type | Method and Description |
---|---|
void |
addSignal(IRSignal signal)
Add a new infrared signal to the collection of infrared signals
composing the protocol.
|
java.util.List<IRSignal> |
getSignals()
Get the collection of signals composing the infrared protocol.
|
public void addSignal(IRSignal signal)
signal
- the new IRSignal to add to the protocol.public java.util.List<IRSignal> getSignals()