public final class BitspecIrstream extends IrpObject implements IrStreamItem
| Constructor and Description |
|---|
BitspecIrstream() |
BitspecIrstream(BitSpec bitSpec,
IrStream irStream) |
BitspecIrstream(BitSpec bitSpec,
IrStream irStream,
IrpParser.Bitspec_irstreamContext ctx) |
BitspecIrstream(IrpParser.Bitspec_irstreamContext ctx) |
BitspecIrstream(IrpParser.ProtocolContext ctx) |
BitspecIrstream(String str) |
| Modifier and Type | Method and Description |
|---|---|
TreeSet<Double> |
allDurationsInMicros(GeneralSpec generalSpec,
NameEngine nameEngine)
Delivers a set of all the contained durations in microseconds.
|
Set<String> |
assignmentVariables() |
boolean |
constant(NameEngine nameEngine) |
void |
decode(RecognizeData recognizeData,
List<BitSpec> inheritedBitSpecs,
boolean isLast) |
DurationType |
endingDurationType(DurationType last,
boolean gapFlashBitSpecs) |
boolean |
equals(Object obj) |
void |
evaluate(RenderData renderData,
List<BitSpec> bitSpecStack) |
BareIrStream |
extractPass(IrSignal.Pass pass) |
List<IrStreamItem> |
extractPass(IrSignal.Pass pass,
IrSignal.Pass state) |
BitSpec |
getBitSpec() |
IrStream |
getIrStream() |
Integer |
guessParameterLength(String name)
Tries to infer the bit-length of the parameter with name as the argument.
|
boolean |
hasExtent() |
int |
hashCode() |
(package private) boolean |
hasVariation(boolean recursive) |
(package private) boolean |
hasVariationWithIntroEqualsRepeat() |
boolean |
interleavingFlashOk() |
boolean |
interleavingGapOk() |
boolean |
interleavingOk() |
boolean |
interleavingOk(DurationType last) |
boolean |
interleavingOk(DurationType last,
boolean gapFlashBitSpecsUnused) |
boolean |
interleavingOk(DurationType toCheck,
DurationType last) |
boolean |
interleavingOk(DurationType toCheck,
DurationType last,
boolean gapFlashBitSpecs) |
(package private) boolean |
isBiphase(GeneralSpec generalSpec,
NameEngine nameEngine) |
boolean |
isEmpty(NameEngine nameEngine) |
(package private) boolean |
isPWM16() |
(package private) boolean |
isPWM2() |
(package private) boolean |
isPWM4() |
(package private) boolean |
isRPlus() |
(package private) boolean |
isSonyType(GeneralSpec generalSpec,
NameEngine nameEngine) |
(package private) boolean |
isTrivial(GeneralSpec generalSpec,
NameEngine definitions,
boolean inverted) |
Double |
microSeconds(GeneralSpec generalSpec,
NameEngine nameEngine) |
boolean |
nonConstantBitFieldLength() |
Integer |
numberOfBareDurations(boolean recursive) |
Integer |
numberOfBits()
Computes the number of encoded bits, which may differ from the number of payload bits,
in the case of redundancy.
|
Integer |
numberOfBitSpecs() |
Integer |
numberOfDurations()
Upper limit of the number of (interleaving) durations in the rendered signal.
|
int |
numberOfInfiniteRepeats() |
Map<String,Object> |
propertiesMap(GeneralSpec generalSpec,
NameEngine nameEngine) |
void |
render(RenderData renderData,
List<BitSpec> inheritedBitSpecs) |
DurationType |
startingDuratingType(DurationType last,
boolean gapFlashBitSpecs) |
DurationType |
startingDurationType(boolean gapFlashBitSpecs) |
(package private) boolean |
startsWithFlash() |
BitspecIrstream |
substituteConstantVariables(Map<String,Long> constantVariables)
Returns an IrStreamItem of the same type with all occurrences of the
variables in the dictionary replaced by their values in the dictionary.
|
Element |
toElement(Document document) |
String |
toIrpString(int radix) |
String |
toIrpString(int radix,
String separator) |
int |
weight()
Returns a (somewhat arbitrary) measure of the complexity of the object.
|
getParseTree, prerender, propertiesMap, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerclone, finalize, getClass, notify, notifyAll, wait, wait, waitnewIrStreamItem, newIrStreamItem, newIrStreamItem, propertiesMap, stateWhenEntering, stateWhenExitingtoDocumentpublic BitspecIrstream(IrpParser.ProtocolContext ctx)
public BitspecIrstream(BitSpec bitSpec, IrStream irStream, IrpParser.Bitspec_irstreamContext ctx)
public BitspecIrstream(IrpParser.Bitspec_irstreamContext ctx)
public BitspecIrstream(String str)
public BitspecIrstream()
public String toIrpString(int radix)
toIrpString in interface IrStreamItemtoIrpString in class IrpObjectpublic boolean isEmpty(NameEngine nameEngine)
isEmpty in interface IrStreamItempublic Integer numberOfBitSpecs()
numberOfBitSpecs in interface IrStreamItemnumberOfBitSpecs in class IrpObjectpublic Integer numberOfBits()
IrStreamItemnumberOfBits in interface IrStreamItemnumberOfBits in class IrpObjectpublic Integer numberOfBareDurations(boolean recursive)
numberOfBareDurations in interface IrStreamItempublic int numberOfInfiniteRepeats()
numberOfInfiniteRepeats in interface IrStreamItemnumberOfInfiniteRepeats in class IrpObjectpublic void decode(RecognizeData recognizeData, List<BitSpec> inheritedBitSpecs, boolean isLast) throws SignalRecognitionException
decode in interface IrStreamItemSignalRecognitionExceptionpublic void render(RenderData renderData, List<BitSpec> inheritedBitSpecs) throws NameUnassignedException
render in interface IrStreamItemNameUnassignedExceptionpublic List<IrStreamItem> extractPass(IrSignal.Pass pass, IrSignal.Pass state)
extractPass in interface IrStreamItempublic BareIrStream extractPass(IrSignal.Pass pass)
public boolean interleavingOk(DurationType last, boolean gapFlashBitSpecsUnused)
interleavingOk in interface IrStreamItempublic boolean interleavingOk(DurationType last)
public boolean interleavingOk(DurationType toCheck, DurationType last, boolean gapFlashBitSpecs)
interleavingOk in interface IrStreamItempublic boolean interleavingOk(DurationType toCheck, DurationType last)
public boolean interleavingOk()
public boolean interleavingFlashOk()
public boolean interleavingGapOk()
public DurationType endingDurationType(DurationType last, boolean gapFlashBitSpecs)
endingDurationType in interface IrStreamItempublic DurationType startingDuratingType(DurationType last, boolean gapFlashBitSpecs)
startingDuratingType in interface IrStreamItemboolean isPWM2()
boolean isPWM4()
boolean isPWM16()
boolean isBiphase(GeneralSpec generalSpec, NameEngine nameEngine)
boolean isTrivial(GeneralSpec generalSpec, NameEngine definitions, boolean inverted)
boolean isRPlus()
boolean isSonyType(GeneralSpec generalSpec, NameEngine nameEngine)
public DurationType startingDurationType(boolean gapFlashBitSpecs)
boolean hasVariation(boolean recursive)
boolean startsWithFlash()
public int weight()
IrpObjectweight in interface IrStreamItemweight in class IrpObjectboolean hasVariationWithIntroEqualsRepeat()
public boolean hasExtent()
hasExtent in interface IrStreamItempublic BitSpec getBitSpec()
public IrStream getIrStream()
public Set<String> assignmentVariables()
assignmentVariables in interface IrStreamItempublic Map<String,Object> propertiesMap(GeneralSpec generalSpec, NameEngine nameEngine)
propertiesMap in interface IrStreamItempublic Double microSeconds(GeneralSpec generalSpec, NameEngine nameEngine)
microSeconds in interface IrStreamItempublic Integer numberOfDurations()
IrStreamItemnumberOfDurations in interface IrStreamItempublic void evaluate(RenderData renderData, List<BitSpec> bitSpecStack)
evaluate in interface IrStreamItempublic boolean nonConstantBitFieldLength()
nonConstantBitFieldLength in interface IrStreamItempublic Integer guessParameterLength(String name)
IrStreamItemguessParameterLength in interface IrStreamItemname - Name of parameter sought.public BitspecIrstream substituteConstantVariables(Map<String,Long> constantVariables)
IrStreamItemsubstituteConstantVariables in interface IrStreamItemconstantVariables - Map<String, Long> of variables to replace.public TreeSet<Double> allDurationsInMicros(GeneralSpec generalSpec, NameEngine nameEngine)
IrStreamItemallDurationsInMicros in interface IrStreamItempublic boolean constant(NameEngine nameEngine)
constant in interface IrStreamItemCopyright © 2019. All rights reserved.