com.google.ortools.constraintsolver.LocalSearchMonitor Maven / Gradle / Ivy
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.google.ortools.constraintsolver;
public class LocalSearchMonitor extends SearchMonitor {
private transient long swigCPtr;
protected LocalSearchMonitor(long cPtr, boolean cMemoryOwn) {
super(mainJNI.LocalSearchMonitor_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(LocalSearchMonitor obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
mainJNI.delete_LocalSearchMonitor(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public String toString() {
return mainJNI.LocalSearchMonitor_toString(swigCPtr, this);
}
public void beginOperatorStart() {
mainJNI.LocalSearchMonitor_beginOperatorStart(swigCPtr, this);
}
public void endOperatorStart() {
mainJNI.LocalSearchMonitor_endOperatorStart(swigCPtr, this);
}
public void beginMakeNextNeighbor(LocalSearchOperator op) {
mainJNI.LocalSearchMonitor_beginMakeNextNeighbor(swigCPtr, this, LocalSearchOperator.getCPtr(op), op);
}
public void endMakeNextNeighbor(LocalSearchOperator op, boolean neighbor_found, Assignment delta, Assignment deltadelta) {
mainJNI.LocalSearchMonitor_endMakeNextNeighbor(swigCPtr, this, LocalSearchOperator.getCPtr(op), op, neighbor_found, Assignment.getCPtr(delta), delta, Assignment.getCPtr(deltadelta), deltadelta);
}
public void beginFilterNeighbor(LocalSearchOperator op) {
mainJNI.LocalSearchMonitor_beginFilterNeighbor(swigCPtr, this, LocalSearchOperator.getCPtr(op), op);
}
public void endFilterNeighbor(LocalSearchOperator op, boolean neighbor_found) {
mainJNI.LocalSearchMonitor_endFilterNeighbor(swigCPtr, this, LocalSearchOperator.getCPtr(op), op, neighbor_found);
}
public void beginAcceptNeighbor(LocalSearchOperator op) {
mainJNI.LocalSearchMonitor_beginAcceptNeighbor(swigCPtr, this, LocalSearchOperator.getCPtr(op), op);
}
public void endAcceptNeighbor(LocalSearchOperator op, boolean neighbor_found) {
mainJNI.LocalSearchMonitor_endAcceptNeighbor(swigCPtr, this, LocalSearchOperator.getCPtr(op), op, neighbor_found);
}
public void beginFiltering(LocalSearchFilter filter) {
mainJNI.LocalSearchMonitor_beginFiltering(swigCPtr, this, LocalSearchFilter.getCPtr(filter), filter);
}
public void endFiltering(LocalSearchFilter filter, boolean reject) {
mainJNI.LocalSearchMonitor_endFiltering(swigCPtr, this, LocalSearchFilter.getCPtr(filter), filter, reject);
}
public void install() {
mainJNI.LocalSearchMonitor_install(swigCPtr, this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy