Class Decoder.DecoderParameters

java.lang.Object
org.harctoolbox.irp.Decoder.DecoderParameters
Enclosing class:
Decoder

public static final class Decoder.DecoderParameters extends Object
  • 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

      public DecoderParameters(boolean strict, Double frequencyTolerance, Double absoluteTolerance, Double relativeTolerance, Double minimumLeadout)
  • Method Details

    • select

      public Decoder.DecoderParameters select(boolean newStrict, Double frequencyTolerance, Double absoluteTolerance, Double relativeTolerance, Double minimumLeadout)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public Double getFrequencyTolerance()
      Returns:
      the frequencyTolerance
    • getAbsoluteTolerance

      public Double getAbsoluteTolerance()
      Returns:
      the absoluteTolerance
    • getRelativeTolerance

      public Double getRelativeTolerance()
      Returns:
      the relativeTolerance
    • getMinimumLeadout

      public Double 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

      public void setFrequencyTolerance(Double frequencyTolerance)
      Parameters:
      frequencyTolerance - the frequencyTolerance to set
    • setAbsoluteTolerance

      public void setAbsoluteTolerance(Double absoluteTolerance)
      Parameters:
      absoluteTolerance - the absoluteTolerance to set
    • setRelativeTolerance

      public void setRelativeTolerance(Double relativeTolerance)
      Parameters:
      relativeTolerance - the relativeTolerance to set
    • setMinimumLeadout

      public void setMinimumLeadout(Double minimumLeadout)
      Parameters:
      minimumLeadout - the minimumLeadout to set
    • setOverride

      public void setOverride(boolean override)
    • setIgnoreLeadingGarbage

      public void setIgnoreLeadingGarbage(boolean ignoreLeadingGarbage)