Package apron
Class Coeff
java.lang.Object
apron.Coeff
- All Implemented Interfaces:
Serializable,Cloneable
Abstract class of constant coefficients that can appear in expressions.
A coefficient can be either a Scalar real singleton or
an Interval set of real values.
The Coeff class provides methods to manipulate coefficients independently
from the underlying representation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intCompare this and x for inclusion.abstract Coeffcopy()Creates a copy of the coefficient, of the same kind.static Coeffcreate()Creates a 0 coefficient as a double Scalar.booleanWhether x is a Coeff has the same value.abstract inthashCode()Returns a hash of the value of this.abstract Scalarinf()Returns a reference to the lower bound of this.abstract booleanisEqual(int i) Whether this represents the singleton i.abstract booleanWhether this equals x.abstract booleanisScalar()Whether this represents a singleton.abstract booleanisZero()Whether this represents the singleton 0.abstract voidneg()Negates this.abstract Scalarsup()Returns a reference to the upper bound of this.abstract StringtoString()Returns a string representation of this.
-
Constructor Details
-
Coeff
public Coeff()
-
-
Method Details
-
create
Creates a 0 coefficient as a double Scalar. -
copy
Creates a copy of the coefficient, of the same kind. -
inf
Returns a reference to the lower bound of this. -
sup
Returns a reference to the upper bound of this. -
toString
Returns a string representation of this. -
hashCode
public abstract int hashCode()Returns a hash of the value of this. -
isZero
public abstract boolean isZero()Whether this represents the singleton 0. -
isScalar
public abstract boolean isScalar()Whether this represents a singleton. -
isEqual
public abstract boolean isEqual(int i) Whether this represents the singleton i. -
isEqual
Whether this equals x. -
cmp
Compare this and x for inclusion.- See Also:
-
neg
public abstract void neg()Negates this. -
equals
Whether x is a Coeff has the same value.
-