public final class BitSpec extends IrpObject implements AggregateLister
| Constructor and Description |
|---|
BitSpec() |
BitSpec(IrpParser.BitspecContext ctx) |
BitSpec(List<BareIrStream> list) |
BitSpec(String str) |
| Modifier and Type | Method and Description |
|---|---|
TreeSet<Double> |
allDurationsInMicros(GeneralSpec generalSpec,
NameEngine nameEngine) |
(package private) Set<String> |
assignmentVariables() |
(package private) double |
averageDuration(GeneralSpec generalSpec,
NameEngine nameEngine) |
boolean |
constant(NameEngine nameEngine) |
boolean |
equals(Object obj) |
BareIrStream |
get(int index) |
int |
getChunkSize() |
boolean |
hasExtent() |
int |
hashCode() |
(package private) boolean |
interleaveOk(DurationType last,
boolean gapFlashBitSpecs) |
boolean |
isEmpty() |
boolean |
isPWM() |
boolean |
isPWM(int length) |
(package private) boolean |
isSonyType(GeneralSpec generalSpec,
NameEngine nameEngine) |
boolean |
isStandardBiPhase(GeneralSpec generalSpec,
NameEngine nameEngine)
Checks if the BitSpec is of type <a,-a|-a,a> (a != 0)
|
boolean |
isTrivial(GeneralSpec generalSpec,
NameEngine nameEngine)
Checks if the BitSpec is of type <a|-a> (a != 0)
|
boolean |
isTrivial(GeneralSpec generalSpec,
NameEngine nameEngine,
boolean inverted)
Checks if the BitSpec is of type <a|-a> (a != 0)
|
Integer |
numberOfBitspecDurations() |
Integer |
numberOfDurations() |
int |
numberOfInfiniteRepeats() |
Map<String,Object> |
propertiesMap(GeneralSpec generalSpec,
NameEngine nameEngine) |
int |
size() |
(package private) BitSpec |
substituteConstantVariables(Map<String,Long> constantVariables) |
Element |
toElement(Document document) |
String |
toIrpString(int radix) |
int |
weight()
Returns a (somewhat arbitrary) measure of the complexity of the object.
|
getParseTree, numberOfBits, numberOfBitSpecs, prerender, propertiesMap, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerpublic BitSpec(String str)
public BitSpec(IrpParser.BitspecContext ctx)
public BitSpec(List<BareIrStream> list) throws NonUniqueBitCodeException
NonUniqueBitCodeExceptionpublic BitSpec()
public Integer numberOfDurations()
public int size()
public int numberOfInfiniteRepeats()
numberOfInfiniteRepeats in class IrpObjectpublic BareIrStream get(int index)
public String toIrpString(int radix)
toIrpString in class IrpObjectpublic int getChunkSize()
public boolean isEmpty()
public Integer numberOfBitspecDurations()
public boolean isPWM()
public boolean isPWM(int length)
boolean isSonyType(GeneralSpec generalSpec, NameEngine nameEngine)
public boolean isStandardBiPhase(GeneralSpec generalSpec, NameEngine nameEngine)
nameEngine - generalSpec - public boolean isTrivial(GeneralSpec generalSpec, NameEngine nameEngine, boolean inverted)
nameEngine - generalSpec - inverted - If true then a > 0, i.e., starts with a flash.public boolean isTrivial(GeneralSpec generalSpec, NameEngine nameEngine)
nameEngine - generalSpec - boolean interleaveOk(DurationType last, boolean gapFlashBitSpecs)
public int weight()
IrpObjectpublic boolean hasExtent()
public Map<String,Object> propertiesMap(GeneralSpec generalSpec, NameEngine nameEngine)
propertiesMap in interface AggregateListerdouble averageDuration(GeneralSpec generalSpec, NameEngine nameEngine)
public TreeSet<Double> allDurationsInMicros(GeneralSpec generalSpec, NameEngine nameEngine)
public boolean constant(NameEngine nameEngine)
Copyright © 2019. All rights reserved.