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.Object
Abstract interface class for value selection heuristic
- Since:
- 2016.1
- See Also:
KMinToMax KMiddle KRandomValue KNearestValue
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
swigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KValueSelector()
Constructorprotected
KValueSelector(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 void
delete()
protected void
finalize()
KValueSelector
getCopyPtr()
protected static long
getCPtr(KValueSelector obj)
KValueSelector
getInstanceCopyPtr(KProblem problem)
java.lang.String
getName()
KProblem
getProblem()
Return the current problemvoid
printName()
int
selectNextValue(KIntVar intVar)
Virtual method to overload with your own value selection heuristic.
protected void
swigDirectorDisconnect()
void
swigReleaseOwnership()
void
swigTakeOwnership()
-
-
-
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:
finalize
in 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()
-
-