9 package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
14 protected Decision(
long cPtr,
boolean cMemoryOwn) {
15 super(mainJNI.Decision_SWIGUpcast(cPtr), cMemoryOwn);
20 return (obj ==
null) ? 0 : obj.swigCPtr;
27 public synchronized void delete() {
31 mainJNI.delete_Decision(swigCPtr);
45 mainJNI.Decision_change_ownership(
this, swigCPtr,
false);
50 mainJNI.Decision_change_ownership(
this, swigCPtr,
true);
54 this(mainJNI.new_Decision(),
true);
55 mainJNI.Decision_director_connect(
this, swigCPtr,
swigCMemOwn,
true);
63 mainJNI.Decision_refute(swigCPtr,
this,
Solver.
getCPtr(s), s);
67 return (getClass() ==
Decision.class) ? mainJNI.Decision_toString(swigCPtr,
this) : mainJNI.Decision_toStringSwigExplicitDecision(swigCPtr,
this);