9 package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
17 protected Decision(
long cPtr,
boolean cMemoryOwn) {
18 super(mainJNI.Decision_SWIGUpcast(cPtr), cMemoryOwn);
22 protected static long getCPtr(
Decision obj) {
23 return (obj ==
null) ? 0 : obj.swigCPtr;
26 @SuppressWarnings(
"deprecation")
27 protected
void finalize() {
31 public synchronized void delete() {
35 mainJNI.delete_Decision(swigCPtr);
49 mainJNI.Decision_change_ownership(
this, swigCPtr,
false);
54 mainJNI.Decision_change_ownership(
this, swigCPtr,
true);
58 this(mainJNI.new_Decision(),
true);
59 mainJNI.Decision_director_connect(
this, swigCPtr,
true,
true);
66 mainJNI.Decision_apply(swigCPtr,
this,
Solver.getCPtr(s), s);
73 mainJNI.Decision_refute(swigCPtr,
this,
Solver.getCPtr(s), s);
77 return (getClass() ==
Decision.class) ? mainJNI.Decision_toString(swigCPtr,
this) : mainJNI.Decision_toStringSwigExplicitDecision(swigCPtr,
this);
84 if (getClass() ==
Decision.class) mainJNI.Decision_accept(swigCPtr,
this,
DecisionVisitor.getCPtr(visitor), visitor);
else mainJNI.Decision_acceptSwigExplicitDecision(swigCPtr,
this,
DecisionVisitor.getCPtr(visitor), visitor);