Package com.artelys.kalis
Class KNearestValue
- java.lang.Object
- 
- com.artelys.kalis.KValueSelector
- 
- com.artelys.kalis.KNearestValue
 
 
- 
 public class KNearestValue extends KValueSelector This class implements a value selector that selects the nearest value from
 target in the domain of the variable.
 
 Example :
 KBranchingSchemeArray myBranchingSchemeArray; myBranchingSchemeArray += KAssignVar(KSmallestDomain(), KNearestValue());- Since:
- 2016.1
- See Also:
- KValueSelector
 
- 
- 
Field Summary- 
Fields inherited from class com.artelys.kalis.KValueSelectorswigCMemOwn
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description KNearestValue()Default ConstructorprotectedKNearestValue(long cPtr, boolean cMemoryOwn)KNearestValue(KNearestValue nearestToCopy)Copy constructor
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()KValueSelectorgetCopyPtr()protected static longgetCPtr(KNearestValue obj)java.lang.StringgetName()intselectNextValue(KIntVar intVar)Virtual method to overload with your own value selection heuristic.
 - 
Methods inherited from class com.artelys.kalis.KValueSelectorgetCPtr, getInstanceCopyPtr, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
 
- 
 
- 
- 
- 
Constructor Detail- 
KNearestValueprotected KNearestValue(long cPtr, boolean cMemoryOwn)
 - 
KNearestValuepublic KNearestValue() Default Constructor
 - 
KNearestValuepublic KNearestValue(KNearestValue nearestToCopy) Copy constructor
 
- 
 - 
Method Detail- 
getCPtrprotected static long getCPtr(KNearestValue obj) 
 - 
finalizeprotected void finalize() - Overrides:
- finalizein class- KValueSelector
 
 - 
deletepublic void delete() - Overrides:
- deletein class- KValueSelector
 
 - 
selectNextValuepublic int selectNextValue(KIntVar intVar) Description copied from class:KValueSelectorVirtual method to overload with your own value selection heuristic.
 - Overrides:
- selectNextValuein class- KValueSelector
- Parameters:
- intVar- the variable to selects a value for
 
 - 
getCopyPtrpublic KValueSelector getCopyPtr() - Overrides:
- getCopyPtrin class- KValueSelector
 
 - 
getNamepublic java.lang.String getName() - Overrides:
- getNamein class- KValueSelector
 
 
- 
 
-