9 package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
17 protected Demon(
long cPtr,
boolean cMemoryOwn) {
18 super(mainJNI.Demon_SWIGUpcast(cPtr), cMemoryOwn);
22 protected static long getCPtr(
Demon obj) {
23 return (obj ==
null) ? 0 : obj.swigCPtr;
26 @SuppressWarnings(
"deprecation")
27 protected
void finalize() {
31 public synchronized void delete() {
35 mainJNI.delete_Demon(swigCPtr);
46 mainJNI.Demon_run(swigCPtr,
this,
Solver.getCPtr(s), s);
53 return mainJNI.Demon_priority(swigCPtr,
this);
57 return mainJNI.Demon_toString(swigCPtr,
this);
64 mainJNI.Demon_inhibit(swigCPtr,
this,
Solver.getCPtr(s), s);
71 mainJNI.Demon_desinhibit(swigCPtr,
this,
Solver.getCPtr(s), s);