public final class IrStream extends IrpObject implements IrStreamItem, AggregateLister
| Constructor and Description |
|---|
IrStream() |
IrStream(BareIrStream bareIrStream) |
IrStream(BareIrStream bareIrStream,
RepeatMarker repeatMarker) |
IrStream(IrpParser.IrstreamContext ctx) |
IrStream(List<IrStreamItem> irStreamItems) |
IrStream(List<IrStreamItem> irStreamItems,
RepeatMarker repeatMarker) |
IrStream(ParserDriver parserDriver) |
IrStream(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> bitSpecs,
boolean isLast) |
DurationType |
endingDurationType(DurationType last,
boolean gapFlashBitSpecs) |
boolean |
equals(Object obj) |
void |
evaluate(RenderData renderData,
List<BitSpec> bitSpecStack) |
List<IrStreamItem> |
extractPass(IrSignal.Pass pass,
IrSignal.Pass state) |
RepeatMarker |
getRepeatMarker() |
Integer |
guessParameterLength(String name)
Tries to infer the bit-length of the parameter with name as the argument.
|
boolean |
hasExtent() |
int |
hashCode() |
boolean |
hasVariation(boolean recursive) |
(package private) boolean |
hasVariationWithIntroEqualsRepeat() |
boolean |
interleavingOk(DurationType last,
boolean gapFlashBitSpecs) |
boolean |
interleavingOk(DurationType toCheck,
DurationType last,
boolean gapFlashBitSpecs) |
boolean |
isEmpty(NameEngine nameEngine) |
boolean |
isRepeatSequence() |
(package private) boolean |
isRPlus() |
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.
|
Integer |
numberOfDurations(int bitSpecLength) |
int |
numberOfInfiniteRepeats() |
Map<String,Object> |
propertiesMap(GeneralSpec generalSpec,
NameEngine nameEngine) |
void |
render(RenderData traverseData,
List<BitSpec> bitSpecs) |
DurationType |
startingDuratingType(DurationType last,
boolean gapFlashBitSpecs) |
(package private) boolean |
startsWithFlash() |
IrSignal.Pass |
stateWhenEntering(IrSignal.Pass pass) |
IrSignal.Pass |
stateWhenExiting(IrSignal.Pass pass) |
IrStream |
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, toDocument, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerclone, finalize, getClass, notify, notifyAll, wait, wait, waitnewIrStreamItem, newIrStreamItem, newIrStreamItem, propertiesMaptoDocumentpublic IrStream(String str)
public IrStream(ParserDriver parserDriver)
public IrStream(IrpParser.IrstreamContext ctx)
public IrStream(List<IrStreamItem> irStreamItems, RepeatMarker repeatMarker)
public IrStream(BareIrStream bareIrStream, RepeatMarker repeatMarker)
public IrStream(BareIrStream bareIrStream)
public IrStream(List<IrStreamItem> irStreamItems)
public IrStream()
public IrStream substituteConstantVariables(Map<String,Long> constantVariables)
IrStreamItemsubstituteConstantVariables in interface IrStreamItemconstantVariables - Map<String, Long> of variables to replace.public RepeatMarker getRepeatMarker()
public IrSignal.Pass stateWhenEntering(IrSignal.Pass pass)
stateWhenEntering in interface IrStreamItemstateWhenEntering in class IrpObjectpublic IrSignal.Pass stateWhenExiting(IrSignal.Pass pass)
stateWhenExiting in interface IrStreamItemstateWhenExiting in class IrpObjectpublic String toIrpString(int radix)
toIrpString in interface IrStreamItemtoIrpString in class IrpObjectpublic boolean isRepeatSequence()
public Integer numberOfBareDurations(boolean recursive)
numberOfBareDurations in interface IrStreamItempublic Integer numberOfBits()
IrStreamItemnumberOfBits in interface IrStreamItemnumberOfBits in class IrpObjectpublic Integer numberOfBitSpecs()
numberOfBitSpecs in interface IrStreamItemnumberOfBitSpecs in class IrpObjectpublic int numberOfInfiniteRepeats()
numberOfInfiniteRepeats in interface IrStreamItemnumberOfInfiniteRepeats in class IrpObjectpublic void decode(RecognizeData recognizeData, List<BitSpec> bitSpecs, boolean isLast) throws SignalRecognitionException
decode in interface IrStreamItemSignalRecognitionExceptionpublic List<IrStreamItem> extractPass(IrSignal.Pass pass, IrSignal.Pass state)
extractPass in interface IrStreamItempublic void render(RenderData traverseData, List<BitSpec> bitSpecs) throws NameUnassignedException
render in interface IrStreamItemNameUnassignedExceptionpublic Integer numberOfDurations()
IrStreamItemnumberOfDurations in interface IrStreamItempublic Integer numberOfDurations(int bitSpecLength)
public boolean hasVariation(boolean recursive)
boolean isRPlus()
public int weight()
IrpObjectweight in interface IrStreamItemweight in class IrpObjectpublic Map<String,Object> propertiesMap(GeneralSpec generalSpec, NameEngine nameEngine)
propertiesMap in interface AggregateListerpropertiesMap in interface IrStreamItempublic boolean isEmpty(NameEngine nameEngine)
isEmpty in interface IrStreamItempublic boolean interleavingOk(DurationType last, boolean gapFlashBitSpecs)
interleavingOk in interface IrStreamItempublic boolean interleavingOk(DurationType toCheck, DurationType last, boolean gapFlashBitSpecs)
interleavingOk in interface IrStreamItempublic DurationType endingDurationType(DurationType last, boolean gapFlashBitSpecs)
endingDurationType in interface IrStreamItempublic DurationType startingDuratingType(DurationType last, boolean gapFlashBitSpecs)
startingDuratingType in interface IrStreamItempublic void evaluate(RenderData renderData, List<BitSpec> bitSpecStack) throws NameUnassignedException
evaluate in interface IrStreamItemNameUnassignedExceptionpublic boolean hasExtent()
hasExtent in interface IrStreamItempublic Set<String> assignmentVariables()
assignmentVariables in interface IrStreamItempublic Double microSeconds(GeneralSpec generalSpec, NameEngine nameEngine)
microSeconds in interface IrStreamItemboolean startsWithFlash()
boolean hasVariationWithIntroEqualsRepeat()
public boolean nonConstantBitFieldLength()
nonConstantBitFieldLength in interface IrStreamItempublic Integer guessParameterLength(String name)
IrStreamItemguessParameterLength in interface IrStreamItemname - Name of parameter sought.public TreeSet<Double> allDurationsInMicros(GeneralSpec generalSpec, NameEngine nameEngine)
IrStreamItemallDurationsInMicros in interface IrStreamItempublic boolean constant(NameEngine nameEngine)
constant in interface IrStreamItemCopyright © 2019. All rights reserved.