9package com.google.ortools.constraintsolver;
 
   12  private transient long swigCPtr;
 
   15    super(mainJNI.BaseObjectiveMonitor_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_BaseObjectiveMonitor(swigCPtr);
 
 
   52    long cPtr = mainJNI.BaseObjectiveMonitor_ObjectiveVar(swigCPtr, 
this, index);
 
   53    return (cPtr == 0) ? null : 
new IntVar(cPtr, 
false);
 
 
   57    long cPtr = mainJNI.BaseObjectiveMonitor_MinimizationVar(swigCPtr, 
this, index);
 
   58    return (cPtr == 0) ? null : 
new IntVar(cPtr, 
false);
 
 
   61  public long Step(
int index) {
 
   62    return mainJNI.BaseObjectiveMonitor_Step(swigCPtr, 
this, index);
 
 
   66    return mainJNI.BaseObjectiveMonitor_Maximize(swigCPtr, 
this, index);
 
 
   70    return mainJNI.BaseObjectiveMonitor_BestValue(swigCPtr, 
this, index);
 
 
   74    return mainJNI.BaseObjectiveMonitor_Size(swigCPtr, 
this);
 
 
   78    return mainJNI.BaseObjectiveMonitor_is_active(swigCPtr, 
this);
 
 
   82    mainJNI.BaseObjectiveMonitor_set_active(swigCPtr, 
this, 
is_active);