9package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
21 return (obj ==
null) ? 0 : obj.swigCPtr;
28 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
30 obj.swigCMemOwn =
false;
36 @SuppressWarnings({
"deprecation",
"removal"})
45 mainJNI.delete_LocalSearchOperatorState(swigCPtr);
52 this(mainJNI.new_LocalSearchOperatorState(),
true);
56 mainJNI.LocalSearchOperatorState_SetCurrentDomainInjectiveAndKeepInverseValues(swigCPtr,
this, max_value);
64 return mainJNI.LocalSearchOperatorState_CandidateValue(swigCPtr,
this, index);
68 return mainJNI.LocalSearchOperatorState_CommittedValue(swigCPtr,
this, index);
72 return mainJNI.LocalSearchOperatorState_CheckPointValue(swigCPtr,
this, index);
76 mainJNI.LocalSearchOperatorState_SetCandidateValue(swigCPtr,
this, index, value);
80 return mainJNI.LocalSearchOperatorState_CandidateIsActive(swigCPtr,
this, index);
84 mainJNI.LocalSearchOperatorState_SetCandidateActive(swigCPtr,
this, index, active);
88 mainJNI.LocalSearchOperatorState_Commit(swigCPtr,
this);
92 mainJNI.LocalSearchOperatorState_CheckPoint(swigCPtr,
this);
95 public void Revert(
boolean only_incremental) {
96 mainJNI.LocalSearchOperatorState_Revert(swigCPtr,
this, only_incremental);
100 return mainJNI.LocalSearchOperatorState_CandidateIndicesChanged(swigCPtr,
this);
104 return mainJNI.LocalSearchOperatorState_IncrementalIndicesChanged(swigCPtr,
this);
108 mainJNI.LocalSearchOperatorState_Resize(swigCPtr,
this, size);
112 return mainJNI.LocalSearchOperatorState_CandidateInverseValue(swigCPtr,
this, value);
116 return mainJNI.LocalSearchOperatorState_CommittedInverseValue(swigCPtr,
this, value);