Package org.networkcalculus.num
Interface Num
-
- All Known Implementing Classes:
NaN
,NegativeInfinity
,PositiveInfinity
,RationalBigInt
,RationalInt
,RealDoublePrecision
,RealSinglePrecision
public interface Num
-
-
Field Summary
Fields Modifier and Type Field Description static Num
NaN
static Num
NEGATIVE_INFINITY
static Num
POSITIVE_INFINITY
-
Method Summary
Modifier and Type Method Description Num
abs(Num num)
Num
add(Num num1, Num num2)
Num
copy()
Num
create(double value)
Num
create(int num)
Num
create(int num, int den)
Num
create(java.lang.String num_str)
Num
createNaN()
Num
createNegativeInfinity()
Num
createPositiveInfinity()
Num
createZero()
Num
diff(Num num1, Num num2)
Num
div(Num num1, Num num2)
double
doubleValue()
boolean
eq(double num)
boolean
eq(Num num)
boolean
equals(java.lang.Object obj)
boolean
eqZero()
boolean
geq(Num num)
boolean
geqZero()
static Num
getFactory(NumBackend backend)
Num
getNaN()
Num
getNegativeInfinity()
Num
getPositiveInfinity()
static Num
getUtils(NumBackend backend)
Num
getZero()
boolean
gt(Num num)
boolean
gtZero()
int
hashCode()
boolean
isFinite()
boolean
isInfinite()
boolean
isNaN()
boolean
leq(Num num)
boolean
leqZero()
boolean
lt(Num num)
boolean
ltZero()
Num
max(Num num1, Num num2)
Num
min(Num num1, Num num2)
Num
mult(Num num1, Num num2)
Num
negate(Num num)
Num
sub(Num num1, Num num2)
java.lang.String
toString()
-
-
-
Method Detail
-
getFactory
static Num getFactory(NumBackend backend)
-
getUtils
static Num getUtils(NumBackend backend)
-
doubleValue
double doubleValue()
-
hashCode
int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
copy
Num copy()
-
getPositiveInfinity
Num getPositiveInfinity()
-
createPositiveInfinity
Num createPositiveInfinity()
-
getNegativeInfinity
Num getNegativeInfinity()
-
createNegativeInfinity
Num createNegativeInfinity()
-
getNaN
Num getNaN()
-
createNaN
Num createNaN()
-
getZero
Num getZero()
-
createZero
Num createZero()
-
create
Num create(int num)
-
create
Num create(double value)
-
create
Num create(int num, int den)
-
create
Num create(java.lang.String num_str) throws java.lang.Exception
- Throws:
java.lang.Exception
-
gtZero
boolean gtZero()
-
geqZero
boolean geqZero()
-
eqZero
boolean eqZero()
-
leqZero
boolean leqZero()
-
ltZero
boolean ltZero()
-
gt
boolean gt(Num num)
-
geq
boolean geq(Num num)
-
eq
boolean eq(Num num)
-
eq
boolean eq(double num)
-
equals
boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
leq
boolean leq(Num num)
-
lt
boolean lt(Num num)
-
isFinite
boolean isFinite()
-
isInfinite
boolean isInfinite()
-
isNaN
boolean isNaN()
-
-