Package org.harctoolbox.irp
Class InfiniteBitField
java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.BitField
org.harctoolbox.irp.InfiniteBitField
- All Implemented Interfaces:
Serializable,EquationSolving,Numerical,XmlExport
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetWidth(NameEngine nameEngine) protected BitwiseParametergetWidth(RecognizeData nameResolver) invert(BitwiseParameter rhs, RecognizeData recognizeData) propertiesMap(boolean eval, GeneralSpec generalSpec, NameEngine nameEngine) substituteConstantVariables(Map<String, Long> constantVariables) toBitwiseParameter(RecognizeData recognizeData) toIrpString(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.static longtoLong(long data, long chop, boolean complement) longtoLong(NameEngine nameEngine) Produces a numerical result.toString(NameEngine nameEngine) Methods inherited from class org.harctoolbox.irp.BitField
constant, equals, getChop, getChop, getData, hasChop, hasExtent, hashCode, isComplement, isEmpty, leftHandSide, microSeconds, newBitField, newBitField, newBitField, numberOfBareDurations, parse, toLong, weightMethods inherited from class org.harctoolbox.irp.IrpObject
createParameterSpecs, getParseTree, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, updateStateWhenEntering, updateStateWhenExiting
-
Constructor Details
-
InfiniteBitField
-
InfiniteBitField
-
InfiniteBitField
-
-
Method Details
-
toLong
public static long toLong(long data, long chop, boolean complement) -
substituteConstantVariables
- Specified by:
substituteConstantVariablesin classBitField
-
toLong
Description copied from interface:NumericalProduces a numerical result.- Parameters:
nameEngine- used to resolve names in expressions.- Returns:
- result, long.
- Throws:
NameUnassignedException
-
toBitwiseParameter
-
getWidth
-
getWidth
- Specified by:
getWidthin classBitField- Throws:
NameUnassignedException
-
toString
-
toIrpString
Description copied from class:IrpObjectReturns a computed IRP (-segment) string representation of current IrpObject. Numerical parameters, but not durations etc, will be printed using the radix in the argument.- Specified by:
toIrpStringin classIrpObject- Parameters:
radix- Radix for parameters.- Returns:
- Formatted string.
-
toElement
-
propertiesMap
public Map<String,Object> propertiesMap(boolean eval, GeneralSpec generalSpec, NameEngine nameEngine) - Overrides:
propertiesMapin classBitField
-
numberOfBits
- Overrides:
numberOfBitsin classIrpObject
-
invert
public BitwiseParameter invert(BitwiseParameter rhs, RecognizeData recognizeData) throws NameUnassignedException - Specified by:
invertin interfaceEquationSolving- Specified by:
invertin classBitField- Throws:
NameUnassignedException
-