Package org.harctoolbox.irp
Interface Floatable
- All Known Implementing Classes:
Duration
,Extent
,Flash
,FloatNumber
,Gap
,Name
,NameOrNumber
,NumberWithDecimals
public interface Floatable
Interface for classes that can produce an floating point number.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
constant
(NameEngine nameEngine) double
toFloat
(GeneralSpec generalSpec, NameEngine nameEngine) Produces a floating result.toIrpString
(int radix)
-
Method Details
-
toFloat
double toFloat(GeneralSpec generalSpec, NameEngine nameEngine) throws IrpInvalidArgumentException, NameUnassignedException Produces a floating result.- Parameters:
nameEngine
-generalSpec
-- Returns:
- Floating representation of class.
- Throws:
IrpInvalidArgumentException
NameUnassignedException
-
toElement
-
toIrpString
-
constant
-