public final class GeneralSpec extends IrpObject implements AggregateLister
| Modifier and Type | Field and Description |
|---|---|
static BitDirection |
DEFAULT_BITDIRECTION |
static double |
DEFAULT_FREQUENCY |
static double |
DEFAULT_UNIT |
| Constructor and Description |
|---|
GeneralSpec()
This constructor is intended for debugging and testing only
|
GeneralSpec(BitDirection bitDirection,
Double unit,
Double frequency) |
GeneralSpec(BitDirection bitDirection,
Double unit,
Double frequency,
Double dutyCycle)
This constructor is intended for debugging and testing only.
|
GeneralSpec(IrpParser.Generalspec_listContext ctx) |
GeneralSpec(IrpParser.GeneralspecContext ctx) |
GeneralSpec(IrpParser.ProtocolContext ctx) |
GeneralSpec(String str) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BitDirection |
getBitDirection() |
Double |
getDutyCycle() |
Double |
getFrequency() |
double |
getFrequencyWitDefault() |
double |
getUnit() |
int |
hashCode() |
Map<String,Object> |
propertiesMap(GeneralSpec generalSpec,
NameEngine nameEngine) |
Element |
toElement(Document document) |
String |
toIrpString(boolean usePeriods) |
String |
toIrpString(int radix)
Returns a computed IRP (-segment) string representation of current IrpObject.
|
int |
weight()
Returns a (somewhat arbitrary) measure of the complexity of the object.
|
getParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerpublic static final BitDirection DEFAULT_BITDIRECTION
public static final double DEFAULT_FREQUENCY
public static final double DEFAULT_UNIT
public GeneralSpec(BitDirection bitDirection, Double unit, Double frequency, Double dutyCycle)
bitDirection - unit - frequency - dutyCycle - public GeneralSpec(BitDirection bitDirection, Double unit, Double frequency)
public GeneralSpec()
public GeneralSpec(String str) throws IrpInvalidArgumentException
IrpInvalidArgumentExceptionpublic GeneralSpec(IrpParser.ProtocolContext ctx) throws IrpInvalidArgumentException
IrpInvalidArgumentExceptionpublic GeneralSpec(IrpParser.GeneralspecContext ctx) throws IrpInvalidArgumentException
IrpInvalidArgumentExceptionpublic GeneralSpec(IrpParser.Generalspec_listContext ctx) throws IrpInvalidArgumentException
ctx - IrpInvalidArgumentExceptionpublic BitDirection getBitDirection()
public Double getFrequency()
public double getFrequencyWitDefault()
public double getUnit()
public Double getDutyCycle()
public String toIrpString(int radix)
IrpObjecttoIrpString in class IrpObjectradix - Radix for parameters.public String toIrpString(boolean usePeriods)
public int weight()
IrpObjectpublic Map<String,Object> propertiesMap(GeneralSpec generalSpec, NameEngine nameEngine)
propertiesMap in interface AggregateListerCopyright © 2020. All rights reserved.