Package apron
Class Linterm1
java.lang.Object
apron.Linterm1
- All Implemented Interfaces:
Serializable
,Cloneable
Class of terms in level 1 linear expressions and constraints.
A Linterm1 is a pair composed of a Coeff
coefficient
and a variable denoted by name.
It represents a single term in a Linexpr1
or
Lincons1
.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a copy of this.boolean
Whether x is a Linterm1 and structurally equal to this.boolean
Whether x and this are structurally equal.void
void
setVariable
(Var s) void
toString()
Returns a String representation of the linear term.
-
Field Details
-
var
Variable name. -
coeff
Variable coefficient.
-
-
Constructor Details
-
Linterm1
-
Linterm1
Creates a new linear term.The coefficient is referenced, not copied.
-
Linterm1
Creates a copy of the linear term.The coefficient is copied.
-
-
Method Details
-
toString
Returns a String representation of the linear term. -
clone
Returns a copy of this. -
isEqual
Whether x and this are structurally equal. -
equals
Whether x is a Linterm1 and structurally equal to this. -
getVariable
-
getCoefficient
-
setVariable
-
setVariable
-
setCoeffcient
-