Package org.projog.core.math
Interface Numeric
-
- All Superinterfaces:
ArithmeticOperator,Term
- All Known Implementing Classes:
ClpVariable,DecimalFraction,IntegerNumber
public interface Numeric extends Term, ArithmeticOperator
ATermthat has a numerical value.- See Also:
TermUtils.castToNumeric(Term)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetDouble()Returns the value of this numeric as adouble.longgetLong()Returns the value of this numeric as along.-
Methods inherited from interface org.projog.core.math.ArithmeticOperator
calculate
-
Methods inherited from interface org.projog.core.term.Term
backtrack, copy, getArgs, getArgument, getBound, getName, getNumberOfArguments, getTerm, getType, isImmutable, unify
-
-