Package org.networkcalculus.num.values
Class NegativeInfinity
- java.lang.Object
-
- org.networkcalculus.num.values.NegativeInfinity
-
-
Field Summary
Fields Modifier and Type Field Description private static NegativeInfinity
instance
-
Fields inherited from interface org.networkcalculus.num.Num
NaN, NEGATIVE_INFINITY, POSITIVE_INFINITY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NegativeInfinity()
NegativeInfinity(double value)
NegativeInfinity(int num)
NegativeInfinity(int num, int den)
NegativeInfinity(NegativeInfinity num)
-
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 NegativeInfinity
getInstance()
Num
getNaN()
Num
getNegativeInfinity()
Num
getPositiveInfinity()
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()
-
-
-
Field Detail
-
instance
private static NegativeInfinity instance
-
-
Constructor Detail
-
NegativeInfinity
private NegativeInfinity()
-
NegativeInfinity
public NegativeInfinity(int num)
-
NegativeInfinity
public NegativeInfinity(double value)
-
NegativeInfinity
public NegativeInfinity(int num, int den)
-
NegativeInfinity
public NegativeInfinity(NegativeInfinity num)
-
-
Method Detail
-
getInstance
public static NegativeInfinity getInstance()
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in interfaceNum
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
-
getPositiveInfinity
public Num getPositiveInfinity()
- Specified by:
getPositiveInfinity
in interfaceNum
-
createPositiveInfinity
public Num createPositiveInfinity()
- Specified by:
createPositiveInfinity
in interfaceNum
-
getNegativeInfinity
public Num getNegativeInfinity()
- Specified by:
getNegativeInfinity
in interfaceNum
-
createNegativeInfinity
public Num createNegativeInfinity()
- Specified by:
createNegativeInfinity
in interfaceNum
-
createZero
public Num createZero()
- Specified by:
createZero
in interfaceNum
-
create
public Num create(java.lang.String num_str) throws java.lang.Exception
-
equals
public boolean equals(java.lang.Object obj)
-
isInfinite
public boolean isInfinite()
- Specified by:
isInfinite
in interfaceNum
-
-