public class ExchangeIR extends Object
Modifier and Type | Field and Description |
---|---|
static int |
errLimit
The errlimit parameter in ExchangeIR.
|
static int |
ueiLearnedCharsInDigit
Number of characters in the hexadecimal representation of UEI learned signals.
|
Modifier and Type | Method and Description |
---|---|
static IrSignal |
interpretIrSequence(int[] data,
boolean invokeRepeatFinder) |
static IrSignal |
interpretIrSequence(int[] data,
boolean invokeRepeatFinder,
boolean invokeAnalyzer)
By applying a RepeatFinder, tries to identify intro, repeat, and ending;
thus constructing an IrSignal.
|
static IrSignal |
interpretIrSequence(int[] data,
double frequency,
boolean invokeRepeatFinder,
boolean invokeAnalyzer)
By applying a RepeatFinder, tries to identify intro, repeat, and ending;
thus constructing an IrSignal.
|
static IrSignal |
interpretIrSequence(IrSequence irSequence,
boolean invokeRepeatFinder) |
static IrSignal |
interpretIrSequence(IrSequence irSequence,
boolean invokeRepeatFinder,
boolean invokeAnalyzer)
By applying a RepeatFinder, tries to identify intro, repeat, and ending;
thus constructing an IrSignal.
|
static IrSignal |
interpretIrSequence(IrSequence irSequence,
double frequency,
boolean invokeRepeatFinder) |
static IrSignal |
interpretIrSequence(IrSequence irSequence,
double frequency,
boolean invokeRepeatFinder,
boolean invokeAnalyzer)
If invokeRepeatFinder is true, tries to identify intro, repeat, and ending applying a RepeatFinder.
|
static IrSignal |
interpretString(String str)
Tries to interpret the string argument as one of our known formats, and return an IrSignal.
|
static IrSignal |
interpretString(String str,
boolean invokeRepeatFinder) |
static IrSignal |
interpretString(String str,
boolean invokeRepeatFinder,
boolean invokeAnalyzer)
Tries to interpret the string argument as one of our known formats, and return an IrSignal.
|
static IrSignal |
interpretString(String str,
double fallbackFrequency,
boolean invokeRepeatFinder,
boolean invokeAnalyzer)
Tries to interpret the string argument as one of our known formats, and return an IrSignal.
|
static void |
main(String[] args)
The main routine is mainly for testing and demonstration.
|
static com.hifiremote.exchangeir.Analyzer |
newAnalyzer(IrSequence irSequence,
double frequency)
Returns a new Analyzer, constructed from an IrSequence and a frequency.
|
static com.hifiremote.exchangeir.Analyzer |
newAnalyzer(IrSignal irSignal)
Returns a new Analyzer, constructed from an IrSignal.
|
static com.hifiremote.exchangeir.Analyzer |
newAnalyzer(ModulatedIrSequence irSequence)
Returns a new Analyzer, constructed from a ModulatedIrSequene.
|
static com.hifiremote.exchangeir.RepeatFinder |
newRepeatFinder(IrSequence irSequence)
Constructs a RepeatFinder from an IrSequence.
|
static com.hifiremote.exchangeir.UeiLearned |
newUeiLearned(IrSignal irSignal)
Constructs a UEI learned signal from an IrSignal.
|
static IrSignal |
parseUeiLearned(int[] array)
Parses a string containing an UEI learned signal into an IrSignal.
|
static IrSignal |
parseUeiLearned(String str)
Parses a string containing an UEI learned signal into an IrSignal.
|
static void |
setAnalyzerBasis(int basis) |
public static final int errLimit
public static final int ueiLearnedCharsInDigit
public static void setAnalyzerBasis(int basis)
public static com.hifiremote.exchangeir.Analyzer newAnalyzer(IrSignal irSignal)
irSignal
- input IrSignalpublic static com.hifiremote.exchangeir.Analyzer newAnalyzer(IrSequence irSequence, double frequency)
irSequence
- frequency
- public static com.hifiremote.exchangeir.Analyzer newAnalyzer(ModulatedIrSequence irSequence)
irSequence
- public static com.hifiremote.exchangeir.RepeatFinder newRepeatFinder(IrSequence irSequence)
irSequence
- public static com.hifiremote.exchangeir.UeiLearned newUeiLearned(IrSignal irSignal)
irSignal
- public static IrSignal parseUeiLearned(String str)
str
- public static IrSignal parseUeiLearned(int[] array)
array
- Integer array representing signal.public static IrSignal interpretString(String str, double fallbackFrequency, boolean invokeRepeatFinder, boolean invokeAnalyzer) throws ParseException, IncompatibleArgumentException, UnassignedException, DomainViolationException, InvalidRepeatException
str
- String to be interpreted.fallbackFrequency
- Modulation frequency to use, if it cannot be inferred from the first parameter.invokeRepeatFinder
- invokeAnalyzer
- ParseException
IncompatibleArgumentException
UnassignedException
DomainViolationException
InvalidRepeatException
public static IrSignal interpretString(String str, boolean invokeRepeatFinder, boolean invokeAnalyzer) throws IncompatibleArgumentException, UnassignedException, DomainViolationException, InvalidRepeatException, ParseException
str
- String to be interpreted.invokeRepeatFinder
- invokeAnalyzer
- IncompatibleArgumentException
UnassignedException
DomainViolationException
InvalidRepeatException
ParseException
public static IrSignal interpretString(String str, boolean invokeRepeatFinder) throws IncompatibleArgumentException, UnassignedException, DomainViolationException, InvalidRepeatException, ParseException
public static IrSignal interpretString(String str) throws IncompatibleArgumentException, UnassignedException, DomainViolationException, InvalidRepeatException, ParseException
str
- String to be interpreted.IncompatibleArgumentException
UnassignedException
DomainViolationException
InvalidRepeatException
ParseException
public static IrSignal interpretIrSequence(IrSequence irSequence, double frequency, boolean invokeRepeatFinder, boolean invokeAnalyzer)
irSequence
- frequency
- invokeRepeatFinder
- If the repeat finder is invoked. This alse uses the analyzer.invokeAnalyzer
- If the analyzer is invoked for cleaning the signals.public static IrSignal interpretIrSequence(IrSequence irSequence, double frequency, boolean invokeRepeatFinder)
public static IrSignal interpretIrSequence(IrSequence irSequence, boolean invokeRepeatFinder, boolean invokeAnalyzer)
irSequence
- invokeRepeatFinder
- invokeAnalyzer
- public static IrSignal interpretIrSequence(IrSequence irSequence, boolean invokeRepeatFinder)
public static IrSignal interpretIrSequence(int[] data, double frequency, boolean invokeRepeatFinder, boolean invokeAnalyzer)
data
- frequency
- invokeRepeatFinder
- invokeAnalyzer
- public static IrSignal interpretIrSequence(int[] data, boolean invokeRepeatFinder, boolean invokeAnalyzer)
data
- invokeRepeatFinder
- invokeAnalyzer
- public static IrSignal interpretIrSequence(int[] data, boolean invokeRepeatFinder)
public static void main(String[] args)
args
- UEI learned signal.Copyright © 2015. All rights reserved.