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);
19 protected static long getCPtr(
Decision obj) {
20 return (obj ==
null) ? 0 : obj.swigCPtr;
23 @SuppressWarnings(
"deprecation")
24 protected
void finalize() {
28 public synchronized void delete() {
32 mainJNI.delete_Decision(swigCPtr);
46 mainJNI.Decision_change_ownership(
this, swigCPtr,
false);
51 mainJNI.Decision_change_ownership(
this, swigCPtr,
true);
55 this(mainJNI.new_Decision(),
true);
56 mainJNI.Decision_director_connect(
this, swigCPtr,
true,
true);
60 mainJNI.Decision_apply(swigCPtr,
this,
Solver.getCPtr(s), s);
64 mainJNI.Decision_refute(swigCPtr,
this,
Solver.getCPtr(s), s);
68 return (getClass() ==
Decision.class) ? mainJNI.Decision_toString(swigCPtr,
this) : mainJNI.Decision_toStringSwigExplicitDecision(swigCPtr,
this);
72 if (getClass() ==
Decision.class) mainJNI.Decision_accept(swigCPtr,
this,
DecisionVisitor.getCPtr(visitor), visitor);
else mainJNI.Decision_acceptSwigExplicitDecision(swigCPtr,
this,
DecisionVisitor.getCPtr(visitor), visitor);