9package com.google.ortools.constraintsolver;
12import java.util.HashSet;
20 private transient long swigCPtr;
29 return (obj ==
null) ? 0 : obj.swigCPtr;
36 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
38 obj.swigCMemOwn =
false;
44 @SuppressWarnings({
"deprecation",
"removal"})
53 mainJNI.delete_DefaultPhaseParameters(swigCPtr);
61 private HashSet<DecisionBuilder> keepAliveDecisionBuilders;
63 if (keepAliveDecisionBuilders ==
null) {
64 keepAliveDecisionBuilders =
new HashSet<DecisionBuilder>();
66 keepAliveDecisionBuilders.add(db);
74 mainJNI.DefaultPhaseParameters_varSelectionSchema_set(swigCPtr,
this, value);
82 return mainJNI.DefaultPhaseParameters_varSelectionSchema_get(swigCPtr,
this);
89 mainJNI.DefaultPhaseParameters_valueSelectionSchema_set(swigCPtr,
this, value);
96 return mainJNI.DefaultPhaseParameters_valueSelectionSchema_get(swigCPtr,
this);
104 mainJNI.DefaultPhaseParameters_initializationSplits_set(swigCPtr,
this, value);
112 return mainJNI.DefaultPhaseParameters_initializationSplits_get(swigCPtr,
this);
121 mainJNI.DefaultPhaseParameters_runAllHeuristics_set(swigCPtr,
this, value);
130 return mainJNI.DefaultPhaseParameters_runAllHeuristics_get(swigCPtr,
this);
139 mainJNI.DefaultPhaseParameters_heuristicPeriod_set(swigCPtr,
this, value);
148 return mainJNI.DefaultPhaseParameters_heuristicPeriod_get(swigCPtr,
this);
155 mainJNI.DefaultPhaseParameters_heuristicNumFailuresLimit_set(swigCPtr,
this, value);
162 return mainJNI.DefaultPhaseParameters_heuristicNumFailuresLimit_get(swigCPtr,
this);
170 mainJNI.DefaultPhaseParameters_persistentImpact_set(swigCPtr,
this, value);
178 return mainJNI.DefaultPhaseParameters_persistentImpact_get(swigCPtr,
this);
185 mainJNI.DefaultPhaseParameters_randomSeed_set(swigCPtr,
this, value);
192 return mainJNI.DefaultPhaseParameters_randomSeed_get(swigCPtr,
this);
200 mainJNI.DefaultPhaseParameters_displayLevel_set(swigCPtr,
this, value);
208 return mainJNI.DefaultPhaseParameters_displayLevel_get(swigCPtr,
this);
215 mainJNI.DefaultPhaseParameters_useLastConflict_set(swigCPtr,
this, value);
222 return mainJNI.DefaultPhaseParameters_useLastConflict_get(swigCPtr,
this);
230 mainJNI.DefaultPhaseParameters_decisionBuilder_set(swigCPtr,
this,
DecisionBuilder.
getCPtr(value), value);
240 long cPtr = mainJNI.DefaultPhaseParameters_decisionBuilder_get(swigCPtr,
this);
245 this(mainJNI.new_DefaultPhaseParameters(),
true);
254 public final static int SELECT_MIN_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MIN_IMPACT_get();
255 public final static int SELECT_MAX_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MAX_IMPACT_get();
258 public final static int NONE = mainJNI.DefaultPhaseParameters_NONE_get();
259 public final static int NORMAL = mainJNI.DefaultPhaseParameters_NORMAL_get();
260 public final static int VERBOSE = mainJNI.DefaultPhaseParameters_VERBOSE_get();