Package com.artelys.kalis
Class KValueSelector
- java.lang.Object
-
- com.artelys.kalis.KValueSelector
-
- Direct Known Subclasses:
KBestBoundValue,KMaxToMin,KMiddle,KMinMaxConflict,KMinToMax,KNearestNeighbor,KNearestRelaxedValue,KNearestValue,KRandomValue
public class KValueSelector extends java.lang.ObjectAbstract interface class for value selection heuristic
- Since:
- 2016.1
- See Also:
KMinToMax KMiddle KRandomValue KNearestValue
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KValueSelector()ConstructorprotectedKValueSelector(long cPtr, boolean cMemoryOwn)KValueSelector(KProblem problem)Constructor with KProblemKValueSelector(KValueSelector toCopy)Copy constructorKValueSelector(com.artelys.kalis.SWIGTYPE_p_KValueSelector_I valueSelector)KValueSelector(com.artelys.kalis.SWIGTYPE_p_KValueSelector_I valueSelector, boolean manage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()KValueSelectorgetCopyPtr()protected static longgetCPtr(KValueSelector obj)KValueSelectorgetInstanceCopyPtr(KProblem problem)java.lang.StringgetName()KProblemgetProblem()Return the current problemvoidprintName()intselectNextValue(KIntVar intVar)Virtual method to overload with your own value selection heuristic.
protected voidswigDirectorDisconnect()voidswigReleaseOwnership()voidswigTakeOwnership()
-
-
-
Constructor Detail
-
KValueSelector
protected KValueSelector(long cPtr, boolean cMemoryOwn)
-
KValueSelector
public KValueSelector()
Constructor
-
KValueSelector
public KValueSelector(KProblem problem)
Constructor with KProblem
-
KValueSelector
public KValueSelector(com.artelys.kalis.SWIGTYPE_p_KValueSelector_I valueSelector, boolean manage)
-
KValueSelector
public KValueSelector(com.artelys.kalis.SWIGTYPE_p_KValueSelector_I valueSelector)
-
KValueSelector
public KValueSelector(KValueSelector toCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KValueSelector obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete()
-
swigDirectorDisconnect
protected void swigDirectorDisconnect()
-
swigReleaseOwnership
public void swigReleaseOwnership()
-
swigTakeOwnership
public void swigTakeOwnership()
-
getProblem
public KProblem getProblem()
Return the current problem
-
selectNextValue
public int selectNextValue(KIntVar intVar)
Virtual method to overload with your own value selection heuristic.
- Parameters:
intVar- the variable to selects a value for
-
getCopyPtr
public KValueSelector getCopyPtr()
-
getInstanceCopyPtr
public KValueSelector getInstanceCopyPtr(KProblem problem)
-
printName
public void printName()
-
getName
public java.lang.String getName()
-
-