9package com.google.ortools.constraintsolver;
19 private transient long swigCPtr;
22 super(mainJNI.IntVarLocalSearchOperator_SWIGUpcast(cPtr), cMemoryOwn);
27 return (obj ==
null) ? 0 : obj.swigCPtr;
34 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
36 obj.swigCMemOwn =
false;
42 @SuppressWarnings({
"deprecation",
"removal"})
51 mainJNI.delete_IntVarLocalSearchOperator(swigCPtr);
65 mainJNI.IntVarLocalSearchOperator_change_ownership(
this, swigCPtr,
false);
70 mainJNI.IntVarLocalSearchOperator_change_ownership(
this, swigCPtr,
true);
74 this(mainJNI.new_IntVarLocalSearchOperator__SWIG_0(vars, keep_inverse_values),
true);
75 mainJNI.IntVarLocalSearchOperator_director_connect(
this, swigCPtr,
true,
true);
79 this(mainJNI.new_IntVarLocalSearchOperator__SWIG_1(vars),
true);
80 mainJNI.IntVarLocalSearchOperator_director_connect(
this, swigCPtr,
true,
true);
84 return (getClass() ==
IntVarLocalSearchOperator.class) ? mainJNI.IntVarLocalSearchOperator_HoldsDelta(swigCPtr,
this) : mainJNI.IntVarLocalSearchOperator_HoldsDeltaSwigExplicitIntVarLocalSearchOperator(swigCPtr,
this);
92 if (getClass() ==
IntVarLocalSearchOperator.class) mainJNI.IntVarLocalSearchOperator_start(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
else mainJNI.IntVarLocalSearchOperator_startSwigExplicitIntVarLocalSearchOperator(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
96 return (getClass() ==
IntVarLocalSearchOperator.class) ? mainJNI.IntVarLocalSearchOperator_isIncremental(swigCPtr,
this) : mainJNI.IntVarLocalSearchOperator_isIncrementalSwigExplicitIntVarLocalSearchOperator(swigCPtr,
this);
100 return mainJNI.IntVarLocalSearchOperator_size(swigCPtr,
this);
108 return mainJNI.IntVarLocalSearchOperator_value(swigCPtr,
this, index);
115 long cPtr = mainJNI.IntVarLocalSearchOperator_var(swigCPtr,
this, index);
116 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
120 return (getClass() ==
IntVarLocalSearchOperator.class) ? mainJNI.IntVarLocalSearchOperator_SkipUnchanged(swigCPtr,
this, index) : mainJNI.IntVarLocalSearchOperator_SkipUnchangedSwigExplicitIntVarLocalSearchOperator(swigCPtr,
this, index);
124 return mainJNI.IntVarLocalSearchOperator_oldValue(swigCPtr,
this, index);
128 return mainJNI.IntVarLocalSearchOperator_PrevValue(swigCPtr,
this, index);
132 mainJNI.IntVarLocalSearchOperator_setValue(swigCPtr,
this, index,
value);
136 return mainJNI.IntVarLocalSearchOperator_activated(swigCPtr,
this, index);
140 mainJNI.IntVarLocalSearchOperator_activate(swigCPtr,
this, index);
144 mainJNI.IntVarLocalSearchOperator_deactivate(swigCPtr,
this, index);
152 mainJNI.IntVarLocalSearchOperator_RevertChanges(swigCPtr,
this, change_was_incremental);
156 mainJNI.IntVarLocalSearchOperator_addVars(swigCPtr,
this, vars);
165 if (getClass() ==
IntVarLocalSearchOperator.class) mainJNI.IntVarLocalSearchOperator_onStart(swigCPtr,
this);
else mainJNI.IntVarLocalSearchOperator_onStartSwigExplicitIntVarLocalSearchOperator(swigCPtr,
this);
174 return (getClass() ==
IntVarLocalSearchOperator.class) ? mainJNI.IntVarLocalSearchOperator_oneNeighbor(swigCPtr,
this) : mainJNI.IntVarLocalSearchOperator_oneNeighborSwigExplicitIntVarLocalSearchOperator(swigCPtr,
this);