public class IRBurstCode
extends java.lang.Object
Constructor and Description |
---|
IRBurstCode(IRBurst ib) |
IRBurstCode(IRSignal signal) |
Modifier and Type | Method and Description |
---|---|
static IRBurstCode |
createCode(IRBurst ib) |
void |
decode(java.lang.String str) |
static long |
decodeBitString(java.lang.String s) |
PulsePair |
getBit0()
Return the PulsePair associated with the off bit.
|
PulsePair |
getBit1()
Return the PulsePair associated with the on bit.
|
int |
getBitCount()
Return the number of bits in the code.
|
java.lang.String |
getBitString() |
PulsePair[] |
getHead()
Return the set of PulsePairs before the code.
|
java.lang.String |
getHeadString() |
IRBurst |
getIRBurst()
Creates an IRBurst from the parameters of the IRBurstCode.
|
PulsePair[] |
getTail()
Return the set of PulsePairs after the code.
|
java.lang.String |
getTailString() |
long |
getValue()
Return the code derived from the pulse pairs.
|
static PulsePair |
parsePulsePair(java.lang.String s) |
static java.util.Vector |
parsePulsePairs(java.lang.String s) |
void |
setBit0(PulsePair pp)
Set the PulsePair associated with the off bit.
|
void |
setBit1(PulsePair pp)
Set the PulsePair associated with the on bit.
|
void |
setBitCount(int bc)
Sets the number of bits in the code.
|
void |
setHead(PulsePair[] pp)
Set the set of PulsePairs before the code.
|
void |
setHead(java.util.Vector head)
Set the set of PulsePairs before the code.
|
void |
setTail(PulsePair[] pp)
Set the set of PulsePairs after the code.
|
void |
setTail(java.util.Vector tail)
Set the set of PulsePairs after the code.
|
void |
setValue(long nc)
Set the code to be encoded in pulse pairs.
|
boolean |
similar(IRBurstCode bc) |
void |
swapBits()
Swap the zero and one bits.
|
java.lang.String |
toShortString() |
java.lang.String |
toString() |
public IRBurstCode(IRSignal signal)
public IRBurstCode(IRBurst ib)
public static IRBurstCode createCode(IRBurst ib)
public boolean similar(IRBurstCode bc)
public void swapBits()
public int getBitCount()
public void setBitCount(int bc)
public long getValue()
public void setValue(long nc)
public PulsePair getBit0()
public void setBit0(PulsePair pp)
public PulsePair getBit1()
public void setBit1(PulsePair pp)
public PulsePair[] getHead()
public java.lang.String getHeadString()
public void setHead(PulsePair[] pp)
public void setHead(java.util.Vector head)
public PulsePair[] getTail()
public java.lang.String getTailString()
public void setTail(java.util.Vector tail)
public void setTail(PulsePair[] pp)
public IRBurst getIRBurst()
public void decode(java.lang.String str)
public static PulsePair parsePulsePair(java.lang.String s)
public static java.util.Vector parsePulsePairs(java.lang.String s)
public java.lang.String getBitString()
public static long decodeBitString(java.lang.String s)
public java.lang.String toShortString()
public java.lang.String toString()
toString
in class java.lang.Object