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
-
Method Summary
Modifier and TypeMethodDescriptionlong
getWidth
(NameEngine nameEngine) protected BitwiseParameter
getWidth
(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 long
toLong
(long data, long chop, boolean complement) long
toLong
(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, weight
Methods 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:
substituteConstantVariables
in classBitField
-
toLong
Description copied from interface:Numerical
Produces a numerical result.- Parameters:
nameEngine
- used to resolve names in expressions.- Returns:
- result, long.
- Throws:
NameUnassignedException
-
toBitwiseParameter
-
getWidth
-
getWidth
- Specified by:
getWidth
in classBitField
- Throws:
NameUnassignedException
-
toString
-
toIrpString
Description copied from class:IrpObject
Returns 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:
toIrpString
in classIrpObject
- Parameters:
radix
- Radix for parameters.- Returns:
- Formatted string.
-
toElement
-
propertiesMap
public Map<String,Object> propertiesMap(boolean eval, GeneralSpec generalSpec, NameEngine nameEngine) - Overrides:
propertiesMap
in classBitField
-
numberOfBits
- Overrides:
numberOfBits
in classIrpObject
-
invert
public BitwiseParameter invert(BitwiseParameter rhs, RecognizeData recognizeData) throws NameUnassignedException - Specified by:
invert
in interfaceEquationSolving
- Specified by:
invert
in classBitField
- Throws:
NameUnassignedException
-