Package org.harctoolbox.irp
Class Decoder.DecoderParameters
java.lang.Object
org.harctoolbox.irp.Decoder.DecoderParameters
- Enclosing class:
- Decoder
-
Constructor Summary
ConstructorDescriptionDecoderParameters
(boolean strict) DecoderParameters
(boolean strict, boolean allDecodes, boolean removeDefaultedParameters, boolean recursive, Double frequencyTolerance, Double absoluteTolerance, Double relativeTolerance, Double minimumLeadout, boolean override, boolean ignoreLeadingGarbage) DecoderParameters
(boolean strict, Double frequencyTolerance, Double absoluteTolerance, Double relativeTolerance, Double minimumLeadout) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
isStrict()
select
(boolean newStrict, Double frequencyTolerance, Double absoluteTolerance, Double relativeTolerance, Double minimumLeadout) void
setAbsoluteTolerance
(Double absoluteTolerance) void
setAllDecodes
(boolean allDecodes) void
setFrequencyTolerance
(Double frequencyTolerance) void
setIgnoreLeadingGarbage
(boolean ignoreLeadingGarbage) void
setMinimumLeadout
(Double minimumLeadout) void
setOverride
(boolean override) void
setRecursive
(boolean recursive) void
setRelativeTolerance
(Double relativeTolerance) void
setRemoveDefaultedParameters
(boolean removeDefaultedParameters) void
setStrict
(boolean strict) toString()
-
Constructor Details
-
DecoderParameters
public DecoderParameters(boolean strict, boolean allDecodes, boolean removeDefaultedParameters, boolean recursive, Double frequencyTolerance, Double absoluteTolerance, Double relativeTolerance, Double minimumLeadout, boolean override, boolean ignoreLeadingGarbage) - Parameters:
strict
- If true, intro-, repeat-, and ending sequences are required to match exactly.allDecodes
- If true, output all possible decodes. Otherwise, remove decodes according to prefer-over.removeDefaultedParameters
- If true, remove parameters with value equals to their default.recursive
-frequencyTolerance
-absoluteTolerance
-relativeTolerance
-minimumLeadout
-override
- If true, the given parameters override parameter specific parameter values.ignoreLeadingGarbage
-
-
DecoderParameters
public DecoderParameters() -
DecoderParameters
public DecoderParameters(boolean strict) -
DecoderParameters
-
-
Method Details
-
select
public Decoder.DecoderParameters select(boolean newStrict, Double frequencyTolerance, Double absoluteTolerance, Double relativeTolerance, Double minimumLeadout) -
toString
-
isStrict
public boolean isStrict()- Returns:
- the strict
-
isAllDecodes
public boolean isAllDecodes()- Returns:
- the allDecodes
-
isRemoveDefaultedParameters
public boolean isRemoveDefaultedParameters()- Returns:
- the removeDefaultedParameters
-
isRecursive
public boolean isRecursive()- Returns:
- the recursive
-
getFrequencyTolerance
- Returns:
- the frequencyTolerance
-
getAbsoluteTolerance
- Returns:
- the absoluteTolerance
-
getRelativeTolerance
- Returns:
- the relativeTolerance
-
getMinimumLeadout
- Returns:
- the minimumLeadout
-
isOverride
public boolean isOverride()- Returns:
- the override
-
setStrict
public void setStrict(boolean strict) - Parameters:
strict
- the strict to set
-
setAllDecodes
public void setAllDecodes(boolean allDecodes) - Parameters:
allDecodes
- the allDecodes to set
-
setRemoveDefaultedParameters
public void setRemoveDefaultedParameters(boolean removeDefaultedParameters) - Parameters:
removeDefaultedParameters
- the removeDefaultedParameters to set
-
setRecursive
public void setRecursive(boolean recursive) - Parameters:
recursive
- the recursive to set
-
setFrequencyTolerance
- Parameters:
frequencyTolerance
- the frequencyTolerance to set
-
setAbsoluteTolerance
- Parameters:
absoluteTolerance
- the absoluteTolerance to set
-
setRelativeTolerance
- Parameters:
relativeTolerance
- the relativeTolerance to set
-
setMinimumLeadout
- Parameters:
minimumLeadout
- the minimumLeadout to set
-
setOverride
public void setOverride(boolean override) -
setIgnoreLeadingGarbage
public void setIgnoreLeadingGarbage(boolean ignoreLeadingGarbage)
-