Package org.harctoolbox.irp
Class FloatNumber
java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.FloatNumber
- All Implemented Interfaces:
Serializable
,Floatable
,XmlExport
- See Also:
-
Constructor Summary
ConstructorDescriptionFloatNumber
(double x) FloatNumber
(String str) FloatNumber
(ParserDriver parserDriver) -
Method Summary
Modifier and TypeMethodDescriptionboolean
constant
(NameEngine nameEngine) boolean
int
hashCode()
static double
static double
double
toFloat()
double
toFloat
(GeneralSpec generalSpec, NameEngine nameEngine) Produces a floating result.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.Methods inherited from class org.harctoolbox.irp.IrpObject
createParameterSpecs, getParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, updateStateWhenEntering, updateStateWhenExiting
-
Constructor Details
-
FloatNumber
public FloatNumber(double x) -
FloatNumber
-
FloatNumber
-
FloatNumber
-
-
Method Details
-
parse
-
parse
-
toFloat
Description copied from interface:Floatable
Produces a floating result. -
toFloat
public double toFloat() -
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 interfaceFloatable
- Specified by:
toIrpString
in classIrpObject
- Parameters:
radix
- Radix for parameters.- Returns:
- Formatted string.
-
toElement
-
weight
public int weight()Description copied from class:IrpObject
Returns a (somewhat arbitrary) measure of the complexity of the object. Can be used for determining if a decode is "simpler" than another decode. -
equals
-
hashCode
public int hashCode() -
constant
-