Package org.harctoolbox.irp
Class NumberWithDecimals
java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.NumberWithDecimals
- All Implemented Interfaces:
Serializable,Floatable,XmlExport
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNumberWithDecimals(double d) NumberWithDecimals(int i) NumberWithDecimals(long n) NumberWithDecimals(String str) NumberWithDecimals(ParserDriver parserDriver) -
Method Summary
Modifier and TypeMethodDescriptionbooleanconstant(NameEngine nameEngine) booleaninthashCode()static doublestatic doubledoubletoFloat()doubletoFloat(GeneralSpec generalSpec, NameEngine nameEngine) Produces a floating result.toIrpString(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.intweight()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
-
NumberWithDecimals
-
NumberWithDecimals
-
NumberWithDecimals
-
NumberWithDecimals
public NumberWithDecimals(double d) -
NumberWithDecimals
public NumberWithDecimals(int i) -
NumberWithDecimals
public NumberWithDecimals(long n)
-
-
Method Details
-
parse
-
parse
-
toFloat
Description copied from interface:FloatableProduces a floating result. -
toFloat
public double toFloat() -
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 interfaceFloatable- Specified by:
toIrpStringin classIrpObject- Parameters:
radix- Radix for parameters.- Returns:
- Formatted string.
-
toElement
-
weight
public int weight()Description copied from class:IrpObjectReturns 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
-