9package com.google.ortools.constraintsolver;
 
   12  private transient long swigCPtr;
 
   15    super(mainJNI.ObjectiveMonitor_SWIGUpcast(cPtr), cMemoryOwn);
 
 
   20    return (obj == 
null) ? 0 : obj.swigCPtr;
 
 
   27        throw new RuntimeException(
"Cannot release ownership as memory is not owned");
 
   29      obj.swigCMemOwn = 
false;
 
 
   35  @SuppressWarnings({
"deprecation", 
"removal"})
 
   44        mainJNI.delete_ObjectiveMonitor(swigCPtr);
 
 
   52    this(mainJNI.new_ObjectiveMonitor(
Solver.
getCPtr(
solver), 
solver, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(maximize), vars, steps), 
true);
 
 
   56    long cPtr = mainJNI.ObjectiveMonitor_ObjectiveVar(swigCPtr, 
this, index);
 
   57    return (cPtr == 0) ? null : 
new IntVar(cPtr, 
false);
 
 
   61    long cPtr = mainJNI.ObjectiveMonitor_MinimizationVar(swigCPtr, 
this, index);
 
   62    return (cPtr == 0) ? null : 
new IntVar(cPtr, 
false);
 
 
   65  public long Step(
int index) {
 
   66    return mainJNI.ObjectiveMonitor_Step(swigCPtr, 
this, index);
 
 
   70    return mainJNI.ObjectiveMonitor_Maximize(swigCPtr, 
this, index);
 
 
   74    return mainJNI.ObjectiveMonitor_BestValue(swigCPtr, 
this, index);
 
 
   78    return mainJNI.ObjectiveMonitor_Size(swigCPtr, 
this);
 
 
   82    mainJNI.ObjectiveMonitor_enterSearch(swigCPtr, 
this);
 
 
   86    return mainJNI.ObjectiveMonitor_atSolution(swigCPtr, 
this);