Package com.artelys.kalis
Class KRandomValue
- java.lang.Object
-
- com.artelys.kalis.KValueSelector
-
- com.artelys.kalis.KRandomValue
-
public class KRandomValue extends KValueSelector
This class implements a value selector that selects a value at random in the domain of the variable.
Example :
KBranchingSchemeArray bsa; bsa += KAssignVar(KSmallestDomain(),KRandomValue());
- Since:
- 2016.1
- See Also:
KValueSelector
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description KRandomValue()
protected
KRandomValue(long cPtr, boolean cMemoryOwn)
KRandomValue(KRandomValue toCopy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
KValueSelector
getCopyPtr()
protected static long
getCPtr(KRandomValue obj)
int
selectNextValue(KIntVar intVar)
Virtual method to overload with your own value selection heuristic.
-
Methods inherited from class com.artelys.kalis.KValueSelector
getCPtr, getInstanceCopyPtr, getName, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KRandomValue
protected KRandomValue(long cPtr, boolean cMemoryOwn)
-
KRandomValue
public KRandomValue()
-
KRandomValue
public KRandomValue(KRandomValue toCopy)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KRandomValue obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKValueSelector
-
delete
public void delete()
- Overrides:
delete
in classKValueSelector
-
selectNextValue
public int selectNextValue(KIntVar intVar)
Description copied from class:KValueSelector
Virtual method to overload with your own value selection heuristic.
- Overrides:
selectNextValue
in classKValueSelector
- Parameters:
intVar
- the variable to selects a value for
-
getCopyPtr
public KValueSelector getCopyPtr()
- Overrides:
getCopyPtr
in classKValueSelector
-
-