Package org.harctoolbox.analyze
Class AbstractDecoder
java.lang.Object
org.harctoolbox.analyze.AbstractDecoder
- Direct Known Subclasses:
AbstractBiphaseDecoder
,PwmDecoder
,SerialDecoder
,TrivialDecoder
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Analyzer
protected BitSpec
protected static final int
protected NameEngine
protected int
protected static final int
protected final Analyzer.AnalyzerParams
protected final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
dumpParameters
(AbstractDecoder.ParameterData data, List<IrStreamItem> items, int noBitsLimit) protected void
dumpParameters
(AbstractDecoder.ParameterData data, List<IrStreamItem> items, int noBitsLimit, boolean invert) protected int
getNoBitsLimit
(List<Integer> parameterWidths) name()
protected Extent
newExtent
(int total) protected Flash
newFlash
(int flash) protected Duration
newFlashOrGap
(boolean isFlash, int time) protected Gap
newGap
(int gap) Protocol[]
parse()
Protocol[]
parse
(boolean signalMode) protected abstract List<IrStreamItem>
parse
(int beginStart, int beginLength) protected void
saveParameter
(AbstractDecoder.ParameterData parameterData, List<IrStreamItem> items, BitDirection bitDirection) protected void
saveParameter
(AbstractDecoder.ParameterData parameterData, List<IrStreamItem> items, BitDirection bitDirection, boolean complement) protected void
saveParameter
(BitSpec bitSpec, AbstractDecoder.ParameterData parameterData, List<IrStreamItem> items, BitDirection bitDirection, boolean complement)
-
Field Details
-
NUMBERDECODERS
protected static final int NUMBERDECODERS -
CANNOT_MATCH
protected static final int CANNOT_MATCH- See Also:
-
nameEngine
-
noPayload
protected int noPayload -
timebase
protected final double timebase -
analyzer
-
bitSpec
-
params
-
-
Constructor Details
-
AbstractDecoder
-
-
Method Details
-
decoderNames
-
parse
- Throws:
org.harctoolbox.analyze.DecodeException
-
parse
- Throws:
org.harctoolbox.analyze.DecodeException
-
newFlash
-
newExtent
-
newGap
-
newFlashOrGap
-
saveParameter
protected void saveParameter(AbstractDecoder.ParameterData parameterData, List<IrStreamItem> items, BitDirection bitDirection) -
saveParameter
protected void saveParameter(AbstractDecoder.ParameterData parameterData, List<IrStreamItem> items, BitDirection bitDirection, boolean complement) -
saveParameter
protected void saveParameter(BitSpec bitSpec, AbstractDecoder.ParameterData parameterData, List<IrStreamItem> items, BitDirection bitDirection, boolean complement) -
parse
protected abstract List<IrStreamItem> parse(int beginStart, int beginLength) throws org.harctoolbox.analyze.DecodeException - Throws:
org.harctoolbox.analyze.DecodeException
-
getNoBitsLimit
-
name
-
dumpParameters
protected void dumpParameters(AbstractDecoder.ParameterData data, List<IrStreamItem> items, int noBitsLimit, boolean invert) -
dumpParameters
protected void dumpParameters(AbstractDecoder.ParameterData data, List<IrStreamItem> items, int noBitsLimit)
-