9package com.google.ortools.constraintsolver;
16 private transient long swigCPtr;
19 super(mainJNI.DecisionBuilder_SWIGUpcast(cPtr), cMemoryOwn);
24 return (obj ==
null) ? 0 : obj.swigCPtr;
31 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
33 obj.swigCMemOwn =
false;
39 @SuppressWarnings({
"deprecation",
"removal"})
48 mainJNI.delete_DecisionBuilder(swigCPtr);
62 mainJNI.DecisionBuilder_change_ownership(
this, swigCPtr,
false);
67 mainJNI.DecisionBuilder_change_ownership(
this, swigCPtr,
true);
71 this(mainJNI.new_DecisionBuilder(),
true);
72 mainJNI.DecisionBuilder_director_connect(
this, swigCPtr,
true,
true);
82 long cPtr = mainJNI.DecisionBuilder_nextWrap(swigCPtr,
this,
Solver.
getCPtr(s), s);
83 return (cPtr == 0) ? null :
new Decision(cPtr,
false);
87 return (getClass() ==
DecisionBuilder.class) ? mainJNI.DecisionBuilder_toString(swigCPtr,
this) : mainJNI.DecisionBuilder_toStringSwigExplicitDecisionBuilder(swigCPtr,
this);
91 mainJNI.DecisionBuilder_set_name(swigCPtr,
this, name);
95 return mainJNI.DecisionBuilder_GetName(swigCPtr,
this);