com.google.ortools.constraintsolver.SolutionPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-or-tools Show documentation
Show all versions of google-or-tools Show documentation
A project to publish Google OR-Tools as a dependable dependency in Maven.
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.10
*
* 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 SolutionPool extends BaseObject {
private transient long swigCPtr;
protected SolutionPool(long cPtr, boolean cMemoryOwn) {
super(operations_research_constraint_solverJNI.SolutionPool_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(SolutionPool obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
operations_research_constraint_solverJNI.delete_SolutionPool(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void Initialize(Assignment assignment) {
operations_research_constraint_solverJNI.SolutionPool_Initialize(swigCPtr, this, Assignment.getCPtr(assignment), assignment);
}
public void RegisterNewSolution(Assignment assignment) {
operations_research_constraint_solverJNI.SolutionPool_RegisterNewSolution(swigCPtr, this, Assignment.getCPtr(assignment), assignment);
}
public void GetNextSolution(Assignment assignment) {
operations_research_constraint_solverJNI.SolutionPool_GetNextSolution(swigCPtr, this, Assignment.getCPtr(assignment), assignment);
}
public boolean SyncNeeded(Assignment local_assignment) {
return operations_research_constraint_solverJNI.SolutionPool_SyncNeeded(swigCPtr, this, Assignment.getCPtr(local_assignment), local_assignment);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy