public class IRBurst
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addIndexPulse(int idx)
Add a pulse using the index position of the pulse.
|
void |
addTimePulse(int length)
Add a pulse using the time length of the pulse.
|
void |
clear()
Clear the burst.
|
int |
cullRepeats()
Returns the number of perfectly repeating segments in the burst
and trims the burst to the first occurance.
|
void |
decodePulseString(java.lang.String str) |
boolean |
empty() |
boolean |
equals(java.lang.Object o) |
int |
get(int idx)
Return the PulseIndex offset of the specified pulse element.
|
IRBurstCode |
getBurstCode()
Returns an IRBurstCode corresponding to this IRBurst or
null of this burst is not compatible with the IRBurstCode encoding.
|
int |
getBurstLength()
Returns the total length of the pulse.
|
IRBurst |
getClone(IRSignal sig) |
PulseIndex |
getPulseIndex()
Return the pulse index for this burst.
|
PulsePair[] |
getPulsePairs() |
int[] |
getPulses() |
java.lang.String |
getPulseString() |
int[] |
getPulseValues() |
IRSignal |
getSignal()
Return the parent signal for this burst.
|
int |
length()
Return the length of the burst in pulses.
|
void |
setLength(int length)
Set the burst length in pulses.
|
void |
setPulses(int[] p) |
IRBurstCode[] |
split() |
boolean |
subtract(IRBurst burst) |
java.lang.String |
toString() |
public IRBurstCode[] split()
public boolean subtract(IRBurst burst)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int get(int idx)
public IRSignal getSignal()
public PulseIndex getPulseIndex()
public void setPulses(int[] p)
public int[] getPulses()
public PulsePair[] getPulsePairs()
public int[] getPulseValues()
public IRBurstCode getBurstCode()
public int getBurstLength()
public int cullRepeats()
public int length()
public boolean empty()
public void clear()
public void setLength(int length)
public void addTimePulse(int length)
length
- length of pulsepublic void addIndexPulse(int idx)
index
- index position of the pulse from the PulseIndexpublic void decodePulseString(java.lang.String str)
public java.lang.String getPulseString()
public java.lang.String toString()
toString
in class java.lang.Object