Class BoundsVarValue
java.lang.Object
org.jacop.floats.constraints.linear.BoundsVarValue
- All Implemented Interfaces:
Cloneable,MutableVarValue
Defines a current bounds for the Linear constraint.
- Version:
- 4.10
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double(package private) double(package private) double(package private) BoundsVarValue(package private) int(package private) double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()It clones the value of mutable variable.previous()It returns the earlier value of mutable variable.voidIt replaces the earlier value of a mutable variable with value passed as parameter.voidsetStamp(int s) It sets the stamp of value of mutable variable.(package private) voidsetValue(double min, double max, double lb, double ub) intstamp()It returns the stamp value of value of mutable variable.toString()It returns string representation of the current value of mutable variable.
-
Field Details
-
previousBoundsVarValue
BoundsVarValue previousBoundsVarValue -
min
double min -
max
double max -
lb
double lb -
ub
double ub -
stamp
int stamp
-
-
Constructor Details
-
BoundsVarValue
BoundsVarValue() -
BoundsVarValue
BoundsVarValue(double min, double max, double lb, double ub)
-
-
Method Details
-
clone
Description copied from interface:MutableVarValueIt clones the value of mutable variable. It includes the stamp, pointer to earlier value, and current value of variable.- Specified by:
clonein interfaceMutableVarValue- Overrides:
clonein classObject- Returns:
- clone of the mutable variable value.
-
previous
Description copied from interface:MutableVarValueIt returns the earlier value of mutable variable.- Specified by:
previousin interfaceMutableVarValue- Returns:
- earlier value of mutable variable.
-
setPrevious
Description copied from interface:MutableVarValueIt replaces the earlier value of a mutable variable with value passed as parameter.- Specified by:
setPreviousin interfaceMutableVarValue- Parameters:
n- the previous value for this mutable variable.
-
setStamp
public void setStamp(int s) Description copied from interface:MutableVarValueIt sets the stamp of value of mutable variable.- Specified by:
setStampin interfaceMutableVarValue- Parameters:
s- the new stamp of value of mutable variable
-
setValue
void setValue(double min, double max, double lb, double ub) -
stamp
public int stamp()Description copied from interface:MutableVarValueIt returns the stamp value of value of mutable variable.- Specified by:
stampin interfaceMutableVarValue- Returns:
- the current stamp of value of mutable variable.
-
toString
Description copied from interface:MutableVarValueIt returns string representation of the current value of mutable variable.- Specified by:
toStringin interfaceMutableVarValue- Overrides:
toStringin classObject
-